Skip to content

Commit 8a06530

Browse files
committed
added barahkhadi page
1 parent cdc436c commit 8a06530

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
.container__barahkhadi {
2+
padding: 1rem;
3+
height: 100%;
4+
overflow-y: auto;
5+
6+
& .consonants-rows {
7+
display: flex;
8+
flex-direction: column;
9+
}
10+
11+
& .consonant-row {
12+
padding: 1rem;
13+
background-color: color-mix(in srgb, var(--background) 97%, var(--text) 3%);
14+
border-radius: 0.5rem;
15+
}
16+
17+
& .consonants-grid {
18+
display: grid;
19+
gap: 1rem;
20+
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
21+
}
22+
23+
& .consonant-card {
24+
aspect-ratio: 1;
25+
background-color: color-mix(in srgb, var(--secondary) 15%, var(--background) 85%);
26+
border-radius: 0.5rem;
27+
display: grid;
28+
place-items: center;
29+
text-decoration: none;
30+
transition: transform 0.2s ease;
31+
}
32+
33+
& .consonant-card:hover {
34+
transform: scale(1.05);
35+
background-color: color-mix(in srgb, var(--primary) 15%, var(--background) 85%);
36+
transition: all 0.2s ease;
37+
}
38+
39+
& .consonant {
40+
font-size: 5rem;
41+
font-weight: bold;
42+
color: var(--text);
43+
}
44+
45+
& .consonants-container {
46+
scrollbar-width: thin;
47+
scrollbar-color: var(--primary) var(--background);
48+
}
49+
}

src/pages/barahkhadi/index.astro

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
import BaseLayout from "@/layouts/Base";
3+
import "@/assets/styles/barahkhadi/index.css";
4+
5+
const consonants = [
6+
["", "", "", "", ""],
7+
["", "", "", "", ""],
8+
["", "", "", "", ""],
9+
["", "", "", "", ""],
10+
["", "", "", "", ""],
11+
["", "", "", ""],
12+
["", "", "", ""]
13+
];
14+
---
15+
16+
<BaseLayout meta={{ title: "Barahkhadi" }}>
17+
<div class="container__barahkhadi">
18+
<div class="consonants-rows">
19+
{
20+
consonants.map((row, rowIndex) => (
21+
<div class="consonant-row">
22+
<div class="consonants-grid">
23+
{row.map((consonant) => (
24+
<a href={`/barahkhadi/${consonant}`} class="consonant-card">
25+
<div class="consonant-content">
26+
<span class="consonant">{consonant}</span>
27+
</div>
28+
</a>
29+
))}
30+
</div>
31+
</div>
32+
))
33+
}
34+
</div>
35+
</div>
36+
</BaseLayout>

src/utils/constants.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ export const NavbarLinks: LinkProps[] = [
3636
path: "/reader",
3737
isActive: true
3838
},
39+
{
40+
name: "Barahkhadi",
41+
title: "Barahkhadi",
42+
path: "/barahkhadi",
43+
isActive: true
44+
},
3945
{
4046
name: "Record",
4147
title: "Record",

0 commit comments

Comments
 (0)