Skip to content

Commit 884394e

Browse files
committed
updated sunsigns
1 parent f9b78a7 commit 884394e

File tree

5 files changed

+27
-209
lines changed

5 files changed

+27
-209
lines changed

src/assets/styles/Sunsigns.css

Lines changed: 24 additions & 191 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
:root {
2-
--primary-color: #f12711;
3-
--secondary-color: #f5af19;
4-
--text-color: #333;
5-
--bg-color1: #eef2f3;
6-
--bg-color2: #e4cece;
7-
--card-bg: #ffffff;
8-
--header-bg: #ffffff;
9-
--footer-social-bg: #e4cece;
2+
--primary-color: #7b1fa2;
3+
--secondary-color: rgba(161, 10, 144, 0.72);
4+
--text-color: #f5f5f5;
5+
--bg-color1: #121212;
6+
--bg-color2: #1e1e1e;
7+
--card-bg: #1e1e1e;
8+
--header-bg: #1e1e1e;
9+
--footer-social-bg: #33353d;
1010
}
11-
.dark-mode {
11+
[data-theme="dark"] {
1212
--primary-color: #7b1fa2;
1313
--secondary-color: rgba(161, 10, 144, 0.72);
1414
--text-color: #f5f5f5;
@@ -18,100 +18,23 @@
1818
--header-bg: #1e1e1e;
1919
--footer-social-bg: #33353d;
2020
}
21-
22-
/* @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;700&display=swap'); */
23-
body {
24-
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
25-
margin: 0;
26-
padding: 0;
27-
background: linear-gradient(to right, var(--bg-color1), var(--bg-color2));
28-
color: var(--text-color);
29-
transition: all 0.3s ease;
21+
[data-theme="light"]{
22+
--primary-color: #f12711;
23+
--secondary-color: #f5af19;
24+
--text-color: #333;
25+
--bg-color1: #eef2f3;
26+
--bg-color2: #e4cece;
27+
--card-bg: #ffffff;
28+
--header-bg: #ffffff;
29+
--footer-social-bg: #e4cece;
3030
}
3131

32-
/* body.hindi {
33-
font-family: 'Noto Sans Devanagari', sans-serif;
34-
} */
35-
36-
/* .headers {
37-
position: relative;
38-
margin: 20px auto 0;
39-
width: 90%;
40-
max-width: 1200px;
41-
padding: 20px;
42-
background-color: var(--header-bg);
43-
border-radius: 15px;
44-
box-shadow: 0 2px 5px var(--primary-color);
45-
flex-wrap: wrap;
46-
justify-content: space-between;
47-
align-items: center;
48-
box-sizing: border-box;
49-
} */
50-
5132
.controls {
5233
display: flex;
5334
gap: 1rem;
35+
margin-top: 5rem;
5436
align-items: center;
55-
justify-content: flex-end;
56-
}
57-
58-
/* Dark Mode Toggle Switch */
59-
.toggle-switch {
60-
position: relative;
61-
display: inline-block;
62-
width: 60px;
63-
height: 30px;
64-
margin-left: 10px;
65-
}
66-
67-
.toggle-switch input {
68-
opacity: 0;
69-
width: 0;
70-
height: 0;
71-
}
72-
73-
.slider {
74-
position: absolute;
75-
cursor: pointer;
76-
top: 0;
77-
left: 0;
78-
right: 0;
79-
bottom: 0;
80-
background-color: #ccc;
81-
transition: 0.4s;
82-
border-radius: 34px;
83-
}
84-
85-
.slider:before {
86-
position: absolute;
87-
content: "";
88-
height: 22px;
89-
width: 22px;
90-
left: 4px;
91-
bottom: 4px;
92-
background-color: white;
93-
transition: 0.4s;
94-
border-radius: 50%;
95-
}
96-
97-
input:checked + .slider {
98-
background-color: var(--primary-color);
99-
}
100-
101-
input:checked + .slider:before {
102-
transform: translateX(30px);
103-
}
104-
.home-button {
105-
display: flex;
106-
gap: 0.5rem;
107-
padding: 0.5rem 1rem;
108-
border: none;
109-
border-radius: 6px;
110-
cursor: pointer;
111-
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
112-
color: white;
113-
border: 1px solid var(--primary-color);
114-
transition: all 0.3s ease;
37+
justify-content: center;
11538
}
11639

11740
/* Language Selector Buttons */
@@ -136,41 +59,13 @@ input:checked + .slider:before {
13659
color: white;
13760
}
13861

139-
main {
62+
article {
14063
padding: 2rem;
141-
/* max-width: 1200px; */
64+
max-width: 1200px;
14265
margin: 0 auto;
14366
}
14467

145-
/* Home Page Button Container */
146-
.button-container {
147-
display: flex;
148-
flex-direction: column;
149-
gap: 1.5rem;
150-
margin-top: 2rem;
151-
margin-left: 20rem;
152-
text-align: center;
153-
width: 50%;
154-
}
155-
156-
.nav-button {
157-
padding: 1.5rem;
158-
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
159-
color: white;
160-
text-decoration: none;
161-
border-radius: 8px;
162-
font-size: 1.2rem;
163-
transition: transform 0.2s;
164-
text-align: center;
165-
width: 100%;
166-
box-sizing: border-box;
167-
}
168-
169-
.nav-button:hover {
170-
transform: scale(1.02);
171-
}
172-
173-
/* Grid Layout for Months and Zodiacs */
68+
/* Grid Layout for Zodiacs */
17469
.grid-container {
17570
display: grid;
17671
grid-template-columns: repeat(3, 1fr);
@@ -255,16 +150,6 @@ main {
255150
.grid-container {
256151
grid-template-columns: repeat(2, 1fr);
257152
}
258-
header,
259-
footer {
260-
width: calc(100% - 30px);
261-
margin: 15px auto;
262-
}
263-
header {
264-
flex-direction: column;
265-
align-items: flex-start;
266-
gap: 1rem;
267-
}
268153

269154
.controls {
270155
width: 100%;
@@ -278,27 +163,12 @@ main {
278163
right: 15px;
279164
top: 15px;
280165
}
281-
footer-col {
282-
width: 50%;
283-
margin-bottom: 20px;
284-
}
285166
}
286167

287168
@media (max-width: 480px) {
288-
header,
289-
footer {
290-
width: calc(100% - 20px);
291-
margin: 10px auto;
292-
padding: 15px;
293-
}
294169
.grid-container {
295170
grid-template-columns: 1fr;
296171
}
297-
298-
.nav-button {
299-
padding: 1rem;
300-
font-size: 1rem;
301-
}
302172
.modal-content {
303173
width: 98%;
304174
padding: 12px;
@@ -361,20 +231,6 @@ main {
361231
width: 100%;
362232
}
363233

364-
.toggle-switch {
365-
width: 50px;
366-
height: 26px;
367-
margin-left: 0; /* Remove left margin on mobile */
368-
}
369-
370-
.slider:before {
371-
height: 20px;
372-
width: 20px;
373-
}
374-
375-
input:checked + .slider:before {
376-
transform: translateX(24px); /* Adjusted for new width */
377-
}
378234
}
379235

380236
@media (max-width: 480px) {
@@ -384,32 +240,9 @@ main {
384240
gap: 0.5rem;
385241
}
386242

387-
.toggle-switch {
388-
width: 44px;
389-
height: 24px;
390-
}
391-
392-
.slider:before {
393-
height: 18px;
394-
width: 18px;
395-
}
396-
397-
input:checked + .slider:before {
398-
transform: translateX(20px);
399-
}
400-
401243
.language-buttons {
402-
order: 1; /* Move language buttons to top */
244+
order: 1;
403245
justify-content: space-between;
404246
}
405247

406-
.toggle-switch {
407-
order: 2; /* Move toggle below language buttons */
408-
margin: 0 auto; /* Center the toggle */
409-
}
410-
411-
.home-button {
412-
order: 3; /* Move home button to bottom */
413-
text-align: center;
414-
}
415248
}

src/components/DarkModeToggle.astro

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/components/Header.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
---
22
import LanguageSwitcher from "./LanguageSwitcher.astro";
3-
import DarkModeToggle from "./DarkModeToggle.astro";
43
---
54

65
<header>
76
<h1>Nakshtra Nexus</h1>
87
<div class="controls">
98
<LanguageSwitcher />
10-
<DarkModeToggle />
119
</div>
1210
</header>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import "@/assets/styles/Sunsigns.css";
99
<BaseLayout meta={{ title: "Nakshtra Nexus" }}>
1010
<Back />
1111
<Headers />
12-
<main>
12+
<article>
1313
<ZodiacGrid />
14-
</main>
14+
</article>
1515
<script type="module" src="/js/main.js"></script></BaseLayout
1616
>

src/utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const NavbarLinks: LinkProps[] = [
185185
{
186186
name: "Sunsigns",
187187
title: "Sunsigns",
188-
path: "/zodiacs",
188+
path: "/zodiac",
189189
isActive: true
190190
},
191191
{

0 commit comments

Comments
 (0)