Merge pull request #22 from zenzen-sol/sol/preview

chore: preview -> narai
This commit is contained in:
Sol Irvine 2023-11-13 18:37:41 +09:00 committed by GitHub
commit c0eb19cce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 31 additions and 6 deletions

View File

@ -117,6 +117,7 @@ export default async function ProductPage({
height={product.featuredImage.height} height={product.featuredImage.height}
width={product.featuredImage.width} width={product.featuredImage.width}
className="h-full w-full object-cover" className="h-full w-full object-cover"
priority={true}
/> />
</div> </div>

View File

@ -80,6 +80,7 @@ export default async function BlogArticlePage({
height={article?.image.height} height={article?.image.height}
width={article?.image.width} width={article?.image.width}
className="h-full w-full object-cover" className="h-full w-full object-cover"
priority={true}
/> />
</div> </div>
)} )}

View File

@ -73,7 +73,7 @@ export function AddManyToCart({
</div> </div>
</div> </div>
<button <button
aria-label="Add items to cart" aria-label="Add to cart"
disabled={isPending || !availableForSale || !selectedVariantId} disabled={isPending || !availableForSale || !selectedVariantId}
title={title} title={title}
onClick={() => { onClick={() => {

View File

@ -72,7 +72,7 @@ export async function HomepageProducts({ lang }: { lang?: SupportedLocale }) {
> >
<HomepageProductsItem item={firstProduct} priority={true} /> <HomepageProductsItem item={firstProduct} priority={true} />
<HomepageProductsItem item={secondProduct} priority={true} /> <HomepageProductsItem item={secondProduct} priority={true} />
<HomepageProductsItem item={thirdProduct} /> <HomepageProductsItem item={thirdProduct} priority={true} />
</section> </section>
); );
} }

View File

@ -56,7 +56,11 @@ export default async function Footer({
</div> </div>
<div className="w-full md:w-[40%]"> <div className="w-full md:w-[40%]">
<div className="flex w-full flex-row items-end space-x-12 pt-24 md:hidden"> <div className="flex w-full flex-row items-end space-x-12 pt-24 md:hidden">
<Link href="/" className="transition-opacity duration-150 hover:opacity-90"> <Link
href="/"
className="transition-opacity duration-150 hover:opacity-90"
aria-label="Go to homepage"
>
<KanjiLogo className="h-64" /> <KanjiLogo className="h-64" />
</Link> </Link>
<div className="flex grow flex-col space-y-6 md:items-end"> <div className="flex grow flex-col space-y-6 md:items-end">
@ -72,10 +76,18 @@ export default async function Footer({
</div> </div>
<div className="flex flex-row justify-between space-x-4"> <div className="flex flex-row justify-between space-x-4">
<div className="flex flex-row items-center space-x-6"> <div className="flex flex-row items-center space-x-6">
<Link href="https://www.instagram.com/suginomoribrewery/" className="group"> <Link
href="https://www.instagram.com/suginomoribrewery/"
className="group"
aria-label="Visit on Instagram"
>
<InstagramIcon className="h-6 stroke-transparent transition-all ease-in-out group-hover:scale-110" /> <InstagramIcon className="h-6 stroke-transparent transition-all ease-in-out group-hover:scale-110" />
</Link> </Link>
<Link href="https://www.facebook.com/suginomoribrewery" className="group"> <Link
href="https://www.facebook.com/suginomoribrewery"
className="group"
aria-label="Visit on Facebook"
>
<FacebookIcon className="h-6 stroke-transparent transition-all ease-in-out group-hover:scale-110" /> <FacebookIcon className="h-6 stroke-transparent transition-all ease-in-out group-hover:scale-110" />
</Link> </Link>
</div> </div>
@ -105,6 +117,7 @@ export default async function Footer({
className="group" className="group"
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
aria-label="Visit on Instagram"
> >
<InstagramIcon className="h-6 stroke-transparent transition-all ease-in-out group-hover:scale-110" /> <InstagramIcon className="h-6 stroke-transparent transition-all ease-in-out group-hover:scale-110" />
</Link> </Link>
@ -113,6 +126,7 @@ export default async function Footer({
className="group" className="group"
rel="noopener noreferrer" rel="noopener noreferrer"
target="_blank" target="_blank"
aria-label="Visit on Facebook"
> >
<FacebookIcon className="h-6 stroke-transparent transition-all ease-in-out group-hover:scale-110" /> <FacebookIcon className="h-6 stroke-transparent transition-all ease-in-out group-hover:scale-110" />
</Link> </Link>

View File

@ -26,6 +26,7 @@ export function MenuModal({ scrolled }: { scrolled: boolean }) {
type="button" type="button"
onClick={() => setIsOpen(true)} onClick={() => setIsOpen(true)}
className="transition-all ease-in-out hover:scale-110" className="transition-all ease-in-out hover:scale-110"
aria-label="Open menu"
> >
<MenuIcon /> <MenuIcon />
</button> </button>

View File

@ -57,7 +57,11 @@ export default function Navbar({
> >
<div className="mx-auto flex max-w-screen-xl flex-row items-start justify-between"> <div className="mx-auto flex max-w-screen-xl flex-row items-start justify-between">
<div className="px-6 py-2"> <div className="px-6 py-2">
<Link href="/" className="transition-opacity duration-150 hover:opacity-90"> <Link
href="/"
className="transition-opacity duration-150 hover:opacity-90"
aria-label="Go to homepage"
>
<LogoNamemark className={clsx('w-[180px]', 'fill-current')} /> <LogoNamemark className={clsx('w-[180px]', 'fill-current')} />
</Link> </Link>
</div> </div>

View File

@ -54,6 +54,7 @@ export default function NewsletterSignup() {
type="text" type="text"
name={`b_${process?.env?.NEXT_PUBLIC_MAILCHIMP_USER_ID}_${process?.env?.NEXT_PUBLIC_MAILCHIMP_LIST_ID}`} name={`b_${process?.env?.NEXT_PUBLIC_MAILCHIMP_USER_ID}_${process?.env?.NEXT_PUBLIC_MAILCHIMP_LIST_ID}`}
defaultValue="" defaultValue=""
tabIndex={-1}
/> />
</div> </div>
</form> </form>

View File

@ -52,6 +52,7 @@ export default function NewsletterSignup() {
type="text" type="text"
name={`b_${process?.env?.NEXT_PUBLIC_MAILCHIMP_USER_ID}_${process?.env?.NEXT_PUBLIC_MAILCHIMP_LIST_ID}`} name={`b_${process?.env?.NEXT_PUBLIC_MAILCHIMP_USER_ID}_${process?.env?.NEXT_PUBLIC_MAILCHIMP_LIST_ID}`}
defaultValue="" defaultValue=""
tabIndex={-1}
/> />
</div> </div>
</form> </form>

View File

@ -48,6 +48,7 @@ export default async function StoriesDetail({
'h-full w-full object-cover', 'h-full w-full object-cover',
'transition duration-300 ease-in-out hover:scale-105' 'transition duration-300 ease-in-out hover:scale-105'
)} )}
priority={true}
/> />
)} )}
</div> </div>

View File

@ -27,6 +27,7 @@ export function ProductTastingNotes({ product }: { product: Product }) {
width={imageWidth} width={imageWidth}
height={imageHeight} height={imageHeight}
alt={imageAlt || imageUrl} alt={imageAlt || imageUrl}
priority={true}
/> />
</div> </div>
)} )}