Initial commit

This commit is contained in:
olivermrbl
2023-05-01 14:46:17 +02:00
parent 86dca04eec
commit 0f4f5a79df
7 changed files with 68 additions and 304 deletions

View File

@@ -41,13 +41,13 @@ export async function ThreeItemGrid() {
if (!homepageItems[0] || !homepageItems[1] || !homepageItems[2]) return null;
const [firstProduct, secondProduct, thirdProduct] = homepageItems;
// const [firstProduct, secondProduct, thirdProduct] = homepageItems;
return (
<section className="lg:grid lg:grid-cols-6 lg:grid-rows-2" data-testid="homepage-products">
<ThreeItemGridItem size="full" item={firstProduct} background="purple" />
{/* <ThreeItemGridItem size="full" item={firstProduct} background="purple" />
<ThreeItemGridItem size="half" item={secondProduct} background="black" />
<ThreeItemGridItem size="half" item={thirdProduct} background="pink" />
<ThreeItemGridItem size="half" item={thirdProduct} background="pink" /> */}
</section>
);
}

View File

@@ -3,7 +3,6 @@ import Link from 'next/link';
import GitHubIcon from 'components/icons/github';
import LogoIcon from 'components/icons/logo';
import VercelIcon from 'components/icons/vercel';
import { getMenu } from 'lib/shopify';
import { Menu } from 'lib/shopify/types';
const { SITE_NAME } = process.env;
@@ -11,7 +10,8 @@ const { SITE_NAME } = process.env;
export default async function Footer() {
const currentYear = new Date().getFullYear();
const copyrightDate = 2023 + (currentYear > 2023 ? `-${currentYear}` : '');
const menu = await getMenu('next-js-frontend-footer-menu');
// const menu = await getMenu('next-js-frontend-footer-menu');
const menu: any[] = [];
return (
<footer className="border-t border-gray-700 bg-white text-black dark:bg-black dark:text-white">

View File

@@ -4,13 +4,13 @@ import { Suspense } from 'react';
import Cart from 'components/cart';
import CartIcon from 'components/icons/cart';
import LogoIcon from 'components/icons/logo';
import { getMenu } from 'lib/shopify';
import { Menu } from 'lib/shopify/types';
import MobileMenu from './mobile-menu';
import Search from './search';
export default async function Navbar() {
const menu = await getMenu('next-js-frontend-header-menu');
const menu: any[] = [];
// const menu = await getMenu('next-js-frontend-header-menu');
return (
<nav className="relative flex items-center justify-between bg-white p-4 dark:bg-black lg:px-6">