Skip to content

Commit

Permalink
v0.0.1 (#4)
Browse files Browse the repository at this point in the history
* ๐ŸŽจ feat : ๋ชจ๋ฐ”์ผ UI ์„ธํŒ…

* ๐Ÿšง chore : prettier ๋‹ค์‹œ ์ ์šฉ, vscode workspace์„ธํŒ… ์ถ”๊ฐ€

* ๐ŸŽจ feat : ui textarea

* ๐Ÿ“ƒ docs : pr ํ…œํ”Œ๋ฆฟ ์ถ”๊ฐ€

---------

Co-authored-by: ์ด๋ณธํ›ˆ <[email protected]>
  • Loading branch information
raymondanythings and LeeBonHoon1 authored Aug 11, 2023
1 parent 3c6006d commit d418c8d
Show file tree
Hide file tree
Showing 96 changed files with 3,532 additions and 221 deletions.
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## PR ์ œ๋ชฉ

## ์ด์Šˆ ๋ฒˆํ˜ธ ๋ฐ ๋งํฌ์นด ์žˆ๋‹ค๋ฉด ์•Œ๋ ค์ฃผ์„ธ์š”.

## ๋ฆฌ๋ทฐ ์š”์ฒญ ์ „ ํ™•์ธํ•ด์ฃผ์„ธ์š”.

- [x] ์›ํ•˜๋Š” ๊ธฐ๋Šฅ์„ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค.
- [x] ์ฝ”๋“œ ์ปจ๋ฒค์…˜์— ์ด์ƒ์ด ์—†๋Š”์ง€ ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค.
- [x] ๋ถˆํ•„์š”ํ•œ ์ฝ”๋“œ๋ฅผ ์ œ๊ฑฐํ–ˆ์Šต๋‹ˆ๋‹ค.

## ์ถ”๊ฐ€๋œ ํŒจํ‚ค์ง€๊ฐ€ ์žˆ๋‹ค๋ฉด ์ฒดํฌํ•ด์ฃผ์„ธ์š”.

- [ ] ์ƒˆ๋กœ์šด ํŒจํ‚ค์ง€๋ฅผ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.

## ๋ณ€๊ฒฝ ์‚ฌํ•ญ์— ๋Œ€ํ•ด ๊ฐ„๋‹จํžˆ ์„ค๋ช… ํ•ด์ฃผ์„ธ์š”.
1,383 changes: 1,283 additions & 100 deletions .pnp.cjs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"endOfLine": "auto",
"semi": false,
"singleQuote": true
}
"singleQuote": true,
"semi": false
}
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
"**/.yarn": true,
"**/.pnp.*": true
},
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.nodePath": ".yarn/sdks",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"prettier.prettierPath": "",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
20 changes: 0 additions & 20 deletions .yarn/sdks/prettier/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions .yarn/sdks/prettier/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodeLinker: pnp
yarnPath: .yarn/releases/yarn-3.6.1.cjs

yarnPath: .yarn/releases/yarn-3.6.1.cjs
nodeLinker: pnp
12 changes: 12 additions & 0 deletions app/(root)/(route)/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Navbar from "@/components/navbar"


const RootPage = () => {
return (
<div className="flex">
page
</div>
)
}

export default RootPage
9 changes: 8 additions & 1 deletion app/(root)/(route)/layout.tsx โ†’ app/(root)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import { PropsWithChildren } from 'react'
import Navbar from "@/components/navbar"
import TextForm from "@/components/text-form"


const RootLayout = ({ children }: PropsWithChildren) => {

const text = "123123"
return (
<div className="h-full">
<div className="h-full flex flex-col">
<Navbar />
<TextForm />
<main className="h-full">{children}</main>
</div>
)
Expand Down
6 changes: 6 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
@tailwind components;
@tailwind utilities;

html,
body,
:root {
height: 100%;
}

@layer base {
:root {
--background: 0 0% 100%;
Expand Down
4 changes: 3 additions & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import './globals.css'
import type { Metadata } from 'next'
import { ClerkProvider } from '@clerk/nextjs'
import ThemeProvider from '@/components/theme-provider'
import { Toaster } from '@/components/ui/toaster'

export const metadata: Metadata = {
title: 'Create Next App',
Expand All @@ -17,8 +18,9 @@ export default function RootLayout({
<ClerkProvider>
<html lang="ko" suppressHydrationWarning>
<body>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<ThemeProvider attribute="class" defaultTheme="dark" enableSystem>
{children}
<Toaster />
</ThemeProvider>
</body>
</html>
Expand Down
3 changes: 0 additions & 3 deletions app/page.tsx

This file was deleted.

37 changes: 37 additions & 0 deletions components/mode-toggle.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
"use client";

import * as React from "react";
import * as LucideIcons from "lucide-react";
import { useTheme } from "next-themes";

import { Button } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";

export function ModeToggle() {
const { setTheme } = useTheme();

return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="secondary" size="icon">
<LucideIcons.Sun className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
<LucideIcons.Moon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
<span className="sr-only">Toggle theme</span>
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
<DropdownMenuItem onClick={() => setTheme("light")}>
Light
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setTheme("dark")}>
Dark
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
);
}
46 changes: 46 additions & 0 deletions components/navbar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
'use client'

import * as React from 'react'
import * as LucideIcons from 'lucide-react'
import Link from 'next/link'
import { Poppins } from 'next/font/google'
import { UserButton, useUser } from '@clerk/nextjs'

import { cn } from '@/lib/utils'
import { Button } from '@/components/ui/button'
import { ModeToggle } from '@/components/mode-toggle'
// import { ModeToggle } from "@/components/ui/mode-toggle";
// import MobileSidebar from "@/components/mobile-sidebar";

const font = Poppins({
weight: '600',
subsets: ['latin'],
})

export const Navbar = () => {
const { isLoaded, isSignedIn } = useUser()
return (
<div className="fixed w-full z-50 flex justify-between items-center py-2 px-4 border-b border-primary/10 bg-secondary h-16">
<div className="flex items-center">
<LucideIcons.Menu className="block md:hidden" />
{/* <MobileSidebar /> */}
<Link href={'/'}>
<h1
className={cn(
'hidden md:block text-xl md:text-3xl font-bold text-primary',
font.className
)}
>
FourFourGo
</h1>
</Link>
</div>
<div className="flex items-center gap-x-3">
<ModeToggle />
{isLoaded ? <UserButton afterSignOutUrl="/" /> : <>Loading...</>}
</div>
</div>
)
}

export default Navbar
Loading

0 comments on commit d418c8d

Please sign in to comment.