-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
126 lines (100 loc) · 1.69 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
* {
margin: 0;
}
html,
body {
--grey: hsl(240, 9%, 89%);
height: 100%;
font-family: 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
}
body {
display: grid;
place-items: center;
}
main {
background: url(images/background.svg) no-repeat center/cover;
width: 100vw;
min-height: 812px;
height: 100vh;
}
.container {
max-width: 250px;
margin-left: auto;
margin-right: auto;
text-align: center;
color: var(--grey);
}
.avatar {
width: 10rem;
margin: 11.5rem auto 0;
position: relative;
}
.avatar span {
position: absolute;
top: -15px;
z-index: 1;
animation: rotated 10s linear infinite;
}
.avatar > img {
width: 10rem;
height: 11.5rem;
object-fit: cover;
clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
h1 {
font-size: 1.5rem;
margin-top: 1.5rem;
}
p {
margin-top: 1.5rem;
}
ul {
margin-top: 3rem;
list-style: none;
padding: 0;
display: flex;
gap: 0.5rem;
justify-content: center;
}
li a {
transition: 0.3s;
display: inline-block;
}
li a:hover {
transform: translateY(-10px);
}
/* Stamp Animation Rocketseat */
@-webkit-keyframes rotated {
0% {
-webkit-transform: rotate(0);
transform: rotate(0);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes rotated {
0% {
-webkit-transform: rotate(0);
transform: rotate(0);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
/* Media Query */
@media (min-width: 720px) {
main {
background: url(images/background-desktop.svg) no-repeat center/cover;
min-height: 700px;
}
p {
margin-top: 1rem;
}
ul {
margin-top: 1.5rem;
}
}