-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
129 lines (109 loc) · 2.14 KB
/
style.css
File metadata and controls
129 lines (109 loc) · 2.14 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
/* @import url('https://fonts.googleapis.com/css2?family=Raleway&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap'); */
/* the 2 above are the same as the one below */
@import url('https://fonts.googleapis.com/css2?family=Raleway&family=Pacifico&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Raleway', sans-serif;
}
nav{
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 10%;
}
#logo{
font-family: 'Pacifico';
text-decoration: none;
color: #202020;
font-size: 35px;
}
.links a{
text-decoration: none;
color: #555;
padding: 5px 10px;
font-size: 18px;
}
nav button{
padding: 10px 20px;
border: none;
border-radius: 50px;
background-color: #1fd680;
color: #fff;
box-shadow: 0 2px 15px #15e986;
cursor: pointer;
}
nav button:hover{
box-shadow: 0 0 15px 10px #76e9b4;
transform: scale(1.1);
}
.hero{
padding: 20px 10%;
display: flex;
gap: 20px;
}
.hero :is(figure, .cta) {
flex: 1;
}
.hero figure{
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.hero figure .image{
background-color: #000;
width: 200px;
height: 200px;
position: relative;
justify-self: end;
}
.hero figure .image:hover{
animation: pulse .5s infinite alternate;
cursor: pointer;
}
figure .image:nth-child(2){
top: -20px;
justify-self: start;
}
figure .image:nth-child(4){
top: -20px;
justify-self: start;
}
.hero .cta{
padding:0px 20px;
}
.hero .cta h1{
font-size: 4rem;
color: #202020;
}
.hero .cta h1 span{
background-color: #ffc400;
padding: 10px;
border-radius: 40px;
}
.hero .cta p{
padding: 20px 0px;
font-size: 22px;
color: #555;
}
.hero .cta button{
padding: 15px 30px;
background-color: #1fd680;
color: #fff;
box-shadow: 0 2px 15px #15e986;
border: none;
cursor: pointer;
border-radius: 50px;
}
@keyframes pulse{
from{
transform: scale(0.9);
opacity: 0.7;
}
to{
transform: scale(1.1);
opacity: 1;
}
}