Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JadeMin committed Jun 21, 2024
1 parent 699e8af commit 5f2b5a7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
4 changes: 3 additions & 1 deletion src/app/components/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use client';

import Link from 'next/link';

import $ from "@/config.json";

import "./index.css";
Expand All @@ -10,7 +12,7 @@ export default function Footer() {
return (
<footer>
<div id="link">
<a href={`${$.ENTRY_PATH}/privacy`}>개인정보처리방침</a>
<Link href="/privacy">개인정보처리방침</Link>
{/* <div className="divider">|</div>
<Link href="/service">서비스소개</Link> */}
</div>
Expand Down
18 changes: 9 additions & 9 deletions src/app/components/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ import {
FaUserCircle, FaSignInAlt, FaUserPlus
} from 'react-icons/fa';

import $ from "@/config.json";
import Link from 'next/link';

import { randomKeyword } from "./randomKeyword.ts";

import logo from "@/public/logo.png";

import "./index.css";


Expand All @@ -19,21 +18,22 @@ export default function Navbar() {
return (
<nav>
<div id="logo">
<a href={`${$.ENTRY_PATH}/`}>
<Link href="/">
<img
src={logo.src}
alt="Logo"
/>
</a>
</Link>
</div>

<form
id="search"
role="search"
action="/search"
onSubmit={e => e.preventDefault()}
>
<input
type="text"
type="search"
placeholder={randomKeyword()}
/>
<button type="submit">
Expand All @@ -45,13 +45,13 @@ export default function Navbar() {
{/* <Link href="/my" id="my">
<FaUserCircle size={30}/>
</Link> */}
<a href={`${$.ENTRY_PATH}/login`} id="login">
<Link href="/login" id="login">
<FaSignInAlt/> 로그인
</a>
</Link>
<div className="divider">|</div>
<a href={`${$.ENTRY_PATH}/register`} id="register">
<Link href="/register" id="register">
<FaUserPlus/> 회원가입
</a>
</Link>
</div>
</nav>
);
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.module.css → src/app/page.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
main {
#main {
display: flex;
flex-direction: row;
justify-content: center;
Expand Down
4 changes: 2 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import {
import Navbar from "@/app/components/navbar";
import Footer from "@/app/components/footer";

import styles from "./page.module.css";
import "./page.css";



export default function Home() {
return (
<>
<Navbar/>
<main className={styles.main}>
<main id="main">
<div id="content">
<div id="next-time">
<span>다음 강의 : { "ChatGPT" }</span>
Expand Down
3 changes: 0 additions & 3 deletions src/config.json

This file was deleted.

0 comments on commit 5f2b5a7

Please sign in to comment.