141 lines
2.0 KiB
CSS
141 lines
2.0 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.container {
|
|
text-align: center;
|
|
display: grid;
|
|
grid-template-columns: 1fr 4fr;
|
|
grid-template-rows: ;
|
|
gap: 4px;
|
|
grid-template-areas:
|
|
"header header"
|
|
"sidebar nav"
|
|
"sidebar article"
|
|
"footer footer";
|
|
}
|
|
|
|
.container div {
|
|
padding: 15px;
|
|
font-size: 32px;
|
|
font-family: Helvetica;
|
|
font-weight: bold;
|
|
color: white;
|
|
}
|
|
|
|
.header {
|
|
background-color: #393f4d;
|
|
grid-area: header;
|
|
display: grid;
|
|
grid-template-columns: 1fr 2fr;
|
|
align-items: center;
|
|
}
|
|
|
|
.logo {
|
|
justify-self: start;
|
|
}
|
|
|
|
.menu ul {
|
|
display: grid;
|
|
list-style: none;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
}
|
|
|
|
.menu ul,
|
|
.menu li {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.sidebar {
|
|
background-color: #C50208;
|
|
grid-area: sidebar;
|
|
display: grid;
|
|
gap: 50px;
|
|
}
|
|
|
|
.sidebar .photo {
|
|
background-color: white;
|
|
color: black;
|
|
font-size: 12px;
|
|
font-weight: normal;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
|
|
.sidebar .side-content {
|
|
background-color: white;
|
|
color: black;
|
|
font-size: 16px;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.sidebar > * {
|
|
|
|
align-items: center;
|
|
display: grid;
|
|
}
|
|
|
|
.nav {
|
|
background-color: #C50208;
|
|
grid-area: nav;
|
|
}
|
|
|
|
.nav ul {
|
|
display: grid;
|
|
/* gap: 50px; */
|
|
list-style: none;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.nav ul li {
|
|
font-size: 16px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.article {
|
|
background-color: #bccbde;
|
|
grid-area: article;
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 15px;
|
|
grid-auto-rows: 230px;
|
|
}
|
|
|
|
.article p {
|
|
font-size: 18px;
|
|
font-family: sans-serif;
|
|
color: white;
|
|
text-align: left;
|
|
margin: 0 0 10px 0;
|
|
}
|
|
|
|
.article .card {
|
|
background-color: #FFFFFF;
|
|
color: black;
|
|
text-align: center;
|
|
/* padding: 20px; */
|
|
/* box-sizing: border-box; */
|
|
height: 200px;
|
|
}
|
|
|
|
.card p {
|
|
color: black;
|
|
font-weight: normal;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.card .title {
|
|
font-size: 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer {
|
|
grid-area: footer;
|
|
background-color: #393f4d;
|
|
}
|
|
|
|
.footer p {
|
|
font-size: 13px;
|
|
font-weight: normal;
|
|
} |