-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparallax.css
More file actions
70 lines (60 loc) · 1.52 KB
/
parallax.css
File metadata and controls
70 lines (60 loc) · 1.52 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
.parallax-section {
position: relative;
min-height: 100vh;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
#home {
background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
url('https://images.unsplash.com/photo-1485827404703-89b55fcc595e?auto=format&fit=crop&w=1920&q=80');
}
#clients {
/*background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?auto=format&fit=crop&w=1920&q=80');*/
background-color: transparent;
min-height: 60vh;
}
.hero-content {
max-width: 800px;
padding: 2rem;
}
.hero-content h1 {
font-size: 4rem;
margin-bottom: 1.5rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.hero-content p {
font-size: 1.5rem;
margin-bottom: 2rem;
color: var(--text-muted);
}
.cta-button {
display: inline-block;
padding: 1rem 2.5rem;
background: var(--primary-color);
color: var(--darker-bg);
text-decoration: none;
border-radius: 50px;
font-weight: bold;
transition: transform 0.3s ease;
}
.cta-button:hover {
transform: translateY(-5px);
}
@media (max-width: 768px) {
.parallax-section {
background-attachment: scroll;
}
.hero-content h1 {
font-size: 2.5rem;
}
.hero-content p {
font-size: 1.2rem;
}
}