forked from ayush-that/FinVeda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
testimonials.scss
185 lines (157 loc) · 3.94 KB
/
testimonials.scss
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
// Primary Colors
$moderate-violet: hsl(263, 55%, 52%);
$very-dark-grayish-blue: hsl(217, 19%, 35%);
$very-dark-blackish-blue: hsl(219, 29%, 14%);
$white: hsl(0, 0%, 100%);
// Neutral Colors
$light-gray: hsl(0, 0%, 81%);
$light-grayish-blue: hsl(210, 46%, 95%);
// breakpoints
$md: 768px;
* {
box-sizing: border-box;
}
body {
margin: 0;
main {
font-family: "Barlow Semi Condensed", sans-serif;
background-color: $light-grayish-blue;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 4rem 1.7rem;
.container {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: max(1.9vw, 1.5rem);
width: max(80vw, 60rem);
.card {
padding: max(2.2vw, 1.5rem);
border-radius: 10px;
// card positions start
&.card-1,
&.card-4 {
grid-column: span 2 / span 2;
}
&.card-5 {
grid-row: 1 / span 2;
grid-column: 4;
}
// card positions end
// card styles start
.heading {
display: flex;
align-items: center;
column-gap: 1rem;
position: relative;
.img-wrapper {
position: relative;
width: 2.2rem;
height: 2.2rem;
display: flex;
justify-content: center;
align-items: center;
.border {
position: absolute;
width: 100%;
height: 100%;
z-index: 1;
border-radius: 50%;
opacity: 50%;
}
img {
width: 90%;
height: 90%;
border-radius: 50%;
position: relative;
z-index: 10;
}
}
.text {
h1,
h2 {
margin-block: 0;
font-weight: 400;
}
h1 {
font-size: 0.9rem;
}
h2 {
font-size: 0.8rem;
opacity: 50%;
}
}
}
.main {
position: relative;
h3 {
font-weight: 500;
}
}
.desc {
p {
opacity: 70%;
font-size: 0.9rem;
}
}
// card styles end
// individual card styles start
&.card-1 {
background-color: $moderate-violet;
color: $white;
position: relative;
.heading .img-wrapper .border {
background-color: $white;
}
&::before {
content: "";
background-image: url("https://raw.githubusercontent.com/khatri2002/testimonials-grid-section/e8e46d2c6e99c1e65142988a356eedd01037133d/images/bg-pattern-quotation.svg");
position: absolute;
width: 7rem;
height: 7rem;
background-size: 7rem 7rem;
top: 0;
right: 5.5vw;
}
}
&.card-2 {
background-color: $very-dark-grayish-blue;
color: $white;
}
&.card-3,
&.card-5 {
background-color: $white;
color: $very-dark-grayish-blue;
}
&.card-4 {
background-color: $very-dark-blackish-blue;
color: $white;
.heading .img-wrapper .border {
background-color: $moderate-violet;
}
}
// individual card styles end
}
@media screen and (width <= $md) {
// grid columns configuration
grid-template-columns: repeat(1, minmax(0, 1fr));
.card {
// card positions
&.card-1,
&.card-4 {
grid-column: auto;
}
&.card-5 {
grid-row: auto;
grid-column: auto;
}
// card styles
.main h3 {
font-size: 1.1rem;
}
}
}
}
}
}