forked from EGega/PORTFOLIO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
182 lines (154 loc) · 2.9 KB
/
style.css
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
@import url("https://fonts.googleapis.com/css2?family=Open+Sans&family=Poppins:ital,wght@0,300;1,200&family=Roboto&family=Work+Sans&display=swap");
body {
border: 0;
margin: 0;
padding: 0;
box-sizing: border-box;
}
.navigation {
display: flex;
align-items: center;
width: 100%;
height: 100px;
background-color: #000;
color: #fff;
border-bottom: 5px solid #ff3737;
font-family: "Roboto", sans-serif;
position: fixed;
z-index: 2;
}
.name h2 {
margin-left: 20px;
font-size: 40px;
color: #fff;
}
.navigation ul {
list-style-type: none;
font-size: 18px;
text-transform: uppercase;
display: flex;
margin-left: auto;
margin-right: 30px;
gap: 30px;
}
.navigation ul li {
cursor: pointer;
padding: 10px;
transition: ease-in 300ms;
color: #fff;
}
.navigation ul li:hover {
background-color: rgb(20, 18, 18);
padding: 10px;
}
.surname {
color: #375cff;
}
/* This is the style of the main page */
.main-page {
background: url("https://sergiotaco.github.io/html-css-workshop/images/banner.jpg");
width: 100%;
height: 100vh;
background-repeat: no-repeat;
background-size: cover;
color: #fff;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.main-page::after {
position: absolute;
content: "";
width: 100%;
height: 100vh;
background-color: #00000065;
}
.main-page h1 {
margin-top: 0;
font-size: 60px;
z-index: 1;
text-align: center;
}
.main-page h2 {
font-size: 40px;
z-index: 1;
text-align: center;
padding: 20px;
}
a:hover,
a:visited,
a:link,
a:active {
text-decoration: none;
}
#about,
#contact,
#services {
height: 100vh;
}
#about {
background: url("./aboutus.webp");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
#contact {
background: url("./contact.jpeg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
#services {
background: url("./text-sign-showing-our-services-conceptual-photo-occupation-function-serving-intangible-products-male-human-business-159049867.jpeg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
}
#about,
#contact,
#services,
h3,
p {
color: #fff;
margin: 0;
padding: 40px;
font-size: 40px;
text-transform: uppercase;
font-family: "Roboto", sans-serif;
}
/* Mobile */
@media screen and (max-width: 600px) {
.navigation ul li:hover {
padding: 2px;
background-color: #ff3737;
}
.navigation ul li {
padding: 2px;
}
.navigation ul {
font-size: 12px;
gap: 5px;
}
.name h2 {
margin-left: 20px;
font-size: 20px;
}
.main-page h1 {
font-size: 40px;
}
.main-page h2 {
font-size: 30px;
text-align: center;
}
#about,
#contact,
#services,
h3,
p {
padding: 40px;
font-size: 30px;
text-transform: uppercase;
font-family: "Roboto", sans-serif;
}
}