Skip to content

Commit 3693717

Browse files
[RZA-250175]: update CSS of few pages (#178)
2 parents 91e63b6 + cc6b044 commit 3693717

File tree

13 files changed

+103
-75
lines changed

13 files changed

+103
-75
lines changed

src/assets/styles/cards/stack.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
display: flex;
4747
flex-direction: column;
4848
align-items: center;
49-
justify-content: center;
49+
justify-content: start;
5050
gap: 2rem;
5151
color: #f1f5f9;
5252
font:
@@ -92,7 +92,6 @@
9292
flex-direction: column;
9393
align-items: center;
9494
justify-content: start;
95-
flex: 1;
9695
width: 100%;
9796
}
9897

@@ -392,10 +391,12 @@
392391
padding: 1rem 0.5rem;
393392
justify-content: flex-start;
394393
}
394+
395395
.alphabet-container {
396396
height: 600px;
397397
gap: 0rem;
398398
}
399+
399400
.alphabet-title {
400401
font-size: 1.5rem;
401402
}
@@ -443,4 +444,4 @@
443444
padding: 0.4rem 0.8rem;
444445
bottom: 5px;
445446
}
446-
}
447+
}

src/assets/styles/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
grid-template-columns: minmax(0, auto) 1fr;
127127
grid-auto-flow: column;
128128
grid-template-areas: "sidebar content";
129-
padding: 2rem;
129+
padding: 1rem;
130130
background-color: color-mix(in srgb, var(--background) 97%, var(--text) 3%);
131131
font-size: 1.25rem;
132132
line-height: 1.6;

src/assets/styles/header.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
display: flex;
8787
flex-direction: row;
8888
align-content: center;
89-
justify-content: center;
89+
justify-content: end;
9090
flex-wrap: wrap;
9191
gap: 1rem;
9292
}

src/assets/styles/landing.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@
252252
color: var(--text-light);
253253
margin-bottom: 1rem;
254254
font-size: 0.9rem;
255+
min-height: 3rem;
255256
}
256257

257258
.game-tags {

src/assets/styles/varnmala/reader.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
will-change: contents;
1717
line-height: 1;
1818
gap: 0.5rem;
19-
height: max-content;
19+
height: 80vh;
2020
}
2121

2222
.info {
@@ -28,7 +28,7 @@
2828
padding: 0.5rem;
2929
}
3030

31-
.container__reader > .letter {
31+
.container__reader>.letter {
3232
width: 100%;
3333
box-sizing: border-box;
3434
display: flex;
@@ -186,12 +186,12 @@
186186
font-size: min(200rem, 70vw);
187187
}
188188

189-
.container__reader > .letter {
189+
.container__reader>.letter {
190190
justify-content: center;
191191
margin-left: auto;
192192
}
193193

194194
.mute-button {
195195
font-size: min(1.5rem, 6vw);
196196
}
197-
}
197+
}

src/assets/styles/varnmala/speak.css

Lines changed: 50 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@
9494

