Skip to content

Commit 1aef1ea

Browse files
Rupesh-Rathorerecursivezero
authored andcommitted
Magic & padding
1 parent 9f0b2a3 commit 1aef1ea

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/assets/styles/varnmala/reader.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,21 @@
1818
gap: 0.5rem;
1919
height: max-content;
2020
}
21+
.info {
22+
font-size: 1rem;
23+
color: #6b7280;
24+
font-weight: 500;
25+
margin: 0 auto;
26+
text-align: center;
27+
padding: 0.5rem;
28+
}
2129
.container__reader > .letter{
2230
width: 100%;
2331
box-sizing: border-box;
2432
margin-left: 4rem;
25-
text-align: center;
33+
display: flex;
34+
align-items: center;
35+
justify-content: flex-end;
2636
}
2737
.hide {
2838
display: none;
@@ -174,6 +184,7 @@
174184
font-size: min(200rem, 70vw);
175185
}
176186
.container__reader > .letter{
187+
justify-content: center;
177188
margin-left: auto;
178189
}
179190
.mute-button {

src/pages/varnmala/listen.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ import KeyboardTrigger from "@/components/KeyboardTrigger.astro";
3232
/>
3333
</Fragment>
3434

35+
<div class="info">Press a key to see the magic</div>
3536
<article id="container__reader" class="container__reader">
36-
<div class="letter">a🍎</div></article>
37+
<div class="letter">a🍎</div>
38+
</article>
3739
<section class="section--audio hide">
3840
<audio id="audioPlayer" controlslist="nodownload" controls autoplay></audio>
3941
</section>

0 commit comments

Comments
 (0)