-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpromt-2.txt
1617 lines (1335 loc) · 35.6 KB
/
promt-2.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Hello my product detail page has all components, content and text and I can open that page from the header Projects button very well.
But when page opens everything inside but no style (I uploaded image that messy look of my page.). It is a mess.
Can you place them around the webpage well?
Heres my #ProductDetail.css, #ProductDetail.js, #App.js and #App.css let me know if you need any additional info.
Give whole update code to me for all the files. (send entire code)
#ProductDetail.css
```
/* ProductDetail.css */
/* ... existing styles ... */
/* Product Detail Gallery */
.product-detail-gallery {
width: 100%;
max-width: 1200px;
margin: auto;
}
/* Product Detail Info */
.product-detail-info {
width: 100%;
max-width: 1200px;
margin: auto;
}
/* ... other styles ... */
/* Update this to remove the square brackets */
.max-w-1200px {
max-width: 1200px;
}
/* Fix color classes */
.bg-gray {
background-color: #6b7280; /* Adjust the shade of gray as needed */
}
.bg-violet {
background-color: #8b5cf6; /* Adjust the shade of violet as needed */
}
.bg-red {
background-color: #ef4444; /* Adjust the shade of red as needed */
}
/* Update button classes */
.plusMinusButton {
display: flex;
height: 32px;
width: 32px;
cursor: pointer;
align-items: center;
justify-content: center;
border: 1px solid #d1d5db;
transition: background-color 0.1s ease-in-out;
}
.plusMinusButton:hover {
background-color: #f3f4f6;
}
.plusMinusButton:focus,
.plusMinusButton:active {
outline: 2px solid #6b7280;
}
/* ... additional styles ... */
/* Ensure you include the styles provided previously for the dropdown, gallery, etc. */
/* Reset some default styling */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body, html {
height: 100%;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
background-color: #f7f7f7;
color: #333;
}
/* Styling for the header navigation */
header {
display: relative;
align-items: center;
justify-content: space-between; /* This will push the nav to the end of the header */
padding: 0 20px; /* Add padding on the sides of the header */
background-color: #20232a;
color: #61dafb;
padding: 1rem 0;
}
nav ul {
display: flex;
justify-content: center;
align-items: center; /* This will center the nav items vertically */
list-style-type: none;
padding: 0;
margin: 0; /* This removes the default margin */
}
nav ul li {
padding: 0.5rem 1rem;
}
nav a {
color: #61dafb;
text-decoration: none;
transition: color 0.2s;
}
nav a:hover {
color: #ffffff;
}
/* Main content styling */
.content {
max-width: 1200px;
margin: 2rem auto;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 2rem;
}
/* Home slider styling */
.home-slider {
position: relative;
margin: 1rem 0;
}
.home-slider img {
max-width: 100%;
border-radius: 0.5rem;
margin-left: auto;
margin-right: auto;
}
/* Cards styling for product info */
.info-boxes {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
}
.card {
background-color: #ffffff;
border-radius: 0.5rem;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
width: calc(33.333% - 1rem);
margin-bottom: 2rem;
}
.card:hover {
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.card-body {
padding: 1rem;
}
.card-title {
margin-bottom: 0.5rem;
color: #20232a;
font-size: 1.25rem;
}
.card-text {
color: #666;
font-size: 1rem;
}
/* Footer styling */
.footer {
background-color: #20232a;
color: #61dafb;
text-align: center;
padding: 1rem 0;
position: relative;
bottom: 0;
width: 100%;
}
.footer p {
margin: 0;
}
/* Responsive adjustments */
@media (max-width: 992px) {
.info-boxes {
flex-direction: column;
align-items: center;
}
.card {
width: 80%;
}
}
@media (max-width: 768px) {
.home-slider, .footer, .info-box {
width: 90%;
}
nav ul {
flex-direction: column;
align-items: center;
}
nav a {
margin-bottom: 5px;
}
}
/* Reset list styles for dropdown and set layout */
.dropdown {
display: none; /* Hide by default, will be shown on hover */
position: absolute; /* Positioning relative to the parent item */
background-color: #f9f9f9; /* Light background for the dropdown */
min-width: 160px; /* Minimum width of the dropdown */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Shadow for 3D effect */
z-index: 1; /* Ensure it's above other items */
}
/* Style for dropdown items */
.dropdown li {
display: block; /* Dropdown items should stack vertically */
color: black;
padding: 12px 16px; /* Padding for spacing */
text-decoration: none; /* No underline */
background-color: white; /* Background for dropdown items */
border-bottom: 1px solid #ddd; /* Separator between items */
}
/* Hover state for dropdown items */
.dropdown li:hover {
background-color: #ddd; /* Light grey background on hover */
}
/* Ensuring the dropdown is shown when parent li is hovered */
nav ul li:hover .dropdown {
display: block; /* Show the dropdown */
}
/* CSS for Block Image Galleries */
.block-gallery {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.block-gallery-item {
width: calc(50% - 20px); /* Adjust width as needed */
margin-bottom: 20px;
}
.block-gallery-item img {
width: 100%;
height: auto;
border-radius: 8px;
}
.block-gallery-item p {
text-align: center;
}
/* In your App.css or a separate CSS file */
.logo-container {
display: flex;
align-items: center; /* This will center the logo vertically */
margin-right: 20px; /* This will give some space between the logo and the nav */
}
.header-logo {
height: auto;
width: auto; /* Adjust width as necessary, or remove if using height for size */
max-height: 60px; /* Adjust this value to fit your header's height */
margin: 0 15px; /* This will give some space around the logo */
margin-left: 600px;
}
/* Assuming the root and button have already been set up correctly */
/* Additional CSS rules for styling your React components */
button {
border: 1px solid black;
border-radius: 0.75rem; /* roughly equivalent to rounded-xl in Tailwind */
padding: 1.25rem 1.25rem; /* px-5 py-1 in Tailwind, adjust as necessary */
}
/* Rater star active color */
.react-rater-star.is-active-half:before,
.react-rater-star.is-active {
color: #fde047 !important; /* --gold variable in your setup */
}
/* Tailwind utility classes converted to CSS */
.container {
width: 100%;
padding-right: var(--bs-gutter-x,.75rem);
padding-left: var(--bs-gutter-x,.75rem);
margin-right: auto;
margin-left: auto;
}
.mx-auto {
margin-right: auto;
margin-left: auto;
}
/* Replace the Tailwind class with a valid CSS class */
.max-w-1200px {
max-width: 1200px;
}
.px-4 {
padding-left: 1rem; /* 16px */
padding-right: 1rem; /* 16px */
}
.py-5 {
padding-top: 1.25rem; /* 20px */
padding-bottom: 1.25rem; /* 20px */
}
.text-2xl {
font-size: 1.5rem; /* 24px */
line-height: 2rem; /* 32px */
}
.font-bold {
font-weight: 700;
}
.mt-1,
.mt-4,
.mt-5,
.mt-6,
.mt-7 {
margin-top: 0.25rem; /* Adjust as necessary for mt-1 */
/* For mt-4 use margin-top: 1rem; */
/* For mt-5 use margin-top: 1.25rem; */
/* For mt-6 use margin-top: 1.5rem; */
/* For mt-7 use margin-top: 1.75rem; */
}
.pt-3,
.pt-5 {
padding-top: 0.75rem; /* Adjust as necessary for pt-3 */
/* For pt-5 use padding-top: 1.25rem; */
}
.text-gray-400,
.text-gray-500 {
color: #9CA3AF; /* Adjust as necessary for different shades of gray */
}
.text-green-600 {
color: #10B981;
}
.text-red-600 {
color: #EF4444;
}
.text-violet-900 {
color: #5B21B6;
}
.text-xs {
font-size: 0.75rem; /* 12px */
line-height: 1rem; /* 16px */
}
.line-through {
text-decoration: line-through;
}
/* Custom classes specific to your component */
.plusMinuceButton {
display: flex;
height: 2rem; /* 32px */
width: 2rem; /* 32px */
cursor: pointer;
align-items: center;
justify-content: center;
border: 1px solid #d1d5db; /* border-gray-300 */
transition: background-color 0.1s ease-in-out;
/* Add focus and active states */
}
.plusMinuceButton:hover {
background-color: #f3f4f6; /* bg-neutral-100 */
}
.plusMinuceButton:focus,
.plusMinuceButton:active {
outline: 2px solid #6b7280; /* ring-gray-500 */
}
/* Hover and focus states can be translated to :hover and :focus pseudo-classes */
/* Standard CSS does not support arbitrary values so you would need to create a class for each color */
.bg-gray-600 {
background-color: #4B5563;
}
.focus-ring-gray-500 {
box-shadow: 0 0 0 2px #6B7280; /* Emulating Tailwind's focus ring */
}
.active-ring-gray-500 {
box-shadow: 0 0 0 2px #6B7280; /* Emulating Tailwind's active ring */
}
/* ProductDetail.css */
/* ... other styles ... */
.product-detail-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin: auto;
max-width: 1200px;
padding-bottom: 1rem;
}
.product-detail-gallery {
max-width: 600px; /* Adjust if needed */
margin: auto;
}
.product-detail-info {
max-width: 600px; /* Adjust if needed */
margin: auto;
}
/* ... additional styles ... */
/* Tailwind classes converted to standard CSS */
.bg-gray {
background-color: #6b7280;
}
.bg-violet {
background-color: #8b5cf6;
}
.bg-red {
background-color: #ef4444;
}
/* ... additional color classes ... */
.button {
border: 1px solid black;
border-radius: 0.75rem;
padding: 0.75rem 1rem;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem; /* Space between icon and text */
transition: background-color 0.1s ease-in-out;
cursor: pointer;
}
.button:hover {
background-color: #ececec; /* Light grey */
}
/* ... */
.react-rater-star.is-active-half:before,
.react-rater-star.is-active {
color: #fde047; /* Active star color */
}
/* ... */
.quantity-control {
display: flex;
align-items: center;
border: 1px solid #d1d5db;
}
.quantity-control button {
padding: 0.5rem;
}
.quantity-control input {
width: 3rem;
text-align: center;
border-top: 1px solid #d1d5db;
border-bottom: 1px solid #d1d5db;
}
/* Responsive design adjustments */
@media (max-width: 768px) {
.product-detail-container {
grid-template-columns: 1fr; /* Stack on smaller screens */
}
}
```
#ProductDetail.js
```
// src/components/ProductDetail.js
// ... Paste the entire ProductDetail component code here ...
import { AiOutlineHeart } from "react-icons/ai";
import { BiShoppingBag } from "react-icons/bi";
import ReactImageGallery from "react-image-gallery";
import Rater from "react-rater";
import "react-rater/lib/react-rater.css";
import "./App.css";
import './ProductDetail.css';
const ProductDetail = () => {
const productDetailItem = {
images: [
{
original:
"https://images.pexels.com/photos/90946/pexels-photo-90946.jpeg?auto=compress&cs=tinysrgb&w=600",
thumbnail:
"https://images.pexels.com/photos/90946/pexels-photo-90946.jpeg?auto=compress&cs=tinysrgb&w=600",
},
{
original:
"https://images.pexels.com/photos/1667088/pexels-photo-1667088.jpeg?auto=compress&cs=tinysrgb&w=600",
thumbnail:
"https://images.pexels.com/photos/1667088/pexels-photo-1667088.jpeg?auto=compress&cs=tinysrgb&w=600",
},
{
original:
"https://images.pexels.com/photos/2697787/pexels-photo-2697787.jpeg?auto=compress&cs=tinysrgb&w=600",
thumbnail:
"https://images.pexels.com/photos/2697787/pexels-photo-2697787.jpeg?auto=compress&cs=tinysrgb&w=600",
},
{
original:
"https://images.pexels.com/photos/3373736/pexels-photo-3373736.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1",
thumbnail:
"https://images.pexels.com/photos/3373736/pexels-photo-3373736.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1",
},
{
original:
"https://images.pexels.com/photos/3910071/pexels-photo-3910071.jpeg?auto=compress&cs=tinysrgb&w=600",
thumbnail:
"https://images.pexels.com/photos/3910071/pexels-photo-3910071.jpeg?auto=compress&cs=tinysrgb&w=600",
},
],
title: "BIG ITALIAN SOFA",
reviews: "150",
availability: true,
brand: "apex",
category: "Sofa",
sku: "BE45VGTRK",
price: 450,
previousPrice: 599,
description:
"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Quidem exercitationem voluptate sint eius ea assumenda provident eos repellendus qui neque! Velit ratione illo maiores voluptates commodi eaque illum, laudantium non!",
size: ["XS", "S", "M", "L", "XL"],
color: ["gray", "violet", "red"],
};
const plusMinuceButton =
"flex h-8 w-8 cursor-pointer items-center justify-center border duration-100 hover:bg-neutral-100 focus:ring-2 focus:ring-gray-500 active:ring-2 active:ring-gray-500";
return (
<section className="container flex-grow mx-auto max-w-[1200px] border-b py-5 lg:grid lg:grid-cols-2 lg:py-10">
{/* image gallery */}
<div className="container mx-auto px-4">
<ReactImageGallery
showBullets={false}
showFullscreenButton={false}
showPlayButton={false}
items={productDetailItem.images}
/>
{/* /image gallery */}
</div>
{/* description */}
<div className="mx-auto px-5 lg:px-5">
<h2 className="pt-3 text-2xl font-bold lg:pt-0">
{productDetailItem.title}
</h2>
<div className="mt-1">
<div className="flex items-center">
<Rater
style={{ fontSize: "20px" }}
total={5}
interactive={false}
rating={3.5}
/>
<p className="ml-3 text-sm text-gray-400">
({productDetailItem.reviews})
</p>
</div>
</div>
<p className="mt-5 font-bold">
Availability:{" "}
{productDetailItem.availability ? (
<span className="text-green-600">In Stock </span>
) : (
<span className="text-red-600">Expired</span>
)}
</p>
<p className="font-bold">
Brand: <span className="font-normal">{productDetailItem.brand}</span>
</p>
<p className="font-bold">
Cathegory:{" "}
<span className="font-normal">{productDetailItem.category}</span>
</p>
<p className="font-bold">
SKU: <span className="font-normal">{productDetailItem.sku}</span>
</p>
<p className="mt-4 text-4xl font-bold text-violet-900">
${productDetailItem.price}{" "}
<span className="text-xs text-gray-400 line-through">
${productDetailItem.previousPrice}
</span>
</p>
<p className="pt-5 text-sm leading-5 text-gray-500">
{productDetailItem.description}
</p>
<div className="mt-6">
<p className="pb-2 text-xs text-gray-500">Size</p>
<div className="flex gap-1">
{productDetailItem.size.map((x, index) => {
return (
<div
key={index}
className="flex h-8 w-8 cursor-pointer items-center justify-center border duration-100 hover:bg-neutral-100 focus:ring-2 focus:ring-gray-500 active:ring-2 active:ring-gray-500"
>
{x}
</div>
);
})}
</div>
</div>
<div className="mt-6">
<p className="pb-2 text-xs text-gray-500">Color</p>
<div className="flex gap-1">
{productDetailItem.color.map((x, index) => {
return (
<div
key={index}
className={`h-8 w-8 cursor-pointer border border-white bg-${x}-600 focus:ring-2 focus:ring-${x}-500 active:ring-2 active:ring-${x}-500`}
/>
);
})}
</div>
</div>
<div className="mt-6">
<p className="pb-2 text-xs text-gray-500">Quantity</p>
<div className="flex">
<button className={`${plusMinuceButton}`}>−</button>
<div className="flex h-8 w-8 cursor-text items-center justify-center border-t border-b active:ring-gray-500">
1
</div>
<button className={`${plusMinuceButton}`}> +</button>
</div>
</div>
<div className="mt-7 flex flex-row items-center gap-6">
<button className="flex h-12 w-1/3 items-center justify-center bg-violet-900 text-white duration-100 hover:bg-blue-800">
<BiShoppingBag className="mx-2" />
Add to cart
</button>
<button className="flex h-12 w-1/3 items-center justify-center bg-amber-400 duration-100 hover:bg-yellow-300">
<AiOutlineHeart className="mx-2" />
Wishlist
</button>
</div>
</div>
</section>
);
};
export default ProductDetail;
```
#App.js
```
// src/App.js
// Add this line at the top of your App.js file
import './App.css';
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import HomePage from './HomePage';
import AboutPage from './AboutPage';
import MyImageGallery from './MyImageGallery';
import ContactPage from './ContactPage';
import Header from './Header';
import "slick-carousel/slick/slick.css";
import "slick-carousel/slick/slick-theme.css";
import FactoryGallery from './FactoryGallery'; // Import FactoryGallery
import ProjectsGallery from './ProjectsGallery'; // Import ProjectsGallery
import ProductDetail from './ProductDetail'; // Import the ProductDetail component
import "./ProductDetail.css";
// ... other imports
const App = () => {
return (
<Router>
<Header />
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/about" element={<AboutPage />} />
<Route path="/projects/gallery" element={<ProjectsGallery />} />
<Route path="/gallery/:product" element={<MyImageGallery />} />
<Route path="/factory/gallery" element={<FactoryGallery />} /> // Use the imported FactoryGallery
<Route path="/projects/gallery" element={<ProjectsGallery />} /> // Use the imported ProjectsGallery
<Route path="/projects" element={<ProductDetail />} /> // Add this line
<Route path="/contact" element={<ContactPage />} />
{/* ... other routes */}
</Routes>
</Router>
);
};
export default App;
```
#App.css
```
/* Reset some default styling */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body, html {
height: 100%;
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
background-color: #f7f7f7;
color: #333;
}
/* Styling for the header navigation */
header {
display: relative;
align-items: center;
justify-content: space-between; /* This will push the nav to the end of the header */
padding: 0 20px; /* Add padding on the sides of the header */
background-color: #20232a;
color: #61dafb;
padding: 1rem 0;
}
nav ul {
display: flex;
justify-content: center;
align-items: center; /* This will center the nav items vertically */
list-style-type: none;
padding: 0;
margin: 0; /* This removes the default margin */
}
nav ul li {
padding: 0.5rem 1rem;
}
nav a {
color: #61dafb;
text-decoration: none;
transition: color 0.2s;
}
nav a:hover {
color: #ffffff;
}
/* Main content styling */
.content {
max-width: 1200px;
margin: 2rem auto;
padding: 1rem;
display: flex;
flex-direction: column;
gap: 2rem;
}
/* Home slider styling */
.home-slider {
position: relative;
margin: 1rem 0;
}
.home-slider img {
max-width: 100%;
border-radius: 0.5rem;
margin-left: auto;
margin-right: auto;
}
/* Cards styling for product info */
.info-boxes {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 1rem;
}
.card {
background-color: #ffffff;
border-radius: 0.5rem;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
width: calc(33.333% - 1rem);
margin-bottom: 2rem;
}
.card:hover {
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
.card-body {
padding: 1rem;
}
.card-title {
margin-bottom: 0.5rem;
color: #20232a;
font-size: 1.25rem;
}
.card-text {
color: #666;
font-size: 1rem;
}
/* Footer styling */
.footer {
background-color: #20232a;
color: #61dafb;
text-align: center;
padding: 1rem 0;
position: relative;
bottom: 0;
width: 100%;
}
.footer p {
margin: 0;
}
/* Responsive adjustments */
@media (max-width: 992px) {
.info-boxes {
flex-direction: column;
align-items: center;
}
.card {
width: 80%;
}
}
@media (max-width: 768px) {
.home-slider, .footer, .info-box {
width: 90%;
}
nav ul {
flex-direction: column;
align-items: center;
}
nav a {
margin-bottom: 5px;
}
}
/* Reset list styles for dropdown and set layout */
.dropdown {
display: none; /* Hide by default, will be shown on hover */
position: absolute; /* Positioning relative to the parent item */
background-color: #f9f9f9; /* Light background for the dropdown */
min-width: 160px; /* Minimum width of the dropdown */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Shadow for 3D effect */
z-index: 1; /* Ensure it's above other items */
}
/* Style for dropdown items */
.dropdown li {
display: block; /* Dropdown items should stack vertically */
color: black;
padding: 12px 16px; /* Padding for spacing */
text-decoration: none; /* No underline */
background-color: white; /* Background for dropdown items */
border-bottom: 1px solid #ddd; /* Separator between items */
}
/* Hover state for dropdown items */
.dropdown li:hover {
background-color: #ddd; /* Light grey background on hover */
}
/* Ensuring the dropdown is shown when parent li is hovered */
nav ul li:hover .dropdown {
display: block; /* Show the dropdown */
}
/* CSS for Block Image Galleries */
.block-gallery {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.block-gallery-item {
width: calc(50% - 20px); /* Adjust width as needed */
margin-bottom: 20px;
}
.block-gallery-item img {
width: 100%;
height: auto;
border-radius: 8px;
}
.block-gallery-item p {
text-align: center;
}
/* In your App.css or a separate CSS file */
.logo-container {
display: flex;
align-items: center; /* This will center the logo vertically */
margin-right: 20px; /* This will give some space between the logo and the nav */
}
.header-logo {
height: auto;
width: auto; /* Adjust width as necessary, or remove if using height for size */
max-height: 60px; /* Adjust this value to fit your header's height */
margin: 0 15px; /* This will give some space around the logo */
margin-left: 600px;
}
/* Assuming the root and button have already been set up correctly */
/* Additional CSS rules for styling your React components */
button {
border: 1px solid black;
border-radius: 0.75rem; /* roughly equivalent to rounded-xl in Tailwind */
padding: 1.25rem 1.25rem; /* px-5 py-1 in Tailwind, adjust as necessary */
}
/* Rater star active color */
.react-rater-star.is-active-half:before,
.react-rater-star.is-active {
color: #fde047 !important; /* --gold variable in your setup */
}
/* Tailwind utility classes converted to CSS */
.container {
width: 100%;
padding-right: var(--bs-gutter-x,.75rem);
padding-left: var(--bs-gutter-x,.75rem);
margin-right: auto;
margin-left: auto;
}
.mx-auto {