Skip to content

Commit a6bc86b

Browse files
committed
founding main tag structure
1 parent 075085f commit a6bc86b

File tree

3 files changed

+56
-10
lines changed

3 files changed

+56
-10
lines changed

css/store.css

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2+
:root{
3+
--text-color:white;
4+
--hover-color:#C64110;
5+
--link-color:rgb(100, 99, 99);
6+
--karma-color:black;
7+
8+
9+
}
10+
111
html{
212
margin: 0;
313
width: 100%;
@@ -8,7 +18,7 @@ body{
818
margin: 0;
919
display: grid;
1020
/* grid-template-columns: repeat(2,minmax(1fr,auto-fit)); */
11-
grid-template-rows: repeat(3,auto-fill);
21+
grid-template-rows: 10% auto 10%;
1222
grid-template-areas:
1323
"header header"
1424
"main main"
@@ -19,20 +29,25 @@ body{
1929
.header{
2030
grid-area: header;
2131
margin: 0;
22-
top: 0;
2332
display: flex;
2433
flex-direction: row;
2534
align-items: center;
2635
justify-content: space-between;
27-
background-color: rgb(166, 90, 237);
36+
background-color: #fff;
2837

2938
}
3039

3140
.header img{
32-
width: 2em;
33-
height: 2em;
41+
width: 3em;
42+
height: 3em;
43+
}
44+
45+
.nav-bar{
46+
height: inherit;
3447
}
48+
3549
.nav-bar ul{
50+
margin: 0;
3651
list-style: none;
3752
display: flex;
3853
flex-direction: row;
@@ -42,19 +57,50 @@ body{
4257
}
4358

4459
.nav-bar ul>*{
45-
margin: 1em;
46-
text-decoration: none;
60+
margin: 1.5em;
4761
list-style: none;
4862

4963
}
5064

65+
.nav-bar ul a{
66+
text-decoration: none;
67+
color: var(--link-color);
68+
}
69+
5170

5271
/* styling main tag with class=main */
5372
.main{
5473
grid-area: main;
5574
background-color: chartreuse;
75+
display: grid;
76+
grid-template-columns: 1fr 1fr;
77+
width: 100%;
78+
margin: 0;
79+
80+
}
81+
.main>*{
82+
margin: 0;
5683
}
84+
.section-1{
85+
86+
grid-column: 1/2;
87+
background-color: rgb(245, 78, 56);
88+
}
89+
90+
.section-2{
91+
grid-column: 2/-1;
92+
background-color: rgb(233, 233, 80);
93+
}
94+
95+
.section-2 img{
96+
max-width: 100%;
97+
width: 100%;
98+
height: auto;
99+
margin: 0;
100+
}
101+
57102

103+
/* styling footer */
58104
.footer{
59105
grid-area: footer;
60106
background-color: darkgrey;

css/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ body {
8686

8787
}
8888
.header img{
89-
width: 50px;
90-
height: 50px;
89+
width: 3em;
90+
height: 3em;
9191
}
9292

9393
.header nav{

level-2/store.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</section>
4444

4545
<section class="section-2">
46-
46+
<img src="store-image_by-andrew-neel-unsplash.jpg" alt="store image on the side bar a lady using karma wifi">
4747
</section>
4848

4949
</main>

0 commit comments

Comments
 (0)