Skip to content

Commit

Permalink
fixed css
Browse files Browse the repository at this point in the history
  • Loading branch information
xkeshav committed Sep 25, 2024
1 parent 71280c8 commit 6a6afca
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 28 deletions.
5 changes: 5 additions & 0 deletions abcd.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[css]": {
"editor.foldingStrategy": "indentation"
},
"eslint.validate": [
"mdx",
"markdown",
Expand Down Expand Up @@ -161,10 +164,12 @@
"cSpell.words": [
"headlessui",
"heroicons",
"hyperlegible",
"Mohta",
"nojekyll",
"recursivezero",
"sanyukat",
"sportrop",
"threadzip"
],
"css.lint.unknownAtRules": "ignore",
Expand Down
9 changes: 9 additions & 0 deletions src/assets/styles/about.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.container__about {
padding: 1rem;

>.moto {
color: #3a8657;
font-size: 3rem;

}
}
12 changes: 4 additions & 8 deletions src/assets/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
--accent-light: 224, 204, 250;
--accent-dark: 49, 10, 101;
--accent-gradient: linear-gradient(45deg, rgb(var(--accent)), rgb(var(--accent-light)) 30%, white 60%);
color-scheme: light dark;
--text: white;
--bg: #13151a;
/*border color */
Expand Down Expand Up @@ -90,15 +91,14 @@ header {
grid-area: header;
height: var(--header-h);
border: 1px solid pink;
border-radius: 0.5rem;
display: flex;
justify-content: space-between;
align-items: center;
padding-inline: 1rem;
}

a {
color: white;
color: light-dark(#f5f2f2, white);
}

h1 {
Expand All @@ -111,16 +111,12 @@ h1 {

main {
grid-area: main;
margin: auto;
display: grid;
padding: 1rem;
width: auto;
max-width: calc(100% - 2rem);
color: white;
color: var(--text, white);
font-size: 1.25rem;
line-height: 1.6;
max-height: max-content;
max-height: calc(100vh - var(--header-h) - var(--footer-h) - 4rem);
display: grid;
grid-auto-flow: row;
height: 100vh;
}
Expand Down
1 change: 1 addition & 0 deletions src/assets/styles/header.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@import url(./global.css);

.header {
background-color: #15091d;
Expand Down
5 changes: 0 additions & 5 deletions src/assets/styles/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,3 @@ nav {
color: #5b3333;
}
}

.footer {
text-align: center;
align-self: center;
}
1 change: 0 additions & 1 deletion src/assets/styles/panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
--tz: 288px;
}


main {
display: grid;
grid-template-areas: 'option' 'panel';
Expand Down
1 change: 0 additions & 1 deletion src/components/BaseHead.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
import { siteConfig } from "@/site-config";
const { title, description, ogImage } = Astro.props;
const titleSeparator = "";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
const currentYear = new Date().getFullYear();
---
<footer>
<p class="copyright">&copy; {currentYear} | RecursiveZero Private Limited | All rights reserved </p>
<p class="copyright">&copy; {currentYear} | RecursiveZero private limited | All rights reserved. </p>
</footer>
23 changes: 15 additions & 8 deletions src/pages/about.astro
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
---
import "@/assets/styles/about.css";
import Header from "@/components/Header";
import Layout from "@/layouts/Layout";
---

<Layout title="About Us">
<Header>
<div>popover content</div>
<Header title="About us">
<div popovertarget="hint">❓</div>
</Header>
<div popover id="hint">
<button autofocus>Close</button>
<p>Hide & Seek.</p>
<p>Press any alphabet key from keyboard and that letter will appears and when you press again then it will
disappears. see some hover and active effect while hover over each card</p>
</div>
<main>
<div>
<div class="container__about">
<h1>Hello There</h1>
<p>This is my initial version to make interactive games for kids</p>
<p>
Inspiration behind these games are to take kids away from smartphone and close to keyboard which will help in
their future building also.
</p>
<section class="moto">
<p>This is my initial version to make interactive games for kids</p>
<p>Inspiration behind these games are to take kids away from smartphone and close to keyboard which will help in their future building also. </p>
</section>
</div>
</main>
</Layout>
2 changes: 1 addition & 1 deletion src/pages/letter/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const { title, text } = Astro.props;
---
<Layout title="varnmala" >
<Header title="Varnmala">
<div>popover content</div>
<div>what</div>
</Header>
<main>
<p>{title}</p>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/panel.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import "@/assets/styles/panel.css";
import Header from "@/components/Header";
import Layout from "@/layouts/Layout";
import "@/assets/styles/panel.css";
---

Expand All @@ -23,7 +23,7 @@ import "@/assets/styles/panel.css";
</style>
<Layout title="varnmala" >
<Header title="Varnmala">
<div>popover content</div>
<div></div>
</Header>
<main class="tv">
<section class="scene">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/varnmala.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { varnmala_english, varnmala_hindi } from '@/utils/common';

<Layout title="varnmala" >
<Header title="Alphabets">
<div>popover content</div>
<div></div>
</Header>
<main>
<Alphabet list={varnmala_english} title="English"/>
Expand Down

0 comments on commit 6a6afca

Please sign in to comment.