Skip to content

Commit 5d99074

Browse files
committed
added help to varnmala and updated css
1 parent 3771a80 commit 5d99074

File tree

2 files changed

+47
-41
lines changed

2 files changed

+47
-41
lines changed

src/assets/styles/alphabet.css

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,42 @@
44
container-type: inline-size;
55
container-name: layout;
66
font-family: "atkinson";
7-
}
87

9-
.list {
10-
display: grid;
11-
grid-gap: 4px;
12-
grid-template-columns: repeat(5, 1fr);
13-
margin-block: 1rem;
14-
}
8+
& .list {
9+
display: grid;
10+
grid-gap: 4px;
11+
grid-template-columns: repeat(5, 1fr);
12+
margin-block: 1rem;
1513

16-
.letter {
17-
display: grid;
18-
grid-auto-flow: row;
19-
justify-items: center;
20-
align-content: center;
21-
color: var(--text, grey);
22-
border: 2px solid var(--bc);
23-
border-radius: 0.5rem;
24-
box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
25-
padding: 0.5rem;
26-
height: fit-content;
14+
& .letter {
15+
display: grid;
16+
grid-auto-flow: row;
17+
justify-items: center;
18+
align-content: center;
19+
color: var(--text, grey);
20+
border: 2px solid var(--bc);
21+
border-radius: 0.5rem;
22+
box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
23+
padding: 0.5rem;
24+
height: fit-content;
2725

28-
& p {
29-
font-size: clamp(1.5rem, 5vw, 5rem);
30-
text-align: center;
31-
width: 100%;
32-
}
26+
& p {
27+
font-size: clamp(1.5rem, 5vw, 5rem);
28+
text-align: center;
29+
width: 100%;
30+
}
3331

34-
& .code {
35-
cursor: pointer;
36-
font-size: small;
37-
}
32+
& .code {
33+
cursor: pointer;
34+
font-size: small;
35+
}
3836

39-
::selection {
40-
color: red;
41-
background-color: yellow;
42-
text-shadow: 5px 5px #558abb;
37+
::selection {
38+
color: red;
39+
background-color: yellow;
40+
text-shadow: 5px 5px #558abb;
41+
}
42+
}
4343
}
4444
}
4545

@@ -49,8 +49,7 @@
4949
}
5050

5151
.letter {
52-
background-color: white;
5352
color: black;
5453
font-size: max(1.5em, 1.23em + 2cqi);
5554
}
56-
}
55+
}

src/pages/varnmala.astro

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
---
22
import Alphabet from "@/components/Alphabet.astro";
3+
import Help from "@/components/Help.astro";
34
import BaseLayout from "@/layouts/Base";
45
import { varnmala_english, varnmala_hindi } from "@/utils/common";
56
---
67

78
<BaseLayout meta={{ title: "Alphabets" }}>
8-
<main class="varnmala-main">
9+
<Fragment slot="header-right">
10+
<Help
11+
title="Varnmala"
12+
description="Varnmala is a collection of alphabets in Hindi and English. It is used to teach kids the basics of language."
13+
/>
14+
</Fragment>
15+
<article class="container__varnmala">
916
<Alphabet list={varnmala_english} title="English" />
1017
<Alphabet list={varnmala_hindi} title="Hindi" />
11-
</main>
12-
</BaseLayout>
18+
</article>
1319

14-
<style>
15-
.varnmala-main {
16-
display: block;
17-
}
18-
</style>
20+
<style>
21+
.container__varnmala {
22+
display: block;
23+
}
24+
</style>
25+
</BaseLayout>

0 commit comments

Comments
 (0)