Skip to content

Commit

Permalink
fix: ui font and banner grid size
Browse files Browse the repository at this point in the history
  • Loading branch information
vdhieu committed Dec 14, 2023
1 parent de459ca commit 14d3076
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 70 deletions.
15 changes: 11 additions & 4 deletions components/LandingPage/About.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,18 @@ const products = [

export default function About() {
return (
<div id="about" className="relative bg-white px-5 py-12">
<div id="about" className="relative bg-white px-5 lg:px-20 py-12">
<div className="relative z-0 max-w-7xl mx-auto space-y-5">
<div className="justify-between items-center gap-3 inline-flex w-full">
<img alt="icon info" src="images/info.svg" className="h-8 w-8" />
<Typography level="h4" className="flex-1 !text-zinc-900 !font-medium">
<img
alt="icon info"
src="images/info.svg"
className="h-6 w-6 lg:h-8 lg:w-8"
/>
<Typography
level="h4"
className="flex-1 !text-zinc-900 !font-medium !text-2xl lg:text-4xl"
>
More about Neko
</Typography>
<a
Expand All @@ -55,7 +62,7 @@ export default function About() {
</div>
<Typography
level="p5"
className="!font-light !text-base !text-zinc-800"
className="!font-normal !text-base !text-zinc-800"
>
<span className="font-bold">Cyber Neko</span>
<span>, also known as </span>
Expand Down
6 changes: 3 additions & 3 deletions components/LandingPage/Banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { Button, Typography } from '@mochi-ui/core'

export default function Banner() {
return (
<div id="neko-emoji-banner" className="bg-stone-50 px-5 py-12">
<div id="neko-emoji-banner" className="bg-stone-50 px-5 lg:px-20 py-20">
<div className="max-w-7xl mx-auto flex flex-wrap items-center justify-center">
<div className="w-full lg:w-1/3 order-2 lg:order-1 space-y-4">
<div className="w-full lg:w-5/12 order-2 lg:order-1 space-y-4">
<Typography
level="h1"
className="text-zinc-900 !text-2xl lg:!text-7xl"
Expand Down Expand Up @@ -55,7 +55,7 @@ export default function Banner() {
</Button>
</div>
</div>
<div className="w-full lg:w-2/3 order-1 lg:order-2">
<div className="w-full lg:w-7/12 order-1 lg:order-2">
<img
src="images/neko-pack.png"
alt=""
Expand Down
2 changes: 1 addition & 1 deletion components/LandingPage/CTA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Typography } from '@mochi-ui/core'

export default function CTA() {
return (
<div className="max-w-7xl mx-auto py-16 px-5">
<div className="max-w-7xl mx-auto py-20 px-5 lg:px-20">
<div className="flex-col justify-center items-center gap-6 flex">
<img className="w-24 h-24" src="images/neko-cup.png" alt="" />
<div className="flex-col justify-start items-center gap-2 flex">
Expand Down
5 changes: 4 additions & 1 deletion components/LandingPage/Gallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ export default function Gallery() {
const [showAll, setShowAll] = useState(false)

return (
<div id="gallery" className="relative bg-white px-5 py-12 overflow-hidden">
<div
id="gallery"
className="relative bg-white px-5 lg:px-20 py-8 lg:py-28 overflow-hidden"
>
<div
className={clsx(
'relative z-0 max-w-7xl mx-auto grid grid-cols-5 lg:grid-cols-8 gap-5 lg:gap-10 transition-all overflow-hidden',
Expand Down
2 changes: 1 addition & 1 deletion components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
export default function Footer() {
return (
<MochiFooter
className="!items-start"
className="!items-start lg:!px-20"
copyrightText="Copyright © 2023 Console Labs, All rights reserved"
logo={<img className="h-14 w-14" alt="" src="images/logo-grid.png" />}
nav={[
Expand Down
8 changes: 6 additions & 2 deletions components/layout/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
TopBar,
Typography,
} from '@mochi-ui/core'
import Link from 'next/link'

const shareItems = [
<Button
Expand Down Expand Up @@ -101,14 +102,17 @@ export default function Navbar() {
<TopBar
className="border-none"
leftSlot={
<div className="h-10 justify-start items-center gap-3 inline-flex">
<Link
href=""
className="h-10 justify-start items-center gap-3 inline-flex"
>
<div className="w-10 h-10 justify-center items-center flex">
<img className="w-10 h-10" src="images/logo.png" alt="" />
</div>
<Typography className="text-base font-black uppercase leading-normal">
cyber neko
</Typography>
</div>
</Link>
}
rightSlot={
<>
Expand Down
8 changes: 5 additions & 3 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import '@styles/globals.css'
// import 'nprogress/nprogress.css'
// import '@styles/nprogress.css'
import clsx from 'clsx'
import { Inter } from 'next/font/google'

const inter = Inter({ subsets: ['latin'] })

import type { AppProps } from 'next/app'

Expand All @@ -9,7 +11,7 @@ import Footer from '@components/layout/Footer'

export default function App({ Component, pageProps }: AppProps) {
return (
<main className="relative pt-14 lg:pt-0">
<main className={clsx(inter.className, 'relative pt-14 lg:pt-0')}>
<Navbar />
<Component {...pageProps} />
<Footer />
Expand Down
74 changes: 19 additions & 55 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 14d3076

Please sign in to comment.