Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
201 changes: 186 additions & 15 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@
"lint": "eslint"
},
"dependencies": {
"@tanstack/react-query": "^5.95.0",
"axios": "^1.13.6",
"lucide-react": "^0.577.0",
"next": "16.1.6",
"react": "19.2.3",
"react-dom": "19.2.3"
"react-dom": "19.2.3",
"react-icons": "^5.5.0",
"react-toastify": "^11.0.5"
},
"devDependencies": {
"@types/node": "^20",
Expand Down
Binary file added public/assets/angry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/happy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/sad-gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/sad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/timid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/weesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions src/Provider/QueryProviders.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use client";

import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { ReactNode, useState } from "react";

export default function QueryProviders({ children }: { children: ReactNode }) {
const [queryClient] = useState(() => new QueryClient());

return (
<QueryClientProvider client={queryClient}>
{children}
</QueryClientProvider>
);
}
17 changes: 17 additions & 0 deletions src/Provider/ToastProvider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"use client";

import { ToastContainer } from "react-toastify";
import "react-toastify/dist/ReactToastify.css";

export default function ToastProvider() {
return (
<ToastContainer
autoClose={3000}
hideProgressBar
closeOnClick
pauseOnHover
closeButton={false}
className="toastify"
/>
);
}
20 changes: 20 additions & 0 deletions src/apis/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import axios from "axios";

export const http = axios.create({
baseURL: process.env.NEXT_PUBLIC_API_SERVER,
});

http.interceptors.request.use(
(config) => {
const token = localStorage.getItem('access_token');

if (token) {
config.headers.Authorization = `Bearer ${token}`;
}

return config;
},
(error) => {
return Promise.reject(error);
}
);
6 changes: 6 additions & 0 deletions src/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import Login from "@/components/auth/Login";

export default function LoginPage() {
return (
<Login />
);}
6 changes: 6 additions & 0 deletions src/app/(auth)/signup/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import SignUp from "@/components/auth/SignUp";

export default function SignupPage() {
return (
<SignUp />
);}
Binary file removed src/app/favicon.ico
Binary file not shown.
42 changes: 0 additions & 42 deletions src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,42 +0,0 @@
:root {
--background: #ffffff;
--foreground: #171717;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}

html,
body {
max-width: 100vw;
overflow-x: hidden;
}

body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

* {
box-sizing: border-box;
padding: 0;
margin: 0;
}

a {
color: inherit;
text-decoration: none;
}

@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
}
34 changes: 11 additions & 23 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";

const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});

const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
import QueryProviders from "../Provider/QueryProviders";
import ToastProvider from "../Provider/ToastProvider";

export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable}`}>
{children}
<html lang="ko">
<body>
<QueryProviders>
{children}
<ToastProvider />
</QueryProviders>
</body>
</html>
);
}
}
143 changes: 4 additions & 139 deletions src/app/page.module.css
Original file line number Diff line number Diff line change
@@ -1,141 +1,6 @@
.page {
--background: #fafafa;
--foreground: #fff;

--text-primary: #000;
--text-secondary: #666;

--button-primary-hover: #383838;
--button-secondary-hover: #f2f2f2;
--button-secondary-border: #ebebeb;

display: flex;
min-height: 100vh;
align-items: center;
justify-content: center;
font-family: var(--font-geist-sans);
background-color: var(--background);
}

.main {
display: flex;
min-height: 100vh;
width: 100%;
max-width: 800px;
flex-direction: column;
align-items: flex-start;
justify-content: space-between;
background-color: var(--foreground);
padding: 120px 60px;
}

.intro {
display: flex;
flex-direction: column;
align-items: flex-start;
text-align: left;
gap: 24px;
}

.intro h1 {
max-width: 320px;
font-size: 40px;
font-weight: 600;
line-height: 48px;
letter-spacing: -2.4px;
text-wrap: balance;
color: var(--text-primary);
}

.intro p {
max-width: 440px;
font-size: 18px;
line-height: 32px;
text-wrap: balance;
color: var(--text-secondary);
}

.intro a {
font-weight: 500;
color: var(--text-primary);
}

.ctas {
display: flex;
flex-direction: row;
width: 100%;
max-width: 440px;
gap: 16px;
font-size: 14px;
}

.ctas a {
.container {
display: flex;
justify-content: center;
align-items: center;
height: 40px;
padding: 0 16px;
border-radius: 128px;
border: 1px solid transparent;
transition: 0.2s;
cursor: pointer;
width: fit-content;
font-weight: 500;
}

a.primary {
background: var(--text-primary);
color: var(--background);
gap: 8px;
}

a.secondary {
border-color: var(--button-secondary-border);
}

/* Enable hover only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
a.primary:hover {
background: var(--button-primary-hover);
border-color: transparent;
}

a.secondary:hover {
background: var(--button-secondary-hover);
border-color: transparent;
}
}

@media (max-width: 600px) {
.main {
padding: 48px 24px;
}

.intro {
gap: 16px;
}

.intro h1 {
font-size: 32px;
line-height: 40px;
letter-spacing: -1.92px;
}
}

@media (prefers-color-scheme: dark) {
.logo {
filter: invert();
}

.page {
--background: #000;
--foreground: #000;

--text-primary: #ededed;
--text-secondary: #999;

--button-primary-hover: #ccc;
--button-secondary-hover: #1a1a1a;
--button-secondary-border: #1a1a1a;
}
}
height: 100vh;
background: #f9fafb;
}
Loading