Completed exercise 03

This commit is contained in:
NetMan 2024-01-26 13:05:45 +01:00
parent 66bda1c97d
commit d09483ffbf
1 changed files with 50 additions and 0 deletions

View File

@ -5,6 +5,15 @@
.container { .container {
text-align: center; 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 { .container div {
@ -17,6 +26,20 @@
.header { .header {
background-color: #393f4d; 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 ul,
@ -26,6 +49,9 @@
.sidebar { .sidebar {
background-color: #C50208; background-color: #C50208;
grid-area: sidebar;
display: grid;
gap: 50px;
} }
.sidebar .photo { .sidebar .photo {
@ -44,8 +70,22 @@
font-weight: normal; font-weight: normal;
} }
.sidebar > * {
align-items: center;
display: grid;
}
.nav { .nav {
background-color: #C50208; background-color: #C50208;
grid-area: nav;
}
.nav ul {
display: grid;
/* gap: 50px; */
list-style: none;
grid-template-columns: repeat(3, 1fr);
} }
.nav ul li { .nav ul li {
@ -55,6 +95,11 @@
.article { .article {
background-color: #bccbde; 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 { .article p {
@ -62,12 +107,16 @@
font-family: sans-serif; font-family: sans-serif;
color: white; color: white;
text-align: left; text-align: left;
margin: 0 0 10px 0;
} }
.article .card { .article .card {
background-color: #FFFFFF; background-color: #FFFFFF;
color: black; color: black;
text-align: center; text-align: center;
/* padding: 20px; */
/* box-sizing: border-box; */
height: 200px;
} }
.card p { .card p {
@ -82,6 +131,7 @@
} }
.footer { .footer {
grid-area: footer;
background-color: #393f4d; background-color: #393f4d;
} }