9595
/* Container styles */
9696
.container__english {
97+
padding-block: 0.5rem;
98+
9799
& .letter {
98100
font-size: min(100vw, 100vh);
99101
line-height: 1;
@@ -104,7 +106,7 @@
104106
transition: color 0.5s ease-in;
105107
}
106108

107-
/* Background styles */
109+
/* Original Background gradients */
108110
& .bg-gradient1 {
109111
background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
110112
}
@@ -113,50 +115,66 @@
113115
background: linear-gradient(45deg, #a8e6cf, #dcedc1);
114116
}
115117

116-
& .bg-pattern1 {
117-
background-image: repeating-linear-gradient(
118-
45deg,
119-
rgba(0, 0, 0, 0.1) 0px,
120-
rgba(0, 0, 0, 0.1) 2px,
121-
transparent 2px,
122-
transparent 4px
123-
);
124-
}
125-
126-
&.bg-gradient3 {
118+
& .bg-gradient3 {
127119
background: linear-gradient(135deg, #667eea, #764ba2);
128120
}
129121

130-
&.bg-gradient4 {
122+
& .bg-gradient4 {
131123
background: linear-gradient(135deg, #2af598, #009efd);
132124
}
133125

134-
&.bg-gradient5 {
126+
& .bg-gradient5 {
135127
background: linear-gradient(135deg, #f83600, #f9d423);
136128
}
137129

138-
&.bg-pattern2 {
139-
background-image: repeating-linear-gradient(
140-
45deg,
141-
transparent,
142-
transparent 10px,
143-
rgba(0, 0, 0, 0.05) 10px,
144-
rgba(0, 0, 0, 0.05) 20px
145-
);
130+
/* 5 New Beautiful Gradients */
131+
& .bg-gradient6 {
132+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
133+
}
134+
135+
& .bg-gradient7 {
136+
background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
137+
}
138+
139+
& .bg-gradient8 {
140+
background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
141+
}
142+
143+
& .bg-gradient9 {
144+
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
146145
}
147146

148-
&.bg-pattern3 {
149-
background-image: repeating-radial-gradient(
150-
circle,
151-
transparent,
152-
transparent 10px,
153-
rgba(0, 0, 0, 0.05) 10px,
154-
rgba(0, 0, 0, 0.05) 20px
155-
);
147+
& .bg-gradient10 {
148+
background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%);
149+
}
150+
151+
/* Pattern styles */
152+
& .bg-pattern1 {
153+
background-image: repeating-linear-gradient(45deg,
154+
rgba(0, 0, 0, 0.1) 0px,
155+
rgba(0, 0, 0, 0.1) 2px,
156+
transparent 2px,
157+
transparent 4px);
158+
}
159+
160+
& .bg-pattern2 {
161+
background-image: repeating-linear-gradient(45deg,
162+
transparent,
163+
transparent 10px,
164+
rgba(0, 0, 0, 0.05) 10px,
165+
rgba(0, 0, 0, 0.05) 20px);
166+
}
167+
168+
& .bg-pattern3 {
169+
background-image: repeating-radial-gradient(circle,
170+
transparent,
171+
transparent 10px,
172+
rgba(0, 0, 0, 0.05) 10px,
173+
rgba(0, 0, 0, 0.05) 20px);
156174
}
157175
}
158176

159-
& .no-background {
177+
.no-background {
160178
background: none !important;
161179
}
162180

@@ -170,4 +188,4 @@
170188
transform: scale(1);
171189
opacity: 1;
172190
}
173-
}
191+
}

src/data/gamesData.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,12 @@ export const gamesData: Record<AgeKey, Game[]> = {
176176
link: "/vedic"
177177
},
178178
{
179-
title: "Glossary",
180-
description: "Classic and modern glossary data.",
179+
title: "Zodiac",
180+
description: "Ancient Indian Zodiac Signs.",
181181
image:
182182
"https://images.unsplash.com/photo-1610890716171-6b1bb98ffd09?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80",
183183
tags: ["Strategy", "Classic", "Multiplayer"],
184-
link: "/glossary"
184+
link: "/zodiac"
185185
}
186186
]
187187
};

src/layouts/BaseHead.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//import { ClientRouter } from "astro:transitions";
33
44
import "@/assets/styles/globals.css";
5-
import Analytics from "@/components/Analytics.astro";
65
import { siteConfig } from "@/site-config";
76
import "@fontsource/roboto";
87

src/pages/games/[age].astro

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export function getStaticPaths() {
1818
}
1919
2020
// 2. These come from the matching entry in getStaticPaths()
21-
const { age } = Astro.params;
2221
const { games, displayName } = Astro.props;
2322
2423
const meta = {
@@ -29,13 +28,11 @@ const meta = {
2928

3029
<BaseLayout meta={meta}>
3130
<div class="games-page">
32-
<div class="container--game">
33-
<div class="page-header">
34-
<Back />
35-
<h2>Games for {displayName}</h2>
36-
</div>
37-
38-
{games.length === 0 ? <p>No games found for this age group.</p> : <GamesGrid games={games} />}
31+
<div class="page-header">
32+
<Back />
33+
<h2>Games for {displayName}</h2>
3934
</div>
35+
36+
{games.length === 0 ? <p>No games found for this age group.</p> : <GamesGrid games={games} />}
4037
</div>
4138
</BaseLayout>

src/pages/landing.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ import Hero from "@/components/Hero.astro";
2727
});
2828
}
2929
</script>
30+
31+

0 commit comments

Comments
 (0)