-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
127 lines (104 loc) · 2.28 KB
/
styles.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
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
* {
margin: 0rem;
padding: 0rem;
box-sizing: border-box;
font-family: 'Poppins';
}
body {
margin: 1.5rem 5%;
background-color: aliceblue;
}
header > img {
display: block;
width: 3rem;
margin: 0 auto;
}
nav ul {
display: flex;
justify-content: center;
gap: 1rem;
margin: 0.75rem 0;
li {
list-style-type: none;
a {
text-decoration: none;
color: black;
font-weight: bold;
transition: all ease-in-out 0.3s;
}
a:hover {
color: #f9004d;
}
}
}
main {
section:nth-child(1) {
color: white;
padding: 2rem;
background-image: url(hand-3889288_1920.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
border-radius: 0.5rem;
}
section:nth-child(2) {
display: flex;
flex-direction: row;
gap: 1rem;
margin: 1rem 0;
article {
background-color: #87CEFA;
padding: 1rem;
border-radius: 5%;
width: 50%;
img {
width: 100%;
border-radius: 5%;
margin-top: 0.5rem;
height: 20rem;
}
button {
padding: 0.7rem;
border-radius: 5%;
border: none;
color: white;
background-color: #f9004d;
transition: all ease-in-out 0.3s;
}
button:hover {
background-color: black;
}
}
}
}
footer {
display: flex;
justify-content: space-between;
margin-top: 0.5rem;
img {
width: 1.5rem;
}
}
@media (max-width: 700px) {
nav ul {
gap: 0.5rem;
}
main {
h2 {
text-align: center;
}
section:nth-child(2) {
flex-direction: column;
align-items: center;
text-align: center;
article {
width: 100%;
}
}
}
footer {
flex-direction: column;
text-align: center;
}
}