Skip to content

Commit 6d89add

Browse files
committed
[RZB-250021]: added subtitle in varnmala and remove card__link style
1 parent 1aa9abe commit 6d89add

File tree

8 files changed

+43
-113
lines changed

8 files changed

+43
-113
lines changed

astro.config.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import mdx from "@astrojs/mdx";
22
import react from "@astrojs/react";
3-
import tailwind from "@astrojs/tailwind";
43
import { defineConfig } from "astro/config";
54

65
// https://astro.build/config
@@ -23,11 +22,11 @@ export default defineConfig({
2322
mdx(),
2423
react({
2524
experimentalReactChildren: true
26-
}),
27-
tailwind({
28-
applyBaseStyles: false,
29-
nesting: true
3025
})
26+
//tailwind({
27+
// applyBaseStyles: false,
28+
// nesting: true
29+
//})
3130
],
3231
style: {
3332
global: true // Ensure global styles are applied

src/assets/styles/alphabets/index.css

Lines changed: 20 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88
& .alphabets__header {
99
text-align: center;
1010
margin-bottom: 2rem;
11-
}
1211

13-
& .alphabets__header h1 {
14-
font-size: clamp(2.5rem, 4vw, 3rem);
15-
font-weight: 800;
16-
padding-bottom: 0.5rem;
17-
background: linear-gradient(135deg, var(--primary), var(--primary-light));
18-
-webkit-background-clip: text;
19-
background-clip: text;
20-
color: transparent;
21-
}
12+
& .title {
13+
font-size: clamp(2.5rem, 4vw, 3rem);
14+
font-weight: 800;
15+
padding-bottom: 0.5rem;
16+
background: linear-gradient(135deg, var(--primary), var(--primary-light));
17+
-webkit-background-clip: text;
18+
background-clip: text;
19+
color: transparent;
20+
}
2221

23-
& .subtitle {
24-
color: var(--secondary);
25-
font-size: 1.1rem;
26-
max-width: 600px;
27-
margin: 0 auto;
22+
& .subtitle {
23+
color: var(--secondary);
24+
font-size: 1.1rem;
25+
max-width: 600px;
26+
margin: 0 auto;
27+
}
2828
}
2929

3030
& .list__alphabets {
@@ -35,72 +35,11 @@
3535
list-style: none;
3636
margin: 0 auto;
3737
max-width: 1200px;
38-
}
39-
40-
& .card {
41-
opacity: 0;
42-
animation: fadeInUp 0.4s ease forwards;
43-
}
44-
45-
& .card__link {
46-
display: block;
47-
text-decoration: none;
48-
background: linear-gradient(145deg, var(--background), color-mix(in srgb, var(--background) 97%, var(--text) 3%));
49-
border-radius: 1rem;
50-
border: 1px solid var(--border);
51-
padding: 2rem;
52-
transition: all 0.3s ease;
53-
height: 100%;
54-
overflow: hidden;
55-
}
56-
57-
& .card__link:hover {
58-
transform: translateY(-5px);
59-
box-shadow:
60-
0 20px 30px rgba(0, 0, 0, 0.1),
61-
0 0 0 1px rgba(var(--primary-rgb, 44, 62, 80), 0.1);
62-
}
63-
64-
& .card__content {
65-
position: relative;
66-
}
67-
68-
& .category__title {
69-
font-size: 1.5rem;
70-
font-weight: 700;
71-
color: var(--text);
72-
margin: 0 0 1rem 0;
73-
transition: color 0.3s ease;
74-
}
7538

76-
& .category__description {
77-
color: var(--secondary);
78-
font-size: 0.95rem;
79-
line-height: 1.6;
80-
margin: 0;
81-
}
82-
83-
& .card__arrow {
84-
position: absolute;
85-
top: 0;
86-
right: 0;
87-
font-size: 1.5rem;
88-
color: var(--primary);
89-
opacity: 0;
90-
transition: all 0.3s ease;
91-
transform: translateX(-10px);
92-
}
93-
94-
& .card__link:hover .category__title {
95-
background: linear-gradient(135deg, var(--primary), var(--primary-light));
96-
-webkit-background-clip: text;
97-
background-clip: text;
98-
color: transparent;
99-
}
100-
101-
& .card__link:hover .card__arrow {
102-
opacity: 1;
103-
transform: translateX(0);
39+
& .card {
40+
opacity: 0;
41+
animation: fadeInUp 0.4s ease forwards;
42+
}
10443
}
10544
}
10645

@@ -128,21 +67,6 @@
12867
grid-template-columns: 1fr;
12968
gap: 1rem;
13069
}
131-
132-
& .card__link {
133-
padding: 1.5rem;
134-
}
135-
136-
& .card__actions {
137-
flex-direction: column;
138-
gap: 0.5rem;
139-
}
140-
141-
& .btn {
142-
width: 100%;
143-
font-size: 1.1rem;
144-
padding: 0.75rem 1rem;
145-
}
14670
}
14771
}
14872

