ENISE / src /index.css
tiffank1802
Update design: Google Sites style with header, hero, cards and file list
a78483d
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Google Sans', 'Roboto', 'Segoe UI', Arial, sans-serif;
background-color: #fff;
color: #1a1a1a;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
.app {
min-height: 100vh;
}
.site-header {
background: #fff;
border-bottom: 1px solid #dadce0;
padding: 16px 24px;
display: flex;
align-items: center;
justify-content: space-between;
position: sticky;
top: 0;
z-index: 100;
}
.site-logo {
display: flex;
align-items: center;
gap: 12px;
}
.site-logo .logo-icon {
width: 40px;
height: 40px;
background: linear-gradient(135deg, #4285f4, #34a853);
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
font-size: 18px;
}
.site-logo h1 {
font-size: 1.25rem;
font-weight: 500;
color: #202124;
}
.site-nav {
display: flex;
gap: 8px;
}
.site-nav a {
text-decoration: none;
color: #5f6368;
padding: 8px 16px;
border-radius: 4px;
font-size: 0.9rem;
transition: background 0.2s;
}
.site-nav a:hover {
background: #f1f3f4;
color: #202124;
}
.module-page {
max-width: 1200px;
margin: 0 auto;
padding: 0;
}
.hero-section {
background: #f8f9fa;
padding: 48px 24px;
text-align: center;
border-bottom: 1px solid #dadce0;
}
.hero-section h1 {
font-size: 2.75rem;
font-weight: 400;
color: #202124;
margin-bottom: 12px;
letter-spacing: -0.5px;
}
.hero-meta {
font-size: 1rem;
color: #5f6368;
margin-bottom: 16px;
}
.hero-description {
font-size: 1.1rem;
color: #3c4043;
max-width: 700px;
margin: 0 auto;
}
.content-section {
padding: 48px 24px;
}
.section-container {
max-width: 1100px;
margin: 0 auto;
}
.section-title {
font-size: 1.75rem;
font-weight: 400;
color: #202124;
margin-bottom: 32px;
padding-bottom: 16px;
border-bottom: 1px solid #dadce0;
}
.content-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 24px;
}
.content-card {
background: #fff;
border: 1px solid #dadce0;
border-radius: 8px;
padding: 24px;
transition: box-shadow 0.2s, transform 0.2s;
cursor: pointer;
}
.content-card:hover {
box-shadow: 0 4px 12px rgba(60, 64, 67, 0.15);
transform: translateY(-2px);
}
.card-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 16px;
}
.card-icon {
width: 48px;
height: 48px;
background: #e8f0fe;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
}
.card-title {
font-size: 1.1rem;
font-weight: 500;
color: #202124;
}
.card-description {
font-size: 0.9rem;
color: #5f6368;
margin-bottom: 16px;
}
.card-link {
display: inline-flex;
align-items: center;
gap: 4px;
color: #1a73e8;
text-decoration: none;
font-size: 0.9rem;
font-weight: 500;
}
.card-link:hover {
text-decoration: underline;
}
.files-section {
background: #f8f9fa;
padding: 48px 24px;
}
.file-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.file-item {
display: flex;
align-items: center;
gap: 16px;
padding: 16px;
background: #fff;
border: 1px solid #dadce0;
border-radius: 8px;
text-decoration: none;
transition: box-shadow 0.2s;
}
.file-item:hover {
box-shadow: 0 2px 8px rgba(60, 64, 67, 0.1);
}
.file-icon {
width: 40px;
height: 40px;
background: #fef7e0;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
}
.file-info {
flex: 1;
}
.file-name {
font-size: 0.95rem;
font-weight: 500;
color: #202124;
margin-bottom: 4px;
}
.file-meta {
font-size: 0.8rem;
color: #5f6368;
}
.file-download {
color: #5f6368;
font-size: 1.25rem;
}
.site-footer {
background: #f8f9fa;
border-top: 1px solid #dadce0;
padding: 24px;
text-align: center;
color: #5f6368;
font-size: 0.85rem;
}
.loading {
display: flex;
justify-content: center;
align-items: center;
min-height: 300px;
color: #5f6368;
font-size: 1rem;
}
.error {
text-align: center;
padding: 60px 24px;
color: #5f6368;
}
@media (max-width: 768px) {
.site-header {
flex-direction: column;
gap: 16px;
}
.hero-section h1 {
font-size: 2rem;
}
.content-grid {
grid-template-columns: 1fr;
}
}