Simplify order landing and switch Vite config to ESM
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import heroCup from "../../../assets/ranaze-bubble-tea-single-cup-transparent.png";
|
|
||||||
import milkTeaBadge from "../../../assets/milk-tea-badge.png";
|
import milkTeaBadge from "../../../assets/milk-tea-badge.png";
|
||||||
import fruitTeaBadge from "../../../assets/fruit-tea-badge-transparent.png";
|
import fruitTeaBadge from "../../../assets/fruit-tea-badge-transparent.png";
|
||||||
import slushBadge from "../../../assets/slush-badge.png";
|
import slushBadge from "../../../assets/slush-badge.png";
|
||||||
@@ -92,11 +91,6 @@ export default function OrderPage({
|
|||||||
<p>Start fast.</p>
|
<p>Start fast.</p>
|
||||||
<p>Customize if you want.</p>
|
<p>Customize if you want.</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="hero-cta-row">
|
|
||||||
<button className="primary-btn hero-primary-btn" onClick={() => setOrderMode("premade")}>
|
|
||||||
Start Order
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div className="hero-category-row">
|
<div className="hero-category-row">
|
||||||
{HERO_CATEGORIES.map((category) => (
|
{HERO_CATEGORIES.map((category) => (
|
||||||
<button
|
<button
|
||||||
@@ -113,40 +107,6 @@ export default function OrderPage({
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="mode-hero">
|
|
||||||
<div className="mode-hero-copy">
|
|
||||||
<p className="eyebrow">Freshly made for you</p>
|
|
||||||
<div className="hero-copy-list muted">
|
|
||||||
<p>Bubble tea.</p>
|
|
||||||
<p>Fruit tea.</p>
|
|
||||||
<p>Slushes.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<img src={heroCup} alt="Ranaze signature bubble tea" className="mode-hero-image" />
|
|
||||||
</div>
|
|
||||||
<div className="mode-grid">
|
|
||||||
<ModeCard
|
|
||||||
eyebrow="Fastest"
|
|
||||||
title="House Favorites"
|
|
||||||
lines={["Signature drinks.", "No extra steps."]}
|
|
||||||
cta="Choose favorites"
|
|
||||||
onClick={() => setOrderMode("premade")}
|
|
||||||
/>
|
|
||||||
<ModeCard
|
|
||||||
eyebrow="Easy"
|
|
||||||
title="Quick Customization"
|
|
||||||
lines={["Pick your drink.", "Adjust a few basics."]}
|
|
||||||
cta="Start customizing"
|
|
||||||
onClick={() => setOrderMode("simple")}
|
|
||||||
/>
|
|
||||||
<ModeCard
|
|
||||||
eyebrow="Flexible"
|
|
||||||
title="Build It Your Way"
|
|
||||||
lines={["Full control.", "Every detail matters."]}
|
|
||||||
cta="Build my drink"
|
|
||||||
onClick={() => setOrderMode("detailed")}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</section>
|
</section>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
@@ -419,18 +379,3 @@ function getModeDetails(orderMode, selectedDrink) {
|
|||||||
|
|
||||||
return modeDetails[orderMode];
|
return modeDetails[orderMode];
|
||||||
}
|
}
|
||||||
|
|
||||||
function ModeCard({ eyebrow, title, lines, cta, onClick }) {
|
|
||||||
return (
|
|
||||||
<button className="mode-card" onClick={onClick}>
|
|
||||||
<p className="eyebrow">{eyebrow}</p>
|
|
||||||
<h3>{title}</h3>
|
|
||||||
<div className="mode-card-list muted">
|
|
||||||
{lines.map((line) => (
|
|
||||||
<p key={line}>{line}</p>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
<span className="mode-card-cta">{cta}</span>
|
|
||||||
</button>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|||||||
+2
-2
@@ -3,9 +3,9 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev:client": "vite --config client/vite.config.js",
|
"dev:client": "vite --config client/vite.config.mjs",
|
||||||
"dev:server": "dotnet run --project server/RanazePos.Api.csproj",
|
"dev:server": "dotnet run --project server/RanazePos.Api.csproj",
|
||||||
"build:client": "vite build --config client/vite.config.js",
|
"build:client": "vite build --config client/vite.config.mjs",
|
||||||
"build:server": "dotnet build server/RanazePos.Api.csproj",
|
"build:server": "dotnet build server/RanazePos.Api.csproj",
|
||||||
"build": "npm run build:client && npm run build:server",
|
"build": "npm run build:client && npm run build:server",
|
||||||
"start": "dotnet run --project server/RanazePos.Api.csproj"
|
"start": "dotnet run --project server/RanazePos.Api.csproj"
|
||||||
|
|||||||
Reference in New Issue
Block a user