forked from CodeYourFuture/HTML-CSS-Coursework-Week3
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
152 lines (115 loc) · 2.21 KB
/
Copy pathstyle.css
File metadata and controls
152 lines (115 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/* Add your styling here */
body{
padding: 5px;
background-image: linear-gradient(to right, white, wheat);
display: grid;
grid-template-areas:
'navbar navbar navbar'
'Home Home Home'
'Gallery Gallery Gallery'
'Contacts Contact Contacts'
"footer footer footer";
}
* {
margin: 0;
padding: 0;
}
li {
list-style: none;
}
a {
text-decoration: none;
}
.header{
border-bottom: 1px solid hwb(214 89% 6%);
background-color: orange;
padding: 1em;
border: 3px solid rgb(61, 60, 60);
}
.navbar {
display: flex;
justify-content: flex-end;
align-items: center;
padding: 1rem 1.5rem;
}
.hamburger {
display: none;
}
.bar {
display: block;
width: 25px;
height: 3px;
margin: 5px auto;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
background-color: #101010;
}
.nav-menu {
display: flex;
align-items: center;
}
.nav-item {
margin-left: 5rem;
}
.nav-link{
font-size: 1.6rem;
font-weight: 400;
color: #475569;
}
.nav-link:hover{
color: #482ff7;
}
@media only screen and (max-width: 768px) {
.nav-menu {
position: fixed;
left: -100%;
top: 5rem;
flex-direction: column;
background-color: #fff;
width: 100%;
border-radius: 10px;
text-align: center;
transition: 0.3s;
}
.nav-menu.active {
left: 0;
}
.nav-item {
margin: 2.5rem 0;
}
.hamburger {
display: block;
cursor: pointer;
}
}
#Home{
height: 50vh;
margin: 30px;
padding: 30px;
background-image: url(https://tinyurl.com/yrcuzrvd);
background-repeat: no-repeat;
background-size: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-flow: column wrap;
}
#Gallery{
height: 100vh;
padding: 20px;
margin-bottom: 6em;
}
img{
border: solid 3px orangered;
border-radius: 5px;
justify-items: center;
}
#Contacts{
height: 100vh;
padding: auto;
margin: auto;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}