-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.ps1
More file actions
860 lines (788 loc) · 30.2 KB
/
Copy pathsetup.ps1
File metadata and controls
860 lines (788 loc) · 30.2 KB
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
$ErrorActionPreference = "Stop"
Write-Host "==> Preparando proyecto Bar Galdós..." -ForegroundColor Cyan
if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
throw "Node.js no está instalado o no está en el PATH."
}
if (-not (Get-Command npm -ErrorAction SilentlyContinue)) {
throw "npm no está instalado o no está en el PATH."
}
$folders = @(
"src",
"src\components",
"src\data",
"public",
"public\images"
)
foreach ($folder in $folders) {
if (-not (Test-Path $folder)) {
New-Item -ItemType Directory -Path $folder | Out-Null
}
}
if (-not (Test-Path "bar_galdos_assets_web")) {
throw "No se encontró la carpeta 'bar_galdos_assets_web' en la raíz del proyecto."
}
Write-Host "==> Copiando imágenes a public/images..." -ForegroundColor Yellow
Copy-Item "bar_galdos_assets_web\*" "public\images\" -Recurse -Force
# .gitignore
@'
node_modules/
dist/
.vite/
coverage/
.env
.env.*
!.env.example
.DS_Store
Thumbs.db
.idea/
.vscode/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
'@ | Set-Content -Path ".gitignore" -Encoding UTF8
# package.json
@'
{
"name": "bar-galdos-web",
"private": true,
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.20",
"postcss": "^8.4.49",
"tailwindcss": "^3.4.17",
"vite": "^5.4.10"
}
}
'@ | Set-Content -Path "package.json" -Encoding UTF8
# vite.config.js
@'
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()]
});
'@ | Set-Content -Path "vite.config.js" -Encoding UTF8
# postcss.config.js
@'
export default {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
};
'@ | Set-Content -Path "postcss.config.js" -Encoding UTF8
# tailwind.config.js
@'
/** @type {import("tailwindcss").Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}"
],
theme: {
extend: {}
},
plugins: []
};
'@ | Set-Content -Path "tailwind.config.js" -Encoding UTF8
# index.html
@'
<!doctype html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/images/logo-bar-galdos-640.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bar Galdós | Comida venezolana en Valladolid</title>
<meta
name="description"
content="Empanadas, tequeños, arepas, cachapas, bandejas y promociones de comida venezolana en Bar Galdós. Pide por WhatsApp y descubre nuestras novedades en Instagram y TikTok."
/>
</head>
<body class="bg-neutral-950">
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
'@ | Set-Content -Path "index.html" -Encoding UTF8
# src/main.jsx
@'
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";
import "./index.css";
ReactDOM.createRoot(document.getElementById("root")).render(
<React.StrictMode>
<App />
</React.StrictMode>
);
'@ | Set-Content -Path "src\main.jsx" -Encoding UTF8
# src/index.css
@'
@tailwind base;
@tailwind components;
@tailwind utilities;
html {
scroll-behavior: smooth;
}
body {
font-family: Inter, system-ui, sans-serif;
background: #0a0a0a;
color: white;
}
.hero-glow {
background:
radial-gradient(circle at top left, rgba(239, 68, 68, 0.22), transparent 35%),
radial-gradient(circle at bottom right, rgba(250, 204, 21, 0.18), transparent 35%);
}
.card-glow {
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.text-stroke-soft {
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.contact-panel-glow {
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
'@ | Set-Content -Path "src\index.css" -Encoding UTF8
# src/data/siteData.js
@'
export const siteData = {
brand: {
name: "Bar Galdós",
tagline: "Sabor venezolano casero en Valladolid",
logo: "/images/logo-bar-galdos-640.png",
instagram: "https://www.instagram.com/bar_galdos/",
tiktok: "https://www.tiktok.com/@bar.galds.bar.ven",
whatsapp: "https://wa.me/34624289541",
phone: "tel:+34624289541",
phoneText: "624 28 95 41"
},
contact: {
address: "C. Artesanía 6, 47005 Valladolid",
maps: "https://maps.google.com/?q=C.+Artesanía+6,+47005+Valladolid",
payment: "Solo efectivo",
embedMap: "https://www.google.com/maps?q=C.+Artesanía+6,+47005+Valladolid&output=embed"
},
hero: {
image: "/images/hero-bandeja-mixta-1600x900.jpg",
badge: "Comida venezolana · Delivery · Solo efectivo",
title: "Comida venezolana tradicional que despierta el antojo",
text: "Empanadas gigantes, arepas rellenas, tequeños, cachapas y bandejas para compartir con auténtico sabor venezolano. Comida casera, abundante y hecha para disfrutar de verdad en Valladolid.",
ctaPrimary: "Pedir por WhatsApp",
ctaSecondary: "Ver carta"
},
featuredProducts: [
{
title: "Empanadas venezolanas",
description: "Crujientes por fuera, potentes por dentro y con ese sabor casero que te transporta directo a Venezuela.",
image: "/images/featured-empanadas-rellenas-1200x1500.jpg"
},
{
title: "Antojos irresistibles",
description: "Salsas, rellenos y combinaciones que entran primero por los ojos y luego se quedan en la memoria.",
image: "/images/featured-papas-salchichas-1200x1500.jpg"
},
{
title: "Bandeja mixta",
description: "La mejor forma de probar varios clásicos venezolanos en una sola mesa y compartir una auténtica experiencia.",
image: "/images/featured-bandeja-mixta-1200x1500.jpg"
}
],
menuSections: [
{
title: "Empanadas",
items: [
"Queso",
"Pollo",
"Cazón",
"Carne mechada",
"Jamón y queso",
"Plátano con queso",
"Pabellón"
]
},
{
title: "Pasapalos y raciones",
items: [
"Tequeños",
"Mini empanaditas",
"Patacón",
"Tostón playero",
"Bandeja mixta",
"Arepitas"
]
},
{
title: "Arepas, pepitos y más",
items: [
"Reina pepiada",
"Carne mechada con queso",
"Pollo",
"Pepito de pollo",
"Pepito mixto",
"Cachapas"
]
},
{
title: "Hamburguesas y postres",
items: [
"Hamburguesa sencilla",
"Hamburguesa doble",
"Hamburguesa triple",
"Tarta tres leches",
"Tarta de chocolate"
]
}
],
galleryImages: [
"/images/local-bar-galdos-1600x900.jpg",
"/images/galeria-04-papas-salchichas-1200x1500.jpg",
"/images/galeria-03-mixta-mesa-1200x1500.jpg",
"/images/galeria-01-empanadas-verdes-1200x1500.jpg",
"/images/galeria-06-tostones-1200x1500.jpg",
"/images/galeria-05-bandeja-grande-1200x1500.jpg"
],
location: {
image: "/images/galeria-02-bandeja-vertical-1200x1500.jpg"
}
};
'@ | Set-Content -Path "src\data\siteData.js" -Encoding UTF8
# src/components/Header.jsx
@'
export default function Header({ brand }) {
return (
<header className="sticky top-0 z-40 border-b border-white/10 bg-neutral-950/90 backdrop-blur">
<div className="mx-auto flex max-w-7xl items-center justify-between px-4 py-3 sm:px-6 lg:px-8">
<a href="#inicio" className="flex items-center gap-3">
<img
src={brand.logo}
alt={`Logo ${brand.name}`}
className="h-12 w-12 rounded-full border-2 border-yellow-300 object-cover shadow-lg shadow-yellow-500/20"
/>
<div>
<p className="text-lg font-black uppercase tracking-wide text-yellow-300">
{brand.name}
</p>
<p className="text-xs uppercase tracking-[0.25em] text-white/60">
Sabor venezolano
</p>
</div>
</a>
<nav className="hidden items-center gap-6 md:flex">
<a href="#carta" className="text-sm font-semibold text-white/80 transition hover:text-yellow-300">Carta</a>
<a href="#galeria" className="text-sm font-semibold text-white/80 transition hover:text-yellow-300">Galería</a>
<a href="#promos" className="text-sm font-semibold text-white/80 transition hover:text-yellow-300">Promociones</a>
<a href="#ubicacion" className="text-sm font-semibold text-white/80 transition hover:text-yellow-300">Ubicación</a>
</nav>
<a
href={brand.whatsapp}
className="rounded-full bg-yellow-300 px-4 py-2 text-sm font-black uppercase tracking-wide text-neutral-950 transition hover:scale-105"
>
Pedir ahora
</a>
</div>
</header>
);
}
'@ | Set-Content -Path "src\components\Header.jsx" -Encoding UTF8
# src/components/Hero.jsx
@'
export default function Hero({ brand, hero, contact }) {
return (
<section id="inicio" className="relative overflow-hidden hero-glow">
<div className="absolute inset-0 bg-gradient-to-br from-red-700/30 via-transparent to-yellow-400/20" />
<div className="mx-auto grid max-w-7xl gap-10 px-4 py-14 sm:px-6 lg:grid-cols-[1.05fr_0.95fr] lg:px-8 lg:py-20">
<div className="relative z-10 flex flex-col justify-center">
<div className="mb-6 inline-flex w-fit items-center rounded-full border border-yellow-300/40 bg-yellow-300/10 px-4 py-2 text-xs font-bold uppercase tracking-[0.25em] text-yellow-300">
{hero.badge}
</div>
<h1 className="max-w-4xl text-4xl font-black uppercase leading-none text-stroke-soft sm:text-6xl lg:text-7xl">
{hero.title}
</h1>
<p className="mt-6 max-w-2xl text-base text-white/75 sm:text-lg">
{hero.text}
</p>
<div className="mt-8 flex flex-col gap-3 sm:flex-row">
<a
href={brand.whatsapp}
className="rounded-2xl bg-yellow-300 px-6 py-4 text-center text-sm font-black uppercase tracking-wide text-neutral-950 transition hover:-translate-y-0.5"
>
{hero.ctaPrimary}
</a>
<a
href="#carta"
className="rounded-2xl border border-white/15 bg-white/5 px-6 py-4 text-center text-sm font-black uppercase tracking-wide text-white transition hover:border-yellow-300 hover:text-yellow-300"
>
{hero.ctaSecondary}
</a>
</div>
<div className="mt-8 grid gap-4 sm:grid-cols-3">
<div className="rounded-3xl border border-white/10 bg-white/5 p-4">
<p className="text-2xl font-black text-yellow-300">Tradición</p>
<p className="text-sm text-white/70">Recetas venezolanas que despiertan el antojo</p>
</div>
<div className="rounded-3xl border border-white/10 bg-white/5 p-4">
<p className="text-2xl font-black text-yellow-300">WhatsApp</p>
<p className="text-sm text-white/70">Pedido rápido, directo y sin complicaciones</p>
</div>
<div className="rounded-3xl border border-white/10 bg-white/5 p-4">
<p className="text-2xl font-black text-yellow-300">Valladolid</p>
<p className="text-sm text-white/70">{contact.address}</p>
</div>
</div>
</div>
<div className="relative z-10">
<div className="relative overflow-hidden rounded-[2rem] border border-yellow-300/20 bg-neutral-900 shadow-2xl shadow-red-900/30">
<img
src={hero.image}
alt="Bandeja mixta de Bar Galdós"
className="h-full min-h-[420px] w-full object-cover"
/>
<div className="absolute inset-x-0 bottom-0 bg-gradient-to-t from-neutral-950 via-neutral-950/70 to-transparent p-6">
<p className="mb-2 text-xs font-black uppercase tracking-[0.3em] text-yellow-300">
Sabor casero venezolano
</p>
<p className="text-3xl font-black uppercase leading-none">
Empanadas, arepas y bandejas para compartir y repetir
</p>
</div>
</div>
</div>
</div>
</section>
);
}
'@ | Set-Content -Path "src\components\Hero.jsx" -Encoding UTF8
# src/components/FeaturedProducts.jsx
@'
export default function FeaturedProducts({ items }) {
return (
<section className="mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8">
<div className="mb-8 flex items-end justify-between gap-6">
<div>
<p className="text-sm font-black uppercase tracking-[0.25em] text-yellow-300">
Sabores que enganchan
</p>
<h2 className="mt-2 text-3xl font-black uppercase sm:text-5xl">
Tradición venezolana servida con hambre de volver
</h2>
</div>
</div>
<div className="grid gap-6 md:grid-cols-3">
{items.map((item) => (
<article
key={item.title}
className="group overflow-hidden rounded-[2rem] border border-white/10 bg-white/5 card-glow"
>
<div className="overflow-hidden">
<img
src={item.image}
alt={item.title}
className="h-72 w-full object-cover transition duration-500 group-hover:scale-110"
/>
</div>
<div className="p-6">
<h3 className="text-2xl font-black uppercase">{item.title}</h3>
<p className="mt-3 text-sm leading-6 text-white/70">{item.description}</p>
</div>
</article>
))}
</div>
</section>
);
}
'@ | Set-Content -Path "src\components\FeaturedProducts.jsx" -Encoding UTF8
# src/components/MenuSection.jsx
@'
export default function MenuSection({ sections }) {
return (
<section id="carta" className="bg-neutral-900/70 py-16">
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div className="max-w-3xl">
<p className="text-sm font-black uppercase tracking-[0.25em] text-yellow-300">
Carta
</p>
<h2 className="mt-2 text-3xl font-black uppercase sm:text-5xl">
Lo mejor de la cocina venezolana en cada bocado
</h2>
<p className="mt-4 text-white/70">
Empanadas, tequeños, arepas, cachapas, pepitos, hamburguesas y postres para disfrutar de una comida con auténtico sabor venezolano, abundante y hecha para compartir.
</p>
</div>
<div className="mt-10 grid gap-6 md:grid-cols-2 xl:grid-cols-4">
{sections.map((section) => (
<div
key={section.title}
className="rounded-[2rem] border border-white/10 bg-neutral-950 p-6 shadow-xl shadow-black/20"
>
<h3 className="border-b border-yellow-300/30 pb-4 text-xl font-black uppercase text-yellow-300">
{section.title}
</h3>
<ul className="mt-5 space-y-3 text-sm text-white/80">
{section.items.map((item) => (
<li key={item} className="flex items-start gap-3">
<span className="mt-1 inline-block h-2.5 w-2.5 rounded-full bg-red-500" />
<span>{item}</span>
</li>
))}
</ul>
</div>
))}
</div>
</div>
</section>
);
}
'@ | Set-Content -Path "src\components\MenuSection.jsx" -Encoding UTF8
# src/components/PromosSection.jsx
@'
export default function PromosSection({ instagram, tiktok, whatsapp }) {
return (
<section id="promos" className="mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8">
<div className="grid gap-8 lg:grid-cols-[1fr_0.95fr] lg:items-center">
<div>
<p className="text-sm font-black uppercase tracking-[0.25em] text-yellow-300">
Promociones y novedades
</p>
<h2 className="mt-2 text-3xl font-black uppercase sm:text-5xl">
Síguenos para ver ofertas, platos y antojitos del momento
</h2>
<p className="mt-5 max-w-2xl text-white/70">
Las promociones exclusivas, novedades, vídeos de comida y ofertas especiales se publican en nuestras redes. Entra en Instagram o TikTok y descubre lo último antes de hacer tu pedido.
</p>
<div className="mt-8 flex flex-col gap-3 sm:flex-row sm:flex-wrap">
<a
href={instagram}
className="rounded-2xl bg-red-600 px-6 py-4 text-center text-sm font-black uppercase tracking-wide text-white transition hover:-translate-y-0.5 hover:bg-red-500"
target="_blank"
rel="noreferrer"
>
Ver promociones en Instagram
</a>
<a
href={tiktok}
className="rounded-2xl bg-white px-6 py-4 text-center text-sm font-black uppercase tracking-wide text-neutral-950 transition hover:-translate-y-0.5"
target="_blank"
rel="noreferrer"
>
Ver vídeos en TikTok
</a>
<a
href={whatsapp}
className="rounded-2xl border border-white/15 bg-white/5 px-6 py-4 text-center text-sm font-black uppercase tracking-wide text-white transition hover:border-yellow-300 hover:text-yellow-300"
>
Pedir por WhatsApp
</a>
</div>
</div>
<div className="rounded-[2rem] border border-white/10 bg-gradient-to-br from-yellow-400 via-orange-500 to-red-600 p-1">
<div className="rounded-[1.7rem] bg-neutral-950 p-8">
<div className="rounded-[2rem] border border-white/10 bg-white/5 p-6">
<p className="text-xs font-black uppercase tracking-[0.3em] text-yellow-300">
Redes activas
</p>
<h3 className="mt-3 text-3xl font-black uppercase leading-none">
Instagram para promociones, TikTok para abrir el apetito
</h3>
<p className="mt-4 text-sm text-white/70">
Mira nuestras publicaciones, descubre los platos más llamativos y contacta en segundos para pedir.
</p>
</div>
</div>
</div>
</div>
</section>
);
}
'@ | Set-Content -Path "src\components\PromosSection.jsx" -Encoding UTF8
# src/components/Gallery.jsx
@'
export default function Gallery({ images }) {
return (
<section id="galeria" className="bg-neutral-900/60 py-16">
<div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
<div className="max-w-3xl">
<p className="text-sm font-black uppercase tracking-[0.25em] text-yellow-300">
Galería
</p>
<h2 className="mt-2 text-3xl font-black uppercase sm:text-5xl">
Fotos de producto con estilo Instagram
</h2>
</div>
<div className="mt-10 grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
{images.map((image, index) => (
<div
key={`${image}-${index}`}
className="overflow-hidden rounded-[1.8rem] border border-white/10 bg-white/5"
>
<img
src={image}
alt={`Comida Bar Galdós ${index + 1}`}
className="h-80 w-full object-cover transition duration-500 hover:scale-110"
/>
</div>
))}
</div>
</div>
</section>
);
}
'@ | Set-Content -Path "src\components\Gallery.jsx" -Encoding UTF8
# src/components/LocationSection.jsx
@'
export default function LocationSection({ location, contact, brand }) {
return (
<section id="ubicacion" className="mx-auto max-w-7xl px-4 py-16 sm:px-6 lg:px-8">
<div className="grid gap-10 lg:grid-cols-[1fr_1.05fr] lg:items-start">
<div className="grid gap-5">
<div className="overflow-hidden rounded-[2rem] border border-white/10 bg-white/5">
<iframe
src={contact.embedMap}
title="Mapa Bar Galdós"
className="h-[320px] w-full"
loading="lazy"
referrerPolicy="no-referrer-when-downgrade"
/>
</div>
<div className="overflow-hidden rounded-[2rem] border border-white/10 bg-white/5">
<img
src={location.image}
alt="Local Bar Galdós"
className="h-[280px] w-full object-cover"
/>
</div>
</div>
<div>
<p className="text-sm font-black uppercase tracking-[0.25em] text-yellow-300">
Ubicación y contacto
</p>
<h2 className="mt-2 text-3xl font-black uppercase sm:text-5xl">
Ven, pide o escríbenos ahora
</h2>
<div className="mt-8 space-y-5 text-white/75">
<div className="rounded-[1.6rem] border border-white/10 bg-white/5 p-5">
<p className="text-xs font-black uppercase tracking-[0.25em] text-yellow-300">Dirección</p>
<p className="mt-2 text-lg font-bold text-white">{contact.address}</p>
</div>
<div className="rounded-[1.6rem] border border-white/10 bg-white/5 p-5">
<p className="text-xs font-black uppercase tracking-[0.25em] text-yellow-300">Pedidos y contacto</p>
<p className="mt-2 text-lg font-bold text-white">{brand.phoneText} · Solo WhatsApp</p>
</div>
<div className="rounded-[1.6rem] border border-white/10 bg-white/5 p-5">
<p className="text-xs font-black uppercase tracking-[0.25em] text-yellow-300">Importante</p>
<p className="mt-2 text-lg font-bold text-white">{contact.payment}</p>
</div>
</div>
<div className="mt-8 flex flex-col gap-3 sm:flex-row">
<a
href={contact.maps}
className="rounded-2xl bg-yellow-300 px-6 py-4 text-center text-sm font-black uppercase tracking-wide text-neutral-950 transition hover:-translate-y-0.5"
target="_blank"
rel="noreferrer"
>
Cómo llegar
</a>
<a
href={brand.phone}
className="rounded-2xl border border-white/15 bg-white/5 px-6 py-4 text-center text-sm font-black uppercase tracking-wide text-white transition hover:border-yellow-300 hover:text-yellow-300"
>
Llamar ahora
</a>
</div>
</div>
</div>
</section>
);
}
'@ | Set-Content -Path "src\components\LocationSection.jsx" -Encoding UTF8
# src/components/Footer.jsx
@'
export default function Footer({ brand }) {
return (
<footer className="border-t border-white/10 bg-neutral-950">
<div className="mx-auto flex max-w-7xl flex-col gap-4 px-4 py-8 text-sm text-white/55 sm:px-6 lg:flex-row lg:items-center lg:justify-between lg:px-8">
<p>© {new Date().getFullYear()} {brand.name} · Comida venezolana en Valladolid</p>
<div className="flex flex-wrap gap-4">
<a href={brand.whatsapp} className="transition hover:text-yellow-300">WhatsApp</a>
<a href={brand.phone} className="transition hover:text-yellow-300">Llamar</a>
<a href={brand.instagram} className="transition hover:text-yellow-300" target="_blank" rel="noreferrer">
Instagram
</a>
<a href={brand.tiktok} className="transition hover:text-yellow-300" target="_blank" rel="noreferrer">
TikTok
</a>
</div>
</div>
</footer>
);
}
'@ | Set-Content -Path "src\components\Footer.jsx" -Encoding UTF8
# src/components/FloatingContact.jsx
@'
import { useState } from "react";
const PhoneIcon = () => (
<svg viewBox="0 0 24 24" fill="none" className="h-5 w-5" aria-hidden="true">
<path d="M22 16.92v3a2 2 0 0 1-2.18 2A19.8 19.8 0 0 1 3.1 5.18 2 2 0 0 1 5.08 3h3a2 2 0 0 1 2 1.72c.12.89.33 1.76.63 2.59a2 2 0 0 1-.45 2.11L9.1 10.6a16 16 0 0 0 4.3 4.3l1.18-1.16a2 2 0 0 1 2.11-.45c.83.3 1.7.51 2.59.63A2 2 0 0 1 22 16.92Z" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
);
const WhatsAppIcon = () => (
<svg viewBox="0 0 24 24" fill="none" className="h-5 w-5" aria-hidden="true">
<path d="M20 12a8 8 0 0 1-11.76 7.05L4 20l.95-4.24A8 8 0 1 1 20 12Z" stroke="currentColor" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round"/>
<path d="M9 9.5c.2-.5.5-.5.7-.5h.6c.2 0 .5 0 .7.5l.5 1.2c.1.2.1.5 0 .7l-.4.6c-.1.2-.1.4 0 .6.4.7 1 1.3 1.7 1.7.2.1.4.1.6 0l.6-.4c.2-.1.5-.1.7 0l1.2.5c.5.2.5.5.5.7v.6c0 .2 0 .5-.5.7-.4.2-.9.3-1.3.3A6.9 6.9 0 0 1 8.4 10.8c0-.4.1-.9.3-1.3Z" stroke="currentColor" strokeWidth="1.4" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
);
const InstagramIcon = () => (
<svg viewBox="0 0 24 24" fill="none" className="h-5 w-5" aria-hidden="true">
<rect x="3" y="3" width="18" height="18" rx="5" stroke="currentColor" strokeWidth="1.8"/>
<circle cx="12" cy="12" r="4" stroke="currentColor" strokeWidth="1.8"/>
<circle cx="17.5" cy="6.5" r="1" fill="currentColor"/>
</svg>
);
const TikTokIcon = () => (
<svg viewBox="0 0 24 24" fill="none" className="h-5 w-5" aria-hidden="true">
<path d="M14 4c.6 1.6 1.9 3 4 3.5V10c-1.5 0-2.9-.4-4-1.2V15a5 5 0 1 1-5-5h.3v2.6H9a2.4 2.4 0 1 0 2.4 2.4V4H14Z" fill="currentColor"/>
</svg>
);
export default function FloatingContact({ brand }) {
const [open, setOpen] = useState(false);
const items = [
{
label: "Llamar",
href: brand.phone,
className: "bg-red-500 hover:bg-red-400",
icon: <PhoneIcon />
},
{
label: "WhatsApp",
href: brand.whatsapp,
className: "bg-emerald-500 hover:bg-emerald-400",
icon: <WhatsAppIcon />
},
{
label: "Instagram",
href: brand.instagram,
className: "bg-amber-500 hover:bg-amber-400",
icon: <InstagramIcon />,
external: true
},
{
label: "TikTok",
href: brand.tiktok,
className: "bg-white hover:bg-neutral-200 text-neutral-950",
icon: <TikTokIcon />,
external: true
}
];
return (
<div className="fixed bottom-5 right-5 z-50 flex flex-col items-end">
<div
className={`mb-3 flex flex-col items-end gap-3 transition-all duration-300 ${
open ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-3 opacity-0"
}`}
>
{items.map((item) => (
<a
key={item.label}
href={item.href}
target={item.external ? "_blank" : undefined}
rel={item.external ? "noreferrer" : undefined}
className={`${item.className} contact-panel-glow flex min-w-[190px] items-center justify-center gap-3 rounded-full px-6 py-4 text-center text-base font-black uppercase tracking-wide text-white transition hover:-translate-y-0.5`}
>
{item.icon}
<span className={item.label === "TikTok" ? "text-neutral-950" : ""}>{item.label}</span>
</a>
))}
</div>
<button
type="button"
onClick={() => setOpen(!open)}
className="contact-panel-glow flex min-h-[64px] items-center justify-center gap-3 rounded-full border border-yellow-300/30 bg-yellow-300 px-6 py-4 text-sm font-black uppercase tracking-wide text-neutral-950 transition hover:scale-105"
aria-label="Abrir opciones de contacto"
>
<span className="text-lg leading-none">{open ? "×" : "☰"}</span>
<span>{open ? "Cerrar" : "Contactar"}</span>
</button>
</div>
);
}
'@ | Set-Content -Path "src\components\FloatingContact.jsx" -Encoding UTF8
# src/App.jsx
@'
import Header from "./components/Header";
import Hero from "./components/Hero";
import FeaturedProducts from "./components/FeaturedProducts";
import MenuSection from "./components/MenuSection";
import PromosSection from "./components/PromosSection";
import Gallery from "./components/Gallery";
import LocationSection from "./components/LocationSection";
import Footer from "./components/Footer";
import FloatingContact from "./components/FloatingContact";
import { siteData } from "./data/siteData";
export default function App() {
const { brand, hero, contact, featuredProducts, menuSections, galleryImages, location } = siteData;
return (
<div className="min-h-screen bg-neutral-950 text-white selection:bg-yellow-300 selection:text-neutral-950">
<Header brand={brand} />
<main>
<Hero brand={brand} hero={hero} contact={contact} />
<section className="border-y border-white/10 bg-gradient-to-r from-red-700 to-yellow-500 py-4 text-neutral-950">
<div className="mx-auto flex max-w-7xl flex-col items-center justify-between gap-3 px-4 sm:px-6 md:flex-row lg:px-8">
<p className="text-center text-sm font-black uppercase tracking-[0.2em] md:text-left">
Solo efectivo · Pedido por WhatsApp · Promociones en Instagram y TikTok
</p>
<div className="flex flex-wrap gap-3">
<a
href={brand.instagram}
className="rounded-full bg-neutral-950 px-5 py-2 text-xs font-black uppercase tracking-[0.2em] text-white transition hover:scale-105"
target="_blank"
rel="noreferrer"
>
Instagram
</a>
<a
href={brand.tiktok}
className="rounded-full bg-neutral-950 px-5 py-2 text-xs font-black uppercase tracking-[0.2em] text-white transition hover:scale-105"
target="_blank"
rel="noreferrer"
>
TikTok
</a>
</div>
</div>
</section>
<FeaturedProducts items={featuredProducts} />
<MenuSection sections={menuSections} />
<PromosSection
instagram={brand.instagram}
tiktok={brand.tiktok}
whatsapp={brand.whatsapp}
/>
<Gallery images={galleryImages} />
<LocationSection location={location} contact={contact} brand={brand} />
</main>
<Footer brand={brand} />
<FloatingContact brand={brand} />
</div>
);
}
'@ | Set-Content -Path "src\App.jsx" -Encoding UTF8
Write-Host "==> Instalando dependencias..." -ForegroundColor Green
npm install
Write-Host ""
Write-Host "Proyecto montado correctamente." -ForegroundColor Green
Write-Host "Para arrancarlo usa:" -ForegroundColor Cyan
Write-Host "npm run dev" -ForegroundColor White