mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
added pagehero
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
import { NextPage } from "next";
|
import { NextPage } from "next";
|
||||||
|
import PageHero from "@components/PageHero";
|
||||||
|
|
||||||
export default function ArmoryPage() {
|
export default function ArmoryPage() {
|
||||||
return (
|
return (
|
||||||
<div className="p-4 pt-16 mx-auto max-w-screen-md">
|
<div>
|
||||||
|
<PageHero
|
||||||
|
title="The Armory"
|
||||||
|
/>
|
||||||
|
<div className="p-4 pt-16 mx-auto max-w-screen-md">
|
||||||
<h1 className="text-2xl font-bold mb-4 text-gray-600">AR-15 Builder</h1>
|
<h1 className="text-2xl font-bold mb-4 text-gray-600">AR-15 Builder</h1>
|
||||||
<p className="text-gray-600 mb-6">
|
<p className="text-gray-600 mb-6">
|
||||||
Select components to build your custom AR-15.
|
Select components to build your custom AR-15.
|
||||||
@@ -51,5 +56,6 @@ export default function ArmoryPage() {
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1,57 @@
|
|||||||
|
import PageHero from "@components/PageHero";
|
||||||
|
|
||||||
export default function ProductsPage() {
|
export default function ProductsPage() {
|
||||||
return (
|
return (
|
||||||
<div className="container mx-auto p-4">
|
<div>
|
||||||
<h1 className="text-2xl font-bold mb-4 text-gray-900">Products</h1>
|
<PageHero
|
||||||
<div className="grid gap-4">
|
title="Builder"
|
||||||
<div className="p-4 border rounded shadow text-gray-900">
|
/>
|
||||||
<h2 className="font-semibold ">Sample Lower Receiver</h2>
|
<div className="container mx-auto p-4">
|
||||||
<p>Price: $199.99</p>
|
<div className="bg-white rounded-lg shadow-md p-6 overflow-x-auto text-gray-600">
|
||||||
<button className="mt-2 px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600">
|
<table className="min-w-full table-auto">
|
||||||
Buy Now
|
<thead>
|
||||||
</button>
|
<tr className="bg-gray-50 border-b">
|
||||||
</div>
|
<th className="px-4 py-2 text-left">Component</th>
|
||||||
</div>
|
<th className="px-4 py-2 text-left">Selection</th>
|
||||||
|
<th className="px-4 py-2 text-left">Caliber</th>
|
||||||
|
<th className="px-4 py-2 text-left">Price</th>
|
||||||
|
<th className="px-4 py-2 text-left">Shipping</th>
|
||||||
|
<th className="px-4 py-2 text-left">Where</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{[
|
||||||
|
"Lower Receiver",
|
||||||
|
"Upper Receiver",
|
||||||
|
"Barrel",
|
||||||
|
"Handguard",
|
||||||
|
"Bolt Carrier Group",
|
||||||
|
"Charging Handle",
|
||||||
|
"Buffer Tube",
|
||||||
|
"Stock",
|
||||||
|
"Grip",
|
||||||
|
"Trigger",
|
||||||
|
"Magazine"
|
||||||
|
].map((component) => (
|
||||||
|
<tr key={component} className="border-b hover:bg-gray-50">
|
||||||
|
<td className="px-4 py-2">{component}</td>
|
||||||
|
<td className="px-4 py-2">
|
||||||
|
<button className="px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600">
|
||||||
|
Choose a Part
|
||||||
|
</button>
|
||||||
|
</td>
|
||||||
|
<td className="px-4 py-2">-</td>
|
||||||
|
<td className="px-4 py-2">-</td>
|
||||||
|
<td className="px-4 py-2">-</td>
|
||||||
|
<td className="px-4 py-2">-</td>
|
||||||
|
</tr>
|
||||||
|
))}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,6 @@ const navigation = [
|
|||||||
{ name: "Armory", href: "/Armory", current: false },
|
{ name: "Armory", href: "/Armory", current: false },
|
||||||
{ name: "Products", href: "/Products", current: false },
|
{ name: "Products", href: "/Products", current: false },
|
||||||
{ name: "Db Data", href: "/Products/lowers", current: false },
|
{ name: "Db Data", href: "/Products/lowers", current: false },
|
||||||
{ name: "Completed Builds", href: "#", current: false },
|
|
||||||
{ name: "Brands", href: "/Brands", current: false },
|
{ name: "Brands", href: "/Brands", current: false },
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
13
src/components/PageHero/index.tsx
Normal file
13
src/components/PageHero/index.tsx
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import React from 'react';
|
||||||
|
|
||||||
|
interface PageHeroProps {
|
||||||
|
title: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function PageHero({ title }: PageHeroProps) {
|
||||||
|
return (
|
||||||
|
<div className="mb-6 bg-slate-700 text-center py-10">
|
||||||
|
<h1 className="text-2xl uppercase font-bold">{title}</h1>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -41,7 +41,7 @@ const navigation = {
|
|||||||
id: 'lower-parts',
|
id: 'lower-parts',
|
||||||
name: 'Lower Parts',
|
name: 'Lower Parts',
|
||||||
items: [
|
items: [
|
||||||
{ name: 'Lower Receivers', href: '#' },
|
{ name: 'Lower Receivers', href: '/Products/lowers' },
|
||||||
{ name: 'Grips', href: '#' },
|
{ name: 'Grips', href: '#' },
|
||||||
{ name: 'Stocks', href: '#' },
|
{ name: 'Stocks', href: '#' },
|
||||||
{ name: 'Triggers', href: '#' },
|
{ name: 'Triggers', href: '#' },
|
||||||
|
|||||||
Reference in New Issue
Block a user