- Created `pages/list` for managing and displaying to-do tasks. - Created `pages/settings` as a placeholder for application settings. - Updated `pages/index` for a refreshed layout with navigation to "Tasks" and "Settings". - Integrated custom tab bar across all pages for seamless transitions.
84 lines
1.7 KiB
Plaintext
84 lines
1.7 KiB
Plaintext
/**index.wxss**/
|
|
page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
background-color: #f8f9fa; /* Lighter, cleaner background */
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
padding-bottom: 120rpx; /* Add padding for the fixed tab bar */
|
|
}
|
|
|
|
.t-navbar {
|
|
margin-bottom: 20rpx;
|
|
}
|
|
|
|
.hero-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
padding: 60rpx 20rpx;
|
|
background-color: #ffffff;
|
|
border-radius: 24rpx;
|
|
box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.05);
|
|
margin-bottom: 40rpx;
|
|
}
|
|
|
|
.hero-image {
|
|
width: 300rpx; /* Adjust as needed */
|
|
height: 200rpx; /* Adjust as needed */
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: 48rpx;
|
|
font-weight: bold;
|
|
color: #333;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 28rpx;
|
|
color: #666;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.quick-actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20rpx; /* Adds space between buttons */
|
|
margin-bottom: 40rpx;
|
|
}
|
|
|
|
.action-button .t-button {
|
|
width: 100%; /* Make button take full width if block attribute isn't enough */
|
|
}
|
|
|
|
.action-button .t-icon {
|
|
margin-right: 10rpx;
|
|
}
|
|
|
|
.footer-space {
|
|
height: 100rpx; /* Space at the bottom before tab bar, if content is scrollable */
|
|
}
|
|
|
|
.custom-tab-bar {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1000; /* Ensure it's on top */
|
|
background-color: #ffffff; /* Ensure tab bar has a background */
|
|
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
/** Removed old userinfo and motto styles as per the change description **/
|