@@ -154,4 +78,4 @@
15478
padding: 0 0.5rem;
15579
}
15680
}
157-
}
81+
}

src/assets/styles/varnmala/number.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@
5656
gap: 1.5rem;
5757
}
5858
}
59-
}
59+
}

src/pages/alphabets/index.astro

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ import CardLayout from "@/components/CardLayout.astro";
55
import rawAlphabetData from "@/data/alphabets.json";
66
import BaseLayout from "@/layouts/Base";
77
import type { AlphabetsData } from "@/types/alphabet";
8-
const alphabetData = rawAlphabetData as AlphabetsData;
98
9+
const title = "Alphabet Categories";
10+
const subtitle = "Choose a category to discover different alphabet representations";
11+
12+
const alphabetData = rawAlphabetData as AlphabetsData;
1013
const categories = Object.keys(alphabetData);
1114
1215
const categoryList = categories.map((category, index) => {
@@ -27,8 +30,8 @@ const categoryList = categories.map((category, index) => {
2730
<Back />
2831
<section class="container__alphabets">
2932
<div class="alphabets__header">
30-
<h1>Alphabet Categories</h1>
31-
<p class="subtitle">Choose a category to discover different alphabet representations</p>
33+
<h1 class="title">{title}</h1>
34+
<p class="subtitle">{subtitle}</p>
3235
</div>
3336
<ul class="list__alphabets">
3437
{

src/pages/capital.astro

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Back from "@/components/Back.astro";
33
import LocationMosaic from "@/components/Capital.astro";
44
import Help from "@/components/Help.astro";
5-
import Layout from "@/layouts/Base";
5+
import BaseLayout from "@/layouts/Base";
66
import { locations } from "@/libs/location";
77
88
const meta = {
@@ -15,11 +15,10 @@ const stateList = locations.filter((loc) => loc.isState);
1515
const utList = locations.filter((loc) => !loc.isState);
1616
---
1717

18-
<Layout meta={meta}>
18+
<BaseLayout meta={meta}>
1919
<Back />
20-
2120
<Fragment slot="header-right">
2221
<Help title="Capital" description="An Interactive Journey Through India's States and Territories. " />
2322
</Fragment>
2423
<LocationMosaic stateList={stateList} utList={utList} />
25-
</Layout>
24+
</BaseLayout>

src/pages/glossary/index.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import BaseLayout from "@/layouts/Base";
66
import type { CardSectionType } from "@/types/alphabet";
77
88
const title = "Glossary";
9+
const subtitle = "Explore various categories of knowledge and information";
910
1011
const glossarySections: CardSectionType[] = [
1112
{
@@ -79,7 +80,8 @@ const glossarySections: CardSectionType[] = [
7980
<Back />
8081
<section class="container__alphabets">
8182
<div class="alphabets__header">
82-
<h1>{title}</h1>
83+
<h1 class="title">{title}</h1>
84+
<p class="subtitle">{subtitle}</p>
8385
</div>
8486
<ul class="list__alphabets">
8587
{

src/pages/numbers/index.astro

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import CardLayout from "@/components/CardLayout.astro";
55
import BaseLayout from "@/layouts/Base";
66
import type { CardSectionType } from "@/types/alphabet";
77
8-
const pageTitle = "Explore various number systems";
8+
const title = "Number systems";
9+
10+
const subtitle = "Explore various number systems and their representations";
911
1012
const numberSections: CardSectionType[] = [
1113
{
@@ -43,7 +45,8 @@ const numberSections: CardSectionType[] = [
4345
<Back />
4446
<section class="container__alphabets">
4547
<div class="alphabets__header">
46-
<h1>{pageTitle}</h1>
48+
<h1 class="title">{title}</h1>
49+
<p class="subtitle">{subtitle}</p>
4750
</div>
4851
<ul class="list__alphabets">
4952
{

src/pages/varnmala/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const sections = [
4747
{
4848
sections.map((section, index) => (
4949
<li class="card" style={`animation-delay: ${index * 100}ms`}>
50-
<a href={`/varnmala/${section.href}`} class="card__link">
50+
<a class="card__link" href={`/varnmala/${section.href}`}>
5151
<div class="card__content">
5252
<h2 class="category__title">{section.title}</h2>
5353
<p class="category__description">{section.description}</p>

0 commit comments

Comments
 (0)