-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
145 lines (128 loc) · 2.26 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
color: #fff;
font-family: 'Space Grotesk', sans-serif;
height: 100vh;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
}
h3,
p,
.btn {
margin: 5px 0;
}
a {
text-decoration: none;
width: inherit;
height: inherit;
}
.btn {
display: block;
border: 1px solid red;
padding: 5px;
border-radius: 6px;
width: 100px;
text-align: center;
}
.restaurant_card,
.room_card {
width: 300px;
height: 300px;
animation-duration: 2s;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 6px;
transition: all linear 400ms;
}
img:hover {
transform: scale(1.2);
box-shadow: 0 8px 6px -6px rgba(0, 0, 0, .5);
}
.container {
width: 100%;
height: 100vh;
display: grid;
grid-template-columns: 1fr 1fr;
}
.restaurant,
.room {
display: flex;
}
.restaurant {
background: url("./img/restaurant.jfif") no-repeat center center;
background-size: cover;
position: relative;
z-index: 1;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
}
.restaurant_overlay:before {
content: "";
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: linear-gradient(to right, #434343 0%, black 100%);
opacity: .4;
z-index: -1;
}
.restaurant_card,
.room_card {
display: flex;
align-items: center;
align-self: center;
justify-content: center;
transition: linear 400ms;
perspective: 1000px;
}
.room {
background: url("./img/room bg.jpg") no-repeat center center;
background-size: cover;
position: relative;
z-index: 1;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.room_overlay:before {
content: "";
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: linear-gradient(109.6deg, rgb(20, 30, 48) 11.2%, rgb(36, 59, 85) 91.1%);
opacity: .4;
z-index: -1;
}
@media (min-width: 320px) and (max-width: 480px) {
.container {
display: flex;
flex-direction: column;
}
.restaurant_card,
.room_card {
width: 150px;
height: 150px;
}
}