-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
170 lines (156 loc) · 3.31 KB
/
style.css
File metadata and controls
170 lines (156 loc) · 3.31 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,700;1,200;1,500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,500&display=swap" rel="stylesheet');
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
html{
font-size: 10px;
font-family: 'Bodoni Moda', 'Poppins', 'Times New Roman', Times, serif ;
scroll-behavior: smooth;
}
a{
text-decoration: none;
text-align: center;
}
img{
height: 100%;
width: 100%;
object-fit: cover;
}
.container{
min-height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.section-title {
font-size: 4rem;
font-weight: 500;
color: black;
margin-bottom: 10px;
margin-top: 5px;
text-transform: uppercase;
letter-spacing: 0.2rem;
text-align: center;
}
/* Seção de apresentação */
#presentation{
background-image: url(./background.jpeg);
background-size: cover;
background-position: top center;
position: relative;
z-index: 1;
}
#presentation h1{
display: block;
width: fit-content;
font-size: 6rem;
position: relative;
color: transparent;
animation: text_reveal .5s ease forwards;
animation-delay: 1.5s;
}
#presentation h1:nth-child(1){
animation-delay: .8s;
}
#presentation h1:nth-child(2){
animation-delay: 1.8s;
}
#presentation h1:nth-child(3){
animation: text_reveal_name .5s ease forwards;
animation-delay: 2.8s;
}
#presentation .cta{
display: block;
padding: 10px 30px;
color: rgb(146, 30, 92);
background-color: white;
font-size: 2rem;
font-family: Poppins;
\\text-transform: uppercase;
letter-spacing: .1rem;
margin-top: 50px;
border-radius: 15px;
transition: .5s ease;
transition-property: background-color, color;
}
#presentation .cta:hover{
color: white;
font-weight: 500;
background-color: rgb(119, 206, 89);
opacity: 70%;
}
#presentation h1 span{
position: absolute;
top: 0;
left:0;
height: 100%;
width: 0%;
animation: text_reveal_box 1s ease;
animation-delay: .5s;
background-color: rgb(146, 30, 92);
}
#presentation h1:nth-child(1) span{
animation-delay: .5s;
}
#presentation h1:nth-child(2) span{
animation-delay: 1.5s;
}
#presentation h1:nth-child(3) span{
animation-delay: 2.5s;
}
#presentation::after{
content: '';
position: absolute;
left:0;
top: 0;
height:100%;
width: 100%;
background-color:black;
opacity: 0.5;
z-index: -1;
}
/* Keyframes */
@keyframes text_reveal{
100%{
color: rgb(216, 34, 40);
}
}
@keyframes text_reveal_name{
100%{
color: rgb(146, 30, 92);
font-weight: 500px;
}
}
@keyframes text_reveal_box{
50%{
width:100%;
left:0;
}
100%{
width: 0;
left:100%
}
}
/* Media Query */
@media only screen and (min-width: 768px) {
#portfolio .project-item {
flex-direction: row;
height: 400px;
margin: 0;
width: 100%;
border-radius: 0;
}
#portfolio .all-projects .project-info{
height: 100%
}
#portfolio .all-projects .project-img{
height: 100%
}
#portfolio .project-item:nth-child(even) {
flex-direction: row-reverse;
}
}