Skip to content

Commit 4372e24

Browse files
committed
[RZB-250099]: fixed varnmala heading
1 parent 02b9cc1 commit 4372e24

File tree

3 files changed

+43
-14
lines changed

3 files changed

+43
-14
lines changed

src/assets/styles/globals.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@import "./custom-fonts.css";
22

3+
@import "./common.css";
4+
35
@layer base {
46
:root {
57
--primary: #3b82f6;
@@ -225,4 +227,4 @@
225227
appearance: base-select;
226228
border: none;
227229
}
228-
}
230+
}

src/assets/styles/varnmala/index.css

Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,38 @@
33
max-width: 1200px;
44
margin: 0 auto;
55

6-
& .list__alphabets {
6+
&.varnmala__header {
7+
text-align: center;
8+
margin: 1rem;
9+
10+
&.title {
11+
font-size: clamp(2.5rem, 4vw, 3rem);
12+
font-weight: 800;
13+
padding-bottom: 0.5rem;
14+
background: linear-gradient(135deg, var(--primary), var(--primary-light));
15+
-webkit-background-clip: text;
16+
background-clip: text;
17+
color: transparent;
18+
margin: 0;
19+
}
20+
21+
&.subtitle {
22+
color: var(--secondary);
23+
font-size: 1.1rem;
24+
max-width: 600px;
25+
margin: 0 auto;
26+
}
27+
}
28+
29+
&.list__alphabets {
730
display: grid;
831
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
932
gap: 2rem;
1033
padding: 0;
1134
list-style: none;
1235
}
1336

14-
& .alphabets__header h1 {
37+
&.alphabets__header h1 {
1538
font-size: clamp(2.5rem, 4vw, 3rem);
1639
font-weight: 800;
1740
padding-bottom: 2rem;
@@ -21,13 +44,13 @@
2144
color: transparent;
2245
}
2346

24-
& .card {
47+
&.card {
2548
opacity: 0;
2649
animation: fadeInUp 0.6s ease forwards;
2750
transform: translateY(20px);
2851
}
2952

30-
& .card__link {
53+
&.card__link {
3154
display: block;
3255
text-decoration: none;
3356
background: linear-gradient(145deg, var(--background), color-mix(in srgb, var(--background) 97%, var(--text) 3%));
@@ -38,33 +61,33 @@
3861
height: 100%;
3962
}
4063

41-
& .card__link:hover {
64+
&.card__link:hover {
4265
transform: translateY(-5px);
4366
box-shadow:
4467
0 20px 30px rgba(0, 0, 0, 0.1),
4568
0 0 0 1px rgba(var(--primary-rgb, 44, 62, 80), 0.1);
4669
}
4770

48-
& .card__content {
71+
&.card__content {
4972
position: relative;
5073
}
5174

52-
& .category__title {
75+
&.category__title {
5376
font-size: 1.5rem;
5477
font-weight: 700;
5578
color: var(--text);
5679
margin: 0 0 1rem 0;
5780
transition: color 0.3s ease;
5881
}
5982

60-
& .category__description {
83+
&.category__description {
6184
color: var(--secondary);
6285
font-size: 0.95rem;
6386
line-height: 1.6;
6487
margin: 0;
6588
}
6689

67-
& .card__arrow {
90+
&.card__arrow {
6891
position: absolute;
6992
top: 0;
7093
right: 0;
@@ -75,14 +98,14 @@
7598
transform: translateX(-10px);
7699
}
77100

78-
& .card__link:hover .category__title {
101+
&.card__link:hover .category__title {
79102
background: linear-gradient(135deg, var(--primary), var(--primary-light));
80103
-webkit-background-clip: text;
81104
background-clip: text;
82105
color: transparent;
83106
}
84107

85-
& .card__link:hover .card__arrow {
108+
&.card__link:hover .card__arrow {
86109
opacity: 1;
87110
transform: translateX(0);
88111
}
@@ -113,4 +136,4 @@
113136
.card__link {
114137
padding: 1.5rem;
115138
}
116-
}
139+
}

src/pages/varnmala/index.astro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,16 @@ const sections = [
3535
href: "play"
3636
}
3737
];
38+
39+
const title = "Varnmala";
3840
---
3941

4042
<BaseLayout meta={{ title: "Varnmala" }}>
4143
<Back />
42-
<h2 class="txt__center m-0">Varnmala</h2>
4344
<div class="container__varnmala">
45+
<div class="varnmala__header">
46+
<h2 class="title">{title}</h2>
47+
</div>
4448
<ul class="list__alphabets">
4549
{
4650
sections.map((section, index) => (

0 commit comments

Comments
 (0)