257
257
transform : scale (1.01 );
258
258
box-shadow : 0 0 18px grey;
259
259
}
260
+ .custom-footer-green {
261
+ background : linear-gradient (180deg , # 4be04b 0% , # 6eea6e 100% );
262
+ color : # 222 ;
263
+ font-family : 'Segoe UI' , sans-serif;
264
+ }
265
+ body .dark-mode .custom-footer-green {
266
+ background : # 222 ;
267
+ color : # 222 ;
268
+ font-family : 'Segoe UI' , sans-serif;
269
+ }
270
+ /* Dark mode styles */
271
+ body .dark-mode {
272
+ background-color : # 121212 !important ;
273
+ color : # ffffff !important ;
274
+ }
275
+
276
+ body .dark-mode .navbar {
277
+ background-color : # 1f1f1f !important ;
278
+ }
279
+
280
+ body .dark-mode .custom-footer-green {
281
+ background-color : # 1f1f1f !important ;
282
+ color : # ffffff ;
283
+ }
284
+
285
+ body .dark-mode .card {
286
+ background-color : # 1f1f1f !important ;
287
+ color : # ffffff ;
288
+ }
289
+
290
+ body .dark-mode a {
291
+ color : # bb86fc !important ;
292
+ }
293
+
294
+ body .dark-mode .btn-outline-secondary {
295
+ border-color : # bb86fc !important ;
296
+ color : # bb86fc !important ;
297
+ }
298
+
299
+ body .dark-mode .search-container {
300
+ background-color : # 333 !important ;
301
+ }
302
+
303
+ body .dark-mode .search-input {
304
+ background-color : # 222 !important ;
305
+ color : # fff !important ;
306
+ }
307
+
308
+ body .dark-mode .footer-list a {
309
+ color : # bb86fc !important ;
310
+ }
311
+
312
+ body .dark-mode .theme-aware-logo {
313
+ content : url ('images/Logo.png' );
314
+ }
315
+ /* Dark mode read more button fix */
316
+ body .dark-mode .read-more {
317
+ background : linear-gradient (to right, # 5a5a5a, # 777 );
318
+ color : # fff ;
319
+ }
320
+
321
+ /* Circular Dark Mode Toggle Button Styling */
322
+ .theme-toggle .toggle-btn {
323
+ border : 2px solid # cbc9cc ;
324
+ background-color : # 2b2d2e ;
325
+ color : # ffffff ;
326
+ border-radius : 50% ;
327
+ width : 45px ;
328
+ height : 45px ;
329
+ display : flex;
330
+ align-items : center;
331
+ justify-content : center;
332
+ cursor : pointer;
333
+ transition : all 0.3s ease;
334
+ font-size : 1.25rem ;
335
+ }
336
+
337
+ .theme-toggle .toggle-btn : hover {
338
+ background-color : # bb86fc ;
339
+ transform : scale (1.1 );
340
+ }
341
+
342
+ /* Footer dark mode */
343
+ /* Dark mode footer */
344
+ body .dark-mode .custom-footer-green {
345
+ background-color : # 1a1a1a ;
346
+ color : # e0e0e0 !important ; /* default text color */
347
+ }
348
+ .custom-footer-green {
349
+ color : black;
350
+ }
351
+
352
+ body .dark-mode .custom-footer-green a {
353
+ color : # a6abd3 !important ; /* links color */
354
+ transition : color 0.3s ;
355
+ }
356
+ .custom-footer-green a {
357
+ color : # b604fd !important ; /* links color */
358
+ transition : color 0.3s ;
359
+ }
360
+
361
+ body .dark-mode .custom-footer-green a : hover {
362
+ color : # ffb74d !important ; /* hover color */
363
+ }
364
+ .custom-footer-green a : hover {
365
+ color : # faf9f7 !important ; /* hover color */
366
+ }
367
+
368
+ body .dark-mode .custom-footer-green h5 ,
369
+ body .dark-mode .custom-footer-green p ,
370
+ body .dark-mode .custom-footer-green span ,
371
+ body .dark-mode .custom-footer-green li {
372
+ color : # ffffff !important ; /* all text in footer */
373
+ }
374
+ .custom-footer-green h5 ,
375
+ .custom-footer-green p ,
376
+ .custom-footer-green span ,
377
+ .custom-footer-green li {
378
+ color : # 090808 !important ; /* all text in footer */
379
+ }
380
+
381
+ body .dark-mode .custom-footer-green i {
382
+ color : # e0e0e0 !important ; /* icons */
383
+ }
384
+
385
+
386
+
387
+ /* Footer bottom bar */
388
+ body .dark-mode .footer-bottom-bar ,
389
+ body .dark-mode .footer-bottom-bar-text ,
390
+ body .dark-mode .footer-bottom-bar-text .footer-brand {
391
+ background-color : # 1a1a1a !important ;
392
+ color : # e0e0e0 !important ;
393
+ }
394
+ .footer-bottom-bar ,
395
+ .footer-bottom-bar-text ,
396
+ .footer-bottom-bar-text .footer-brand {
397
+ background-color : # f3eded !important ;
398
+ color : green !important ;
399
+ }
400
+
401
+ body .dark-mode .footer-bottom-bar a {
402
+ color : # a6abd3 !important ;
403
+ }
404
+ .footer-bottom-bar a {
405
+ color : # 01020b !important ;
406
+ }
407
+ .footer-bottom-bar a : hover {
408
+ color : green !important ;
409
+ }
410
+
411
+ body .dark-mode .footer-bottom-bar a : hover {
412
+ color : # ffb74d !important ;
413
+ }
414
+ /* Make all main containers dark in dark mode */
415
+
416
+
417
+ /* Optional: for Bootstrap cards that still show white */
418
+ body .dark-mode .card {
419
+ background-color : # 1f1f1f !important ;
420
+ color : # fff !important ;
421
+ }
422
+
423
+
424
+
425
+
426
+
260
427
</ style >
261
428
</ head >
262
429
263
430
< body id ="main-body ">
264
- <!-- Navbar starts here -->
265
- <!-- ✅ Navbar -->
266
431
< nav class ="navbar navbar-expand-lg ">
267
- < div
268
- class ="container-fluid d-flex justify-content-between align-items-center px-3 px-lg-5 "
269
- >
432
+ < div class ="container-fluid d-flex justify-content-between align-items-center px-3 px-lg-5 ">
270
433
<!-- Logo -->
271
434
< a class ="navbar-brand " href ="./index.html ">
272
435
< img
318
481
</ li >
319
482
</ ul >
320
483
</ div >
484
+
321
485
322
486
<!-- Dark/Light toggle button
323
487
<div class="theme-toggle">
327
491
</div> -->
328
492
329
493
<!-- Responsive Search Bar -->
330
- < div class ="search-container ">
331
- < input type ="text " placeholder ="Search... " class ="search-input " />
332
- < button class ="search-button ">
333
- < i class ="fas fa-search "> </ i >
334
- <!-- Font Awesome icon -->
335
- </ button >
336
- </ div >
337
- </ div >
494
+ < div class ="d-flex align-items-center gap-3 ">
495
+ < div class ="search-container ">
496
+ < input type ="text " placeholder ="Search... " class ="search-input " />
497
+ < button class ="search-button ">
498
+ < i class ="fas fa-search "> </ i >
499
+ </ button >
500
+ </ div >
501
+
502
+ < div class ="theme-toggle ">
503
+ < button id ="themeToggleBtn " class ="toggle-btn ">
504
+ < i class ="fa-solid fa-moon "> </ i >
505
+ </ button >
506
+ </ div >
507
+ </ div >
508
+
338
509
</ nav >
339
510
340
511
< div class ="container py-5 ">
@@ -507,20 +678,20 @@ <h5 class="card-title">Content Writing</h5>
507
678
</ div >
508
679
</ div >
509
680
</ div >
510
- <!-- Footer section starts here (Contact us) -->
511
- <!-- ...existing code... -->
512
- < footer class ="custom-footer-green mt-5 ">
681
+
682
+ < footer class ="custom-footer-green " style ="
683
+ background-color: #1a1a1a;
684
+ color: #e0e0e0; ">
513
685
< div class ="container py-5 ">
514
686
< div class ="row align-items-center ">
515
- <!-- Logo & About -->
516
687
< div class ="col-lg-4 text-center text-lg-start mb-4 mb-lg-0 ">
517
688
< img
518
689
src ="images/Logo_new.png "
519
690
alt ="GrowCraft "
520
691
style ="height: 60px "
521
692
/>
522
693
<!-- <h2 class="fw-bold mt-2 mb-3" style="color: #222;">GrowCraft</h2> -->
523
- < p class ="mb-3 fw-semibold " style ="color: #222; font-size: 1.15rem ">
694
+ < p class ="mb-3 fw-semibold " style ="font-size: 1.15rem ">
524
695
Empowering businesses with innovative digital< br />
525
696
solutions and creative excellence.
526
697
</ p >
@@ -573,17 +744,16 @@ <h5 class="fw-bold mb-3 footer-underline">Quick Links</h5>
573
744
< h5 class ="fw-bold mb-3 footer-underline "> Get In Touch</ h5 >
574
745
< ul class ="list-unstyled footer-list ">
575
746
< li >
576
- < i class ="fa-solid fa-envelope me-2 " style =" color: #007bff " > </ i >
747
+ < i class ="fa-solid fa-envelope me-2 "> </ i >
577
748
< a href ="mailto:info@growcraft.com "> info@growcraft.com</ a >
578
749
</ li >
579
750
< li >
580
- < i class ="fa-solid fa-phone me-2 " style =" color: #00bcd4 " > </ i >
751
+ < i class ="fa-solid fa-phone me-2 " > </ i >
581
752
< a href ="tel:+91999999999 "> +91 999 999 999</ a >
582
753
</ li >
583
754
< li >
584
755
< i
585
756
class ="fa-solid fa-location-dot me-2 "
586
- style ="color: #2196f3 "
587
757
> </ i >
588
758
< a
589
759
href ="https://maps.google.com/?q=ABC+Street,+XYZ+City,+India "
@@ -599,9 +769,9 @@ <h5 class="fw-bold mb-3 footer-underline">Get In Touch</h5>
599
769
< div
600
770
class ="container d-flex flex-column flex-md-row justify-content-between align-items-center "
601
771
>
602
- < div class ="small " style =" color: #222 " >
772
+ < div class ="small ">
603
773
© 2025
604
- < span style ="color: #007bff; font-weight: 600 "> GrowCraft</ span > . All
774
+ < span style ="font-weight: 600 "> GrowCraft</ span > . All
605
775
rights reserved.
606
776
</ div >
607
777
< div >
@@ -626,5 +796,27 @@ <h5 class="fw-bold mb-3 footer-underline">Get In Touch</h5>
626
796
</ script >
627
797
< script src ="script.js "> </ script >
628
798
< script src ="/src/darkMode.js "> </ script >
799
+ < script >
800
+ const toggleBtn = document . getElementById ( 'themeToggleBtn' ) ;
801
+ const body = document . body ;
802
+
803
+ // Apply saved theme on page load
804
+ if ( localStorage . getItem ( 'theme' ) === 'dark' ) {
805
+ body . classList . add ( 'dark-mode' ) ;
806
+ }
807
+
808
+ toggleBtn . addEventListener ( 'click' , ( ) => {
809
+ body . classList . toggle ( 'dark-mode' ) ;
810
+
811
+ if ( body . classList . contains ( 'dark-mode' ) ) {
812
+ localStorage . setItem ( 'theme' , 'dark' ) ;
813
+ toggleBtn . innerHTML = '<i class="fa-solid fa-sun"></i>' ;
814
+ } else {
815
+ localStorage . setItem ( 'theme' , 'light' ) ;
816
+ toggleBtn . innerHTML = '<i class="fa-solid fa-moon"></i>' ;
817
+ }
818
+ } ) ;
819
+
820
+ </ script >
629
821
</ body >
630
822
</ html >
0 commit comments