mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 07:56:59 +00:00
add favicon, baseline SEO meta & opengraph
This commit is contained in:
parent
4c8abdfe6f
commit
d80eeb3018
@ -9,9 +9,11 @@ import Namemark from 'public/assets/images/namemark.png';
|
|||||||
import { Suspense } from 'react';
|
import { Suspense } from 'react';
|
||||||
|
|
||||||
export const runtime = 'edge';
|
export const runtime = 'edge';
|
||||||
|
const { SITE_NAME } = process.env;
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
description: 'narai by suginomori brewery.',
|
title: SITE_NAME,
|
||||||
|
description: SITE_NAME,
|
||||||
openGraph: {
|
openGraph: {
|
||||||
type: 'website'
|
type: 'website'
|
||||||
}
|
}
|
||||||
@ -26,11 +28,7 @@ export default async function HomePage({ params: { lang } }: { params: { lang: L
|
|||||||
<LanguageControl lang={lang} />
|
<LanguageControl lang={lang} />
|
||||||
</div>
|
</div>
|
||||||
<div className="px-6 pb-12 pt-6 md:pb-48 md:pl-6 md:pt-12">
|
<div className="px-6 pb-12 pt-6 md:pb-48 md:pl-6 md:pt-12">
|
||||||
<Image
|
<Image src={Namemark} alt="suginomori brewery" className="max-w-[260px] md:max-w-[600px]" />
|
||||||
src={Namemark}
|
|
||||||
alt="narai by suginomori brewery"
|
|
||||||
className="max-w-[260px] md:max-w-[600px]"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<ThreeItemGrid lang={lang} />
|
<ThreeItemGrid lang={lang} />
|
||||||
<Suspense>
|
<Suspense>
|
||||||
|
BIN
app/favicon.ico
Normal file
BIN
app/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
11
app/icon.svg
Normal file
11
app/icon.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 59 KiB |
@ -24,13 +24,13 @@ function ThreeItemGridItem({ item, priority }: { item: Product; priority?: boole
|
|||||||
alt={item.title}
|
alt={item.title}
|
||||||
/>
|
/>
|
||||||
</Link>
|
</Link>
|
||||||
<div className="pt-4">
|
<div className="font-multingual max-w-sm pt-4">
|
||||||
<Label
|
<Label
|
||||||
title={item.title as string}
|
title={item.title as string}
|
||||||
amount={item.priceRange.maxVariantPrice.amount}
|
amount={item.priceRange.maxVariantPrice.amount}
|
||||||
currencyCode={item.priceRange.maxVariantPrice.currencyCode}
|
currencyCode={item.priceRange.maxVariantPrice.currencyCode}
|
||||||
/>
|
/>
|
||||||
<div className="line-clamp-4">{item?.description}</div>
|
<div className="line-clamp-4 pt-2">{item?.description}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@ -52,8 +52,8 @@ export async function ThreeItemGrid({ lang }: { lang: Locale }) {
|
|||||||
return (
|
return (
|
||||||
<section
|
<section
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'mx-auto grid max-w-screen-2xl gap-4 px-4 pb-4 md:grid-cols-6',
|
'mx-auto grid max-w-screen-2xl gap-6 px-4 pb-4 md:grid-cols-6',
|
||||||
'md:grid-rows-3'
|
'grid-rows-3 md:grid-rows-1'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ThreeItemGridItem item={firstProduct} priority={true} />
|
<ThreeItemGridItem item={firstProduct} priority={true} />
|
||||||
|
@ -45,7 +45,7 @@ export function MenuModal() {
|
|||||||
</Transition.Child>
|
</Transition.Child>
|
||||||
<Transition.Child as={Fragment}>
|
<Transition.Child as={Fragment}>
|
||||||
<div className="fixed right-5 top-6 z-40 px-2 py-1 md:top-11">
|
<div className="fixed right-5 top-6 z-40 px-2 py-1 md:top-11">
|
||||||
<div className="flex flex-row space-x-4">
|
<div className="flex flex-row space-x-6">
|
||||||
<LanguageControl lang={currentLanguage} />
|
<LanguageControl lang={currentLanguage} />
|
||||||
|
|
||||||
<button ref={closeButtonRef} onClick={close} className="">
|
<button ref={closeButtonRef} onClick={close} className="">
|
||||||
|
@ -20,8 +20,8 @@ export const LanguageControl = ({ lang }: { lang?: Locale }) => {
|
|||||||
<Link
|
<Link
|
||||||
href={redirectedPathName('ja')}
|
href={redirectedPathName('ja')}
|
||||||
className={clsx(
|
className={clsx(
|
||||||
lang === 'ja' ? 'opacity-100' : 'opacity-70',
|
lang === 'ja' ? 'opacity-100' : 'opacity-50 hover:opacity-70',
|
||||||
'transition-opacity duration-150 hover:opacity-50'
|
'transition-opacity duration-150'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
JP
|
JP
|
||||||
@ -32,8 +32,8 @@ export const LanguageControl = ({ lang }: { lang?: Locale }) => {
|
|||||||
<Link
|
<Link
|
||||||
href={redirectedPathName('en')}
|
href={redirectedPathName('en')}
|
||||||
className={clsx(
|
className={clsx(
|
||||||
lang === 'en' ? 'opacity-100' : 'opacity-70',
|
lang === 'en' ? 'opacity-100' : 'opacity-50 hover:opacity-70',
|
||||||
'transition-opacity duration-150 hover:opacity-50'
|
'transition-opacity duration-150'
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
EN
|
EN
|
||||||
|
@ -15,7 +15,7 @@ module.exports = {
|
|||||||
japan: ['var(--font-mincho)', 'sans-serif']
|
japan: ['var(--font-mincho)', 'sans-serif']
|
||||||
},
|
},
|
||||||
aspectRatio: {
|
aspectRatio: {
|
||||||
bottle: '0.91'
|
bottle: '1.11'
|
||||||
},
|
},
|
||||||
keyframes: {
|
keyframes: {
|
||||||
fadeIn: {
|
fadeIn: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user