Skip to content

Commit

Permalink
feat: add new landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
CChuYong committed Feb 20, 2024
1 parent 489c999 commit 9665dd8
Show file tree
Hide file tree
Showing 36 changed files with 3,723 additions and 47 deletions.
107 changes: 107 additions & 0 deletions app/layout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
font-family: 'Pretendard';
font-weight: 100;
font-style: normal;
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Thin.eot');
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Thin.eot?#iefix') format('embedded-opentype'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Thin.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Thin.woff') format('woff'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Thin.ttf') format("truetype");
font-display: swap;
}
@font-face {
font-family: 'Pretendard';
font-weight: 200;
font-style: normal;
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-ExtraLight.eot');
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-ExtraLight.eot?#iefix') format('embedded-opentype'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-ExtraLight.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-ExtraLight.woff') format('woff'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-ExtraLight.ttf') format("truetype");
font-display: swap;
}
@font-face {
font-family: 'Pretendard';
font-weight: 300;
font-style: normal;
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Light.eot');
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Light.eot?#iefix') format('embedded-opentype'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Light.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Light.woff') format('woff'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Light.ttf') format("truetype");
font-display: swap;
}
@font-face {
font-family: 'Pretendard';
font-weight: 400;
font-style: normal;
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Regular.eot');
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Regular.eot?#iefix') format('embedded-opentype'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Regular.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Regular.woff') format('woff'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Regular.ttf') format("truetype");
font-display: swap;
}
@font-face {
font-family: 'Pretendard';
font-weight: 500;
font-style: normal;
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Medium.eot');
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Medium.eot?#iefix') format('embedded-opentype'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Medium.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Medium.woff') format('woff'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Medium.ttf') format("truetype");
font-display: swap;
}
@font-face {
font-family: 'Pretendard';
font-weight: 600;
font-style: normal;
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-SemiBold.eot');
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-SemiBold.eot?#iefix') format('embedded-opentype'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-SemiBold.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-SemiBold.woff') format('woff'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-SemiBold.ttf') format("truetype");
font-display: swap;
}
@font-face {
font-family: 'Pretendard';
font-weight: 700;
font-style: normal;
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Bold.eot');
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Bold.eot?#iefix') format('embedded-opentype'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Bold.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Bold.woff') format('woff'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Bold.ttf') format("truetype");
font-display: swap;
}
@font-face {
font-family: 'Pretendard';
font-weight: 800;
font-style: normal;
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-ExtraBold.eot');
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-ExtraBold.eot?#iefix') format('embedded-opentype'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-ExtraBold.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-ExtraBold.woff') format('woff'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-ExtraBold.ttf') format("truetype");
font-display: swap;
}
@font-face {
font-family: 'Pretendard';
font-weight: 900;
font-style: normal;
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Black.eot');
src: url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Black.eot?#iefix') format('embedded-opentype'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Black.woff2') format('woff2'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Black.woff') format('woff'),
url('https://cdn.jsdelivr.net/gh/webfontworld/pretendard/Pretendard-Black.ttf') format("truetype");
font-display: swap;
}

body {
font-family: Pretendard, sans-serif;
}
7 changes: 2 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'
import "./layout.css"
import {ArticleJsonLd, DefaultSeo} from "next-seo";

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

export const metadata: Metadata = {
title: '삐삐',
description: '가족 일상공유 어플리케이션',
Expand Down Expand Up @@ -50,7 +47,7 @@ export default function RootLayout({
/>
</head>

<body suppressHydrationWarning={true} className={inter.className}>{children}</body>
<body suppressHydrationWarning={true}>{children}</body>
</html>
)
}
4 changes: 2 additions & 2 deletions app/links/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client"
import {useEffect, useState} from "react";
import Image from "next/image";
import bbibbiMain from '../../../public/bbibbi_main.svg'
import BiBBiMain from '@/public/bbibbi_main.svg'
import {usePathname, useSearchParams} from "next/navigation";
import {analytics} from "@/firebase/firebase";

Expand Down Expand Up @@ -36,7 +36,7 @@ export default function Page() {
}
}
return <div className={"flex flex-col justify-center items-center h-screen w-screen gap-8"}>
<Image src={bbibbiMain} width={335} height={182} alt={"logo"} />
<BiBBiMain width={335} height={182} alt={"logo"} />
<div className={"text-center text-lg text-gray-300"}>
{platform == "unknown" ? <span>모바일에서만 접근할 수 있어요</span> : <div className={"bg-slate-500 text-gray-300 font-semibold py-3 px-6 rounded-md text-center"} onClick={handleRoute}>앱으로 이동</div>}
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/not-found.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Image from "next/image";
import verySad from '../public/very_sad.svg'
import VerySad from '@/public/very_sad.svg'

export default function NotFound() {
return <div className={"flex flex-col justify-center items-center h-screen w-screen gap-8"}>
<Image src={verySad} width={200} height={200} alt={"logo"} />
<VerySad width={200} height={200} alt={"logo"} />
<div className={"text-center text-lg text-gray-300"}>
<span>페이지를 찾을 수 없어요</span>
</div>
Expand Down
4 changes: 2 additions & 2 deletions app/o/[id]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client"
import {useEffect, useState} from "react";
import Image from "next/image";
import bbibbiMain from '../../../public/bbibbi_main.svg'
import BiBBiMain from '@/public/bbibbi_main.svg'
import {usePathname, useSearchParams} from "next/navigation";
import axios from "axios";
import {analytics} from "@/firebase/firebase";
Expand Down Expand Up @@ -55,7 +55,7 @@ export default function Page() {
}
}
return <div className={"flex flex-col justify-center items-center h-screen w-screen gap-8"}>
<Image src={bbibbiMain} width={335} height={182} alt={"logo"} />
<BiBBiMain width={335} height={182} alt={"logo"} />
<div className={"text-center text-lg text-gray-300"}>
{platform == "unknown" ? <span>모바일에서만 접근할 수 있어요</span> : <div className={"bg-slate-500 text-gray-300 font-semibold py-3 px-6 rounded-md text-center"} onClick={handleRoute}>앱으로 이동</div>}
</div>
Expand Down
Loading

0 comments on commit 9665dd8

Please sign in to comment.