Skip to content

Commit 34f5dc5

Browse files
committed
addded help and updated css
1 parent 27a1396 commit 34f5dc5

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

src/assets/styles/hindi.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
.container__hindi {
2+
display: flex;
3+
justify-content: center;
4+
align-items: center;
5+
height: 100vh;
6+
width: auto;
7+
font-size: 1rem;
8+
place-items: center;
9+
will-change: contents;
10+
overflow: hidden;
11+
12+
& .letter {
13+
grid-area: letter;
14+
font-size: clamp(30rem, 90vw, 70rem);
15+
height: min-content;
16+
color: var(--letter__txt--2);
17+
transition: color 0.5s ease-in;
18+
}
19+
}

src/pages/hindi.astro

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
---
22
import BaseLayout from "@/layouts/Base";
3+
import "@/assets/styles/hindi.css";
4+
import Help from "@/components/Help.astro";
35
---
46

57
<BaseLayout meta={{ title: "Hindi" }}>
6-
<main>
7-
<div class="letter"></div>
8-
</main>
8+
<Fragment slot="header-right">
9+
<Help
10+
title="Hindi Varnmala"
11+
description="Just press any letter fron keyboard and it display the letter and it's relative word in clear way and if you type again it will change the color"
12+
/>
13+
</Fragment>
14+
<article class="container__hindi">
15+
<div class="letter">A</div>
16+
</article>
917
<script>
1018
import { colorBox, isAlphabet, random } from "@/utils/utils.js";
1119

0 commit comments

Comments
 (0)