fix: homepage revamp

Signed-off-by: Chloe <pinkcloudvnn@gmail.com>
This commit is contained in:
Chloe
2024-06-04 18:39:01 +07:00
parent 4d9f4fe822
commit 578822d428
19 changed files with 188 additions and 49 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -2,7 +2,7 @@ import Banner from 'components/banner';
import Navbar from 'components/layout/navbar';
import { GeistSans } from 'geist/font/sans';
import { ensureStartsWith } from 'lib/utils';
import { League_Spartan } from 'next/font/google';
import Script from 'next/script';
import { ReactNode, Suspense } from 'react';
import './globals.css';
@@ -13,12 +13,6 @@ const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL
const twitterCreator = TWITTER_CREATOR ? ensureStartsWith(TWITTER_CREATOR, '@') : undefined;
const twitterSite = TWITTER_SITE ? ensureStartsWith(TWITTER_SITE, 'https://') : undefined;
const league_spartan = League_Spartan({
subsets: ['latin'],
variable: '--font-league-spartan',
display: 'swap'
});
export const metadata = {
metadataBase: new URL(baseUrl),
title: {
@@ -41,8 +35,13 @@ export const metadata = {
export default async function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en" className={`${GeistSans.variable} ${league_spartan.variable}`}>
<html lang="en" className={GeistSans.variable}>
<body className="bg-neutral-50 text-black selection:bg-teal-300 dark:bg-neutral-900 dark:text-white dark:selection:bg-pink-500 dark:selection:text-white">
<Script
src="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js"
async
type="text/javascript"
/>
<header>
<Banner />
<Navbar />

View File

@@ -1,5 +1,5 @@
import Hero from 'components/hero';
import HomePageContent from 'components/home-page-content';
import About from 'components/home-page/about';
import Footer from 'components/layout/footer';
import { getPage } from 'lib/shopify';
import { Metadata } from 'next';
@@ -25,10 +25,8 @@ export default async function HomePage() {
<Suspense>
<Hero />
</Suspense>
<div className="my-3 min-h-96">
<Suspense>
<HomePageContent />
</Suspense>
<div className="mx-auto flex min-h-96 max-w-7xl flex-col space-y-16 px-6 py-12 lg:px-8">
<About />
</div>
<Suspense>
<Footer />