Spaces:
Running
Running
Update src/App.js
Browse files- src/App.js +35 -18
src/App.js
CHANGED
|
@@ -114,10 +114,22 @@ const HoroscopeApp = () => {
|
|
| 114 |
];
|
| 115 |
|
| 116 |
const categories = [
|
| 117 |
-
{ id: "love", name: "Love", icon: "
|
| 118 |
-
{
|
| 119 |
-
|
| 120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
];
|
| 122 |
|
| 123 |
const horoscopeContent = {
|
|
@@ -254,7 +266,11 @@ const HoroscopeApp = () => {
|
|
| 254 |
: "bg-white bg-opacity-90 text-gray-700 hover:bg-opacity-100"
|
| 255 |
} shadow-lg hover:scale-105`}
|
| 256 |
>
|
| 257 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
<span className="hidden sm:inline">
|
| 259 |
{isDarkMode ? "Light Mode" : "Dark Mode"}
|
| 260 |
</span>
|
|
@@ -263,7 +279,7 @@ const HoroscopeApp = () => {
|
|
| 263 |
{/* App Icon - Visible on mobile */}
|
| 264 |
<div className="sm:hidden">
|
| 265 |
<div className="inline-flex items-center justify-center w-12 h-12 bg-gradient-to-r from-blue-400 to-purple-500 rounded-full shadow-lg">
|
| 266 |
-
<
|
| 267 |
</div>
|
| 268 |
</div>
|
| 269 |
|
|
@@ -284,7 +300,7 @@ const HoroscopeApp = () => {
|
|
| 284 |
}`}
|
| 285 |
>
|
| 286 |
<span className="hidden sm:inline">Female</span>
|
| 287 |
-
<
|
| 288 |
</button>
|
| 289 |
<button
|
| 290 |
onClick={() => setSelectedGender("male")}
|
|
@@ -297,7 +313,7 @@ const HoroscopeApp = () => {
|
|
| 297 |
}`}
|
| 298 |
>
|
| 299 |
<span className="hidden sm:inline">Male</span>
|
| 300 |
-
<
|
| 301 |
</button>
|
| 302 |
</div>
|
| 303 |
</div>
|
|
@@ -305,7 +321,7 @@ const HoroscopeApp = () => {
|
|
| 305 |
{/* App Title - Hidden on mobile */}
|
| 306 |
<div className="text-center mb-6 md:mb-10 hidden sm:block">
|
| 307 |
<div className="inline-flex items-center justify-center w-16 h-16 bg-gradient-to-r from-blue-400 to-purple-500 rounded-full mb-4 shadow-lg">
|
| 308 |
-
<
|
| 309 |
</div>
|
| 310 |
<h1 className="text-4xl font-bold mb-2">Horoscope App</h1>
|
| 311 |
</div>
|
|
@@ -410,7 +426,7 @@ const HoroscopeApp = () => {
|
|
| 410 |
: "bg-white bg-opacity-90 text-gray-600 hover:bg-opacity-100"
|
| 411 |
}`}
|
| 412 |
>
|
| 413 |
-
|
| 414 |
{category.name}
|
| 415 |
</button>
|
| 416 |
))}
|
|
@@ -468,7 +484,7 @@ const HoroscopeApp = () => {
|
|
| 468 |
<div className="flex-1">
|
| 469 |
<h2 className="text-3xl font-bold text-blue-400 flex items-center gap-2 mb-2">
|
| 470 |
{getPeriodTitle()}
|
| 471 |
-
<
|
| 472 |
</h2>
|
| 473 |
<div className="flex items-center gap-2">
|
| 474 |
<span className="text-xl">{getCurrentSign()?.symbol}</span>
|
|
@@ -494,7 +510,7 @@ const HoroscopeApp = () => {
|
|
| 494 |
}`}
|
| 495 |
>
|
| 496 |
<div className="text-center">
|
| 497 |
-
<
|
| 498 |
<p
|
| 499 |
className={`text-xs uppercase tracking-wider mb-2 ${
|
| 500 |
isDarkMode ? "text-gray-400" : "text-gray-500"
|
|
@@ -507,7 +523,7 @@ const HoroscopeApp = () => {
|
|
| 507 |
</p>
|
| 508 |
</div>
|
| 509 |
<div className="text-center">
|
| 510 |
-
<
|
| 511 |
<p
|
| 512 |
className={`text-xs uppercase tracking-wider mb-2 ${
|
| 513 |
isDarkMode ? "text-gray-400" : "text-gray-500"
|
|
@@ -520,7 +536,7 @@ const HoroscopeApp = () => {
|
|
| 520 |
</p>
|
| 521 |
</div>
|
| 522 |
<div className="text-center">
|
| 523 |
-
<
|
| 524 |
<p
|
| 525 |
className={`text-xs uppercase tracking-wider mb-2 ${
|
| 526 |
isDarkMode ? "text-gray-400" : "text-gray-500"
|
|
@@ -533,7 +549,7 @@ const HoroscopeApp = () => {
|
|
| 533 |
</p>
|
| 534 |
</div>
|
| 535 |
<div className="text-center">
|
| 536 |
-
<
|
| 537 |
<p
|
| 538 |
className={`text-xs uppercase tracking-wider mb-2 ${
|
| 539 |
isDarkMode ? "text-gray-400" : "text-gray-500"
|
|
@@ -550,9 +566,10 @@ const HoroscopeApp = () => {
|
|
| 550 |
|
| 551 |
{/* Footer */}
|
| 552 |
<div className="text-center text-sm opacity-70 mt-4">
|
| 553 |
-
<p>
|
| 554 |
-
|
| 555 |
-
|
|
|
|
| 556 |
</p>
|
| 557 |
</div>
|
| 558 |
</div>
|
|
|
|
| 114 |
];
|
| 115 |
|
| 116 |
const categories = [
|
| 117 |
+
{ id: "love", name: "Love", icon: <i className="ri-hearts-line"></i> },
|
| 118 |
+
{
|
| 119 |
+
id: "health",
|
| 120 |
+
name: "Health",
|
| 121 |
+
icon: <i className="ri-open-arm-line"></i>,
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
id: "relationship",
|
| 125 |
+
name: "Relationship",
|
| 126 |
+
icon: <i className="ri-group-3-line"></i>,
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
id: "finance",
|
| 130 |
+
name: "Finance",
|
| 131 |
+
icon: <i className="ri-wallet-3-line"></i>,
|
| 132 |
+
},
|
| 133 |
];
|
| 134 |
|
| 135 |
const horoscopeContent = {
|
|
|
|
| 266 |
: "bg-white bg-opacity-90 text-gray-700 hover:bg-opacity-100"
|
| 267 |
} shadow-lg hover:scale-105`}
|
| 268 |
>
|
| 269 |
+
<i
|
| 270 |
+
className={`text-xl ${
|
| 271 |
+
isDarkMode ? "ri-sun-line" : "ri-moon-line"
|
| 272 |
+
}`}
|
| 273 |
+
></i>
|
| 274 |
<span className="hidden sm:inline">
|
| 275 |
{isDarkMode ? "Light Mode" : "Dark Mode"}
|
| 276 |
</span>
|
|
|
|
| 279 |
{/* App Icon - Visible on mobile */}
|
| 280 |
<div className="sm:hidden">
|
| 281 |
<div className="inline-flex items-center justify-center w-12 h-12 bg-gradient-to-r from-blue-400 to-purple-500 rounded-full shadow-lg">
|
| 282 |
+
<i className="ri-magic-line text-xl text-white"></i>
|
| 283 |
</div>
|
| 284 |
</div>
|
| 285 |
|
|
|
|
| 300 |
}`}
|
| 301 |
>
|
| 302 |
<span className="hidden sm:inline">Female</span>
|
| 303 |
+
<i className="ri-women-line sm:hidden"></i>
|
| 304 |
</button>
|
| 305 |
<button
|
| 306 |
onClick={() => setSelectedGender("male")}
|
|
|
|
| 313 |
}`}
|
| 314 |
>
|
| 315 |
<span className="hidden sm:inline">Male</span>
|
| 316 |
+
<i className="ri-men-line sm:hidden"></i>
|
| 317 |
</button>
|
| 318 |
</div>
|
| 319 |
</div>
|
|
|
|
| 321 |
{/* App Title - Hidden on mobile */}
|
| 322 |
<div className="text-center mb-6 md:mb-10 hidden sm:block">
|
| 323 |
<div className="inline-flex items-center justify-center w-16 h-16 bg-gradient-to-r from-blue-400 to-purple-500 rounded-full mb-4 shadow-lg">
|
| 324 |
+
<i className="ri-magic-line text-2xl text-white"></i>
|
| 325 |
</div>
|
| 326 |
<h1 className="text-4xl font-bold mb-2">Horoscope App</h1>
|
| 327 |
</div>
|
|
|
|
| 426 |
: "bg-white bg-opacity-90 text-gray-600 hover:bg-opacity-100"
|
| 427 |
}`}
|
| 428 |
>
|
| 429 |
+
{category.icon}
|
| 430 |
{category.name}
|
| 431 |
</button>
|
| 432 |
))}
|
|
|
|
| 484 |
<div className="flex-1">
|
| 485 |
<h2 className="text-3xl font-bold text-blue-400 flex items-center gap-2 mb-2">
|
| 486 |
{getPeriodTitle()}
|
| 487 |
+
<i className="ri-pulse-line text-xl"></i>
|
| 488 |
</h2>
|
| 489 |
<div className="flex items-center gap-2">
|
| 490 |
<span className="text-xl">{getCurrentSign()?.symbol}</span>
|
|
|
|
| 510 |
}`}
|
| 511 |
>
|
| 512 |
<div className="text-center">
|
| 513 |
+
<i className="ri-palette-line text-3xl mb-3 text-green-500"></i>
|
| 514 |
<p
|
| 515 |
className={`text-xs uppercase tracking-wider mb-2 ${
|
| 516 |
isDarkMode ? "text-gray-400" : "text-gray-500"
|
|
|
|
| 523 |
</p>
|
| 524 |
</div>
|
| 525 |
<div className="text-center">
|
| 526 |
+
<i className="ri-hashtag text-3xl mb-3 text-blue-500"></i>
|
| 527 |
<p
|
| 528 |
className={`text-xs uppercase tracking-wider mb-2 ${
|
| 529 |
isDarkMode ? "text-gray-400" : "text-gray-500"
|
|
|
|
| 536 |
</p>
|
| 537 |
</div>
|
| 538 |
<div className="text-center">
|
| 539 |
+
<i className="ri-vip-diamond-line text-3xl mb-3 text-purple-500"></i>
|
| 540 |
<p
|
| 541 |
className={`text-xs uppercase tracking-wider mb-2 ${
|
| 542 |
isDarkMode ? "text-gray-400" : "text-gray-500"
|
|
|
|
| 549 |
</p>
|
| 550 |
</div>
|
| 551 |
<div className="text-center">
|
| 552 |
+
<i className="ri-star-line text-3xl mb-3 text-yellow-500"></i>
|
| 553 |
<p
|
| 554 |
className={`text-xs uppercase tracking-wider mb-2 ${
|
| 555 |
isDarkMode ? "text-gray-400" : "text-gray-500"
|
|
|
|
| 566 |
|
| 567 |
{/* Footer */}
|
| 568 |
<div className="text-center text-sm opacity-70 mt-4">
|
| 569 |
+
<p className="flex items-center justify-center gap-2">
|
| 570 |
+
<i className="ri-sparkling-line"></i>
|
| 571 |
+
Discover your daily horoscope and unlock the secrets of the stars
|
| 572 |
+
<i className="ri-sparkling-line"></i>
|
| 573 |
</p>
|
| 574 |
</div>
|
| 575 |
</div>
|