Skip to content

Commit bc8ed5f

Browse files
committed
[RZA-250175]: added analytics and disha and puranas page
1 parent cc81841 commit bc8ed5f

File tree

11 files changed

+310
-22
lines changed

11 files changed

+310
-22
lines changed

.vscode/dictionaries/project-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ datetime
2626
Deepavali
2727
dhaga
2828
Dhaivat
29+
Disha
2930
dogri
3031
DPDP
3132
Dussehra

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ Created Repo from template
3636
- Mobile view fixed for pages
3737
- FAQs updated
3838

39+
## [3.2.3] - 2025-09-07
40+
41+
- Added Google Analytics with partytown
42+
- Added Disha and Purana names in Glossary
43+
3944
### [Unreleased]
4045

4146
Here we write upgrading notes for brands. It's a team effort to make them as straightforward as possible.

astro.config.mjs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import mdx from "@astrojs/mdx";
2+
import partytown from "@astrojs/partytown";
23
import sitemap from "@astrojs/sitemap";
34
import { defineConfig } from "astro/config";
45

@@ -18,7 +19,16 @@ export default defineConfig({
1819
experimental: {
1920
svg: true
2021
},
21-
integrations: [sitemap(), mdx()],
22+
integrations: [
23+
partytown({
24+
// https://partytown.qwik.dev/google-tag-manager/#google-analytics-4-ga4
25+
config: {
26+
forward: ["dataLayer.push"]
27+
}
28+
}),
29+
sitemap(),
30+
mdx()
31+
],
2232
style: {
2333
global: true // Ensure global styles are applied
2434
},

package-lock.json

Lines changed: 35 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@recursivezero/abcd",
3-
"version": "3.2.3",
3+
"version": "3.2.4",
44
"description": "A website for our kids trial phase of abcdkbd.com",
55
"homepage": "https://abcdkbd.com",
66
"displayName": "abcd",
@@ -112,6 +112,7 @@
112112
"@astrojs/check": "0.9.4",
113113
"@astrojs/mdx": "4.0.3",
114114
"@astrojs/node": "9.1.2",
115+
"@astrojs/partytown": "2.1.4",
115116
"@astrojs/sitemap": "3.4.1",
116117
"@fontsource/roboto": "5.1.0",
117118
"astro": "5.4.1",
@@ -135,5 +136,8 @@
135136
"prettier": "3.1.0",
136137
"prettier-plugin-astro": "0.14.1",
137138
"shx": "0.3.4"
139+
},
140+
"engines": {
141+
"node": "^20"
138142
}
139-
}
143+
}

src/assets/styles/letter-card.css

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,14 @@
2929
justify-content: center;
3030
align-items: center;
3131
height: 100%;
32-
font-size: clamp(3rem, 6vw, 4rem);
32+
font-size: clamp(3rem, 6vw, 3.25rem);
3333
font-weight: 800;
3434
margin: 0;
3535
line-height: 1.2;
3636
/* Adjusted line-height */
37-
background: linear-gradient(
38-
135deg,
39-
var(--character-gradient-start, var(--primary)) 0%,
40-
var(--character-gradient-end, var(--primary-light)) 100%
41-
);
37+
background: linear-gradient(135deg,
38+
var(--character-gradient-start, var(--primary)) 0%,
39+
var(--character-gradient-end, var(--primary-light)) 100%);
4240
-webkit-background-clip: text;
4341
background-clip: text;
4442
color: transparent;
@@ -194,11 +192,9 @@
194192
& .card__glow {
195193
position: absolute;
196194
inset: 0;
197-
background: radial-gradient(
198-
circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
199-
color-mix(in srgb, var(--primary) 10%, transparent) 0%,
200-
transparent 60%
201-
);
195+
background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
196+
color-mix(in srgb, var(--primary) 10%, transparent) 0%,
197+
transparent 60%);
202198
opacity: 0;
203199
transition: opacity 0.3s ease;
204200
pointer-events: none;
@@ -217,4 +213,4 @@
217213
font-size: 0.875rem;
218214
}
219215
}
220-
}
216+
}

