Skip to content

Commit

Permalink
Add shop page
Browse files Browse the repository at this point in the history
  • Loading branch information
FoggyMtnDrifter committed Mar 11, 2024
1 parent d05b9db commit ccfdd68
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions app/[locale]/contribute/shop/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
import React from "react";
import { useTranslations } from "next-intl";
import type { Metadata } from "next";
import Link from "next/link";
import Image from "next/image";

export const metadata: Metadata = {
title: "Shop - Rocky Linux",
description:
"Purchase official Rocky Linux merchandise! All vendors ship globally.",
};

const vendors = [
{
name: "Muckles' U!",
role: "Ships worldwide, based in US",
imageUrl: "/images/shop/muckles-u.png",
link: "https://www.mucklesu.com/collections/rocky-linux",
},
{
name: "HELLOTUX",
role: "Ships worldwide, based in EU",
imageUrl: "/images/shop/hellotux.png",
link: "https://www.hellotux.com/rocky-linux",
},
{
name: "FreeWear",
role: "Ships worldwide, based in EU",
imageUrl: "/images/shop/freewear.png",
link: "https://www.freewear.org/RockyLinux",
},
];

const ShopPage = () => {
const t = useTranslations("shop");

return (
<>
<div className="py-24 sm:py-32">
<div className="mx-auto max-w-7xl px-6 lg:px-8">
<div className="text-center">
<h2 className="text-3xl font-bold font-display tracking-tight sm:text-4xl">
{t("title")}
</h2>
<p className="mt-2 text-lg leading-8">{t("description")}</p>
</div>
</div>
</div>
<div className="border-t">
<div className="py-16 sm:py-24">
<div className="mx-auto max-w-7xl px-6 lg:px-8">
<ul
role="list"
className="mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-16 sm:grid-cols-2 lg:mx-0 lg:max-w-none lg:grid-cols-3"
>
{vendors.map((vendor) => (
<li key={vendor.name}>
<Link
href={vendor.link}
target="_blank"
>
<Image
className="w-full rounded-2xl object-fit"
src={vendor.imageUrl}
alt={vendor.name}
height={1000}
width={1000}
/>
<h3 className="mt-6 text-lg font-bold leading-8 tracking-tight font-display">
{vendor.name}
</h3>
<p className="text-base leading-7">{vendor.role}</p>
</Link>
</li>
))}
</ul>
</div>
</div>
</div>
</>
);
};

export default ShopPage;

0 comments on commit ccfdd68

Please sign in to comment.