forked from Anburaj07/Travelo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbottomservices.html
150 lines (129 loc) · 3.55 KB
/
bottomservices.html
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
<style>
:root{
--background-dark: #b7b9be;
--text-light: rgba(255,255,255,0.6);
--text-lighter: rgba(255,255,255,0.9);
--spacing-s: 8px;
--spacing-m: 16px;
--spacing-l: 24px;
--spacing-xl: 32px;
--spacing-xxl: 64px;
--width-container: 1200px;
}
*{
border: 0;
margin: 0;
padding: 0;
box-sizing: border-box;
}
.hero-section{
align-items: flex-start;
background-image: linear-gradient(15deg, #200202 0%, #240202 150%);
display: flex;
min-height: 100%;
justify-content: center;
padding: var(--spacing-xxl) var(--spacing-l);
}
.card-grid{
display: grid;
grid-template-columns: repeat(1, 1fr);
grid-column-gap: var(--spacing-l);
grid-row-gap: var(--spacing-l);
max-width: var(--width-container);
width: 100%;
}
@media(min-width: 540px){
.card-grid{
grid-template-columns: repeat(2, 1fr);
}
}
@media(min-width: 960px){
.card-grid{
grid-template-columns: repeat(4, 1fr);
}
}
.card{
list-style: none;
position: relative;
}
.card:before{
content: '';
display: block;
padding-bottom: 150%;
width: 100%;
}
.card__background{
background-size: cover;
background-position: center;
border-radius: var(--spacing-l);
bottom: 0;
filter: brightness(0.75) saturate(1.2) contrast(0.85);
left: 0;
position: absolute;
right: 0;
top: 0;
transform-origin: center;
transform: scale(1) translateZ(0);
transition:
filter 200ms linear,
transform 200ms linear;
}
.card:hover .card__background{
transform: scale(1.05) translateZ(0);
}
.card-grid:hover > .card:not(:hover) .card__background{
filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
}
.card__content{
left: 0;
padding: var(--spacing-l);
position: absolute;
top: 0;
}
.card__category{
color: var(--text-light);
font-size: 0.9rem;
margin-bottom: var(--spacing-s);
text-transform: uppercase;
}
.card__heading{
color: var(--text-lighter);
font-size: 1.9rem;
text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
line-height: 1.4;
word-spacing: 100vw;
}
</style>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<section class="hero-section">
<div class="card-grid">
<a class="card" href="./destination.html">
<div class="card__background" style="background-image: url(https://i.pinimg.com/originals/d9/87/15/d9871522eaeadce419c3a13ed4e2c6fd.gif)"></div>
<div class="card__content">
<p class="card__category">Category</p>
<h3 class="card__heading">Travle Plan</h3>
</div>
</a>
<a class="card" href="./details.html">
<div class="card__background" style="background-image: url(https://cdn.dribbble.com/users/795597/screenshots/3569676/travel-planning__1_.gif)"></div>
<div class="card__content">
<p class="card__category">Category</p>
<h3 class="card__heading">Flight Booking</h3>
</div>
</a>
<a class="card" href="./packages.html">
<div class="card__background" style="background-image: url(https://cdn.dribbble.com/users/2859475/screenshots/7551660/media/a6aa2061e5693b544d883e842c479728.gif)"></div>
<div class="card__content">
<p class="card__category">Category</p>
<h3 class="card__heading">Accomodation</h3>
</div>
</li>
<a class="card" href="./developersPage.html">
<div class="card__background" style="background-image: url(https://visme.co/blog/wp-content/uploads/2020/02/header-1200.gif)"></div>
<div class="card__content">
<p class="card__category">Category</p>
<h3 class="card__heading">Blogs</h3>
</div>
</a>
<div>
</section>