src/assets/styles/tile.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,10 @@
6161
display: none;
6262
}
6363
}
64+
65+
[data-category="scripture"] .page__grid {
66+
.character {
67+
margin-top: 8px;
68+
font-size: clamp(1rem, 4vw, 2rem);
69+
}
70+
}

src/components/Analytics.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const gtagScript = `
88
`;
99
---
1010

11-
<script async src={`https://www.googletagmanager.com/gtag/js?id=${GA_ID}`} is:inline></script>
12-
<script define:vars={{ gtagScript }} is:inline>
11+
<script async type="text/partytown" src={`https://www.googletagmanager.com/gtag/js?id=${GA_ID}`} is:inline></script>
12+
<script type="text/partytown" define:vars={{ gtagScript }} is:inline>
1313
{
1414
gtagScript;
1515
}

src/data/glossary.json

Lines changed: 193 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,5 +893,197 @@
893893
"text": "देर रात"
894894
}
895895
]
896+
},
897+
"disha": {
898+
"id": 14,
899+
"category": "dimension",
900+
"icon": "📏",
901+
"title": "Disha (Dimensions)",
902+
"description": "A collection of 10 dimensions in Hindi and English.",
903+
"data": [
904+
{
905+
"description": "Abode of gods and enlightenment.",
906+
"emoji": "",
907+
"letter": "Up",
908+
"text": "ऊर्ध्व, ऊपर"
909+
},
910+
{
911+
"description": "Realm of ancestors and netherworld.",
912+
"emoji": "",
913+
"letter": "Down",
914+
"text": "अधः, नीचे"
915+
},
916+
{
917+
"description": "Direction of the gods.",
918+
"emoji": "➡️",
919+
"letter": "East",
920+
"text": "पूर्व"
921+
},
922+
{
923+
"description": "Direction of the ancestors.",
924+
"emoji": "⬅️",
925+
"letter": "West",
926+
"text": "पश्चिम"
927+
},
928+
{
929+
"description": "Home of wealth and prosperity.",
930+
"emoji": "⬆️",
931+
"letter": "North",
932+
"text": "उत्तर"
933+
},
934+
{
935+
"description": "Domain of death and change.",
936+
"emoji": "⬇️",
937+
"letter": "South",
938+
"text": "दक्षिण"
939+
},
940+
{
941+
"description": "Corner of Shiva and wisdom.",
942+
"emoji": "↗️",
943+
"letter": "Northeast",
944+
"text": "ईशान्य"
945+
},
946+
{
947+
"description": "Corner of Agni and energy.",
948+
"emoji": "↘️",
949+
"letter": "Southeast",
950+
"text": "आग्नेय"
951+
},
952+
{
953+
"description": "Corner of Vayu and winds.",
954+
"emoji": "↖️",
955+
"letter": "Northwest",
956+
"text": "वायव्य"
957+
},
958+
{
959+
"description": "Corner of Nirriti (निरृति ) and dissolution.",
960+
"emoji": "↙️",
961+
"letter": "Southwest",
962+
"text": "नैर्ऋत्य"
963+
}
964+
]
965+
},
966+
"purana": {
967+
"id": 15,
968+
"category": "scripture",
969+
"icon": "📜",
970+
"title": "Purana",
971+
"description": "A collection of the 18 Mahapuranas in Hinduism.",
972+
"data": [
973+
{
974+
"description": "Describes creation and time cycles.",
975+
"emoji": "🕉️",
976+
"letter": "Brahma Purana",
977+
"text": "ब्रह्म पुराण"
978+
},
979+
{
980+
"description": "Focuses on Lord Vishnu's avatars.",
981+
"emoji": "🐚",
982+
"letter": "Padma Purana",
983+
"text": "पद्म पुराण"
984+
},
985+
{
986+
"description": "Glorifies Lord Shiva and rituals.",
987+
"emoji:": "🔱",
988+
"letter": "Vishnu Purana",
989+
"text": "विष्णु पुराण"
990+
},
991+
{
992+
"description": "A vast encyclopedia of knowledge.",
993+
"emoji": "🌌",
994+
"letter": "Shiva Purana",
995+
"text": "शिव पुराण"
996+
},
997+
{
998+
"description": "Tales of Lord Vishnu's incarnations.",
999+
"emoji": "🎭",
1000+
"letter": "Bhagavata Purana",
1001+
"text": "भागवत पुराण"
1002+
},
1003+
{
1004+
"description": "Details about the universe's structure.",
1005+
"emoji": "🗺️",
1006+
"letter": "Narada Purana",
1007+
"text": "नारद पुराण"
1008+
},
1009+
{
1010+
"description": "Story of Markandeya's immortality.",
1011+
"emoji": "🧓",
1012+
"letter": "Markandeya Purana",
1013+
"text": "मार्कण्डेय पुराण"
1014+
},
1015+
{
1016+
"description": "Worship of Goddess Agni (Fire).",
1017+
"emoji": "🔥",
1018+
"letter": "Agni Purana",
1019+
"text": "अग्नि पुराण"
1020+
},
1021+
{
1022+
"description": "A dialogue between Shiva and Parvati.",
1023+
"emoji": "👫",
1024+
"letter": "Bhavishya Purana",
1025+
"text": "भविष्य पुराण"
1026+
},
1027+
{
1028+
"description": "Glorifies the Linga form of Shiva.",
1029+
"emoji": "",
1030+
"letter": "Linga Purana",
1031+
"text": "लिंग पुराण"
1032+
},
1033+
{
1034+
"description": "Story of the Varaha avatar (boar).",
1035+
"emoji": "🐗",
1036+
"letter": "Varaha Purana",
1037+
"text": "वराह पुराण"
1038+
},
1039+
{
1040+
"description": "The story of the Vamana avatar (dwarf).",
1041+
"emoji": "👣",
1042+
"letter": "Vamana Purana",
1043+
"text": "वामन पुराण"
1044+
},
1045+
{
1046+
"description": "The greatness of the Skanda (Kartikeya).",
1047+
"emoji": "🦚",
1048+
"letter": "Skanda Purana",
1049+
"text": "स्कन्द पुराण"
1050+
},
1051+
{
1052+
"description": "The story of the Vamana avatar (dwarf).",
1053+
"emoji": "👣",
1054+
"letter": "Vamana Purana",
1055+
"text": "वामन पुराण"
1056+
},
1057+
{
1058+
"description": "The story of the Kurma avatar (tortoise).",
1059+
"emoji": "🐢",
1060+
"letter": "Kurma Purana",
1061+
"text": "कूर्म पुराण"
1062+
},
1063+
{
1064+
"description": "The story of the Matsya avatar (fish).",
1065+
"emoji": "🐠",
1066+
"letter": "Matsya Purana",
1067+
"text": "मत्स्य पुराण"
1068+
},
1069+
{
1070+
"description": "The story of the Garuda (divine eagle).",
1071+
"emoji": "🦅",
1072+
"letter": "Garuda Purana",
1073+
"text": "गरुड़ पुराण"
1074+
},
1075+
{
1076+
"description": "The story of the Brahmanda (cosmic egg).",
1077+
"emoji": "🥚",
1078+
"letter": "Brahmanda Purana",
1079+
"text": "ब्रह्माण्ड पुराण"
1080+
}
1081+
],
1082+
"mnemonic": {
1083+
"description": "A Sanskrit mnemonic verse for memorizing the 18 Puranas; explained in the work of a highly influential 12th-century scholar:Nārāyaṇa (नारायण)",
1084+
"verse": "मद्वयं भद्वयं चैव ब्रत्रयं वचतुष्टयम्। अनापलिंगकूस्कानि पुराणानि प्रचक्षते।।",
1085+
"explanation": "This verse is a code where each syllable hints at the beginning of a Purana's name (e.g., 'Ma' for Matsya, 'Dvaya' for two, implying two Puranas starting with 'Ma' - Matsya and Markandeya).",
1086+
"author": "explained in the work of a highly influential 12th-century scholar:Nārāyaṇa (नारायण)"
1087+
}
8961088
}
897-
}
1089+
}

0 commit comments

Comments
 (0)