Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAPHY-14 feat: 푸터 생성 초안 #8

Merged
merged 6 commits into from
Sep 29, 2024
Merged
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
48 changes: 48 additions & 0 deletions frontend/package-lock.json

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

2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"@testing-library/user-event": "^13.5.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"react-router-dom": "^6.26.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
Expand Down
Binary file added frontend/public/android-chrome-192x192.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 frontend/public/android-chrome-512x512.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 frontend/public/apple-touch-icon.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 frontend/public/favicon-16x16.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 frontend/public/favicon-32x32.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 frontend/public/favicon.ico
Binary file not shown.
5 changes: 4 additions & 1 deletion frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<title>React App</title>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/apple-touch-icon.png" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<title>Saphy</title>
</head>
<body>
<div id="root"></div>
Expand Down
25 changes: 25 additions & 0 deletions frontend/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
22 changes: 14 additions & 8 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
import React from 'react';
import './App.css';
import './index.css';
import { createBrowserRouter, RouterProvider } from 'react-router-dom';

import LandingPage from './pages/Landing';
import ErrorPage from './pages/Error';

function App() {
return (
<div className="text-center">
<header>
<h1>Hi</h1>
</header>
</div>
);
const router = createBrowserRouter([
{
path: '/',
// element: <RootLayout />,
errorElement: <ErrorPage />,
children: [{ path: '/', element: <LandingPage /> }],
},
]);

return <RouterProvider router={router} />;
}

export default App;
70 changes: 70 additions & 0 deletions frontend/src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import React from 'react';
import { FaGithub, FaYoutube } from 'react-icons/fa';
import { IoLogoInstagram } from 'react-icons/io';

function Footer() {
const emailAddress = 'your-email@example.com';

const thisYear = () => {
const year = new Date().getFullYear();
return year;
};

return (
<footer className="bottom-0 z-10 flex h-auto w-full items-center bg-gray-900 px-56 py-10 text-white">
<div className="grid w-full grid-cols-3">
<div className="flex items-center justify-start gap-10">
<a
href="https://github.com/2024-Saphy"
target="_blank"
rel="noopener noreferrer"
className="text-white"
aria-label="github"
>
<FaGithub size={40} />
</a>
<a
href="https://www.youtube.com/yourchannel"
target="_blank"
rel="noopener noreferrer"
className="text-white"
aria-label="youtube"
>
<FaYoutube size={40} />
</a>
<a
href="https://www.instagram.com/yourchannel"
target="_blank"
rel="noopener noreferrer"
className="text-white"
aria-label="instagram"
>
<IoLogoInstagram size={40} />
</a>
</div>

<div className="flex items-center justify-center">
<p className="font-gmarketbold text-xl">SAPHY!</p>
</div>

<div className="flex flex-col items-center justify-end gap-1">
<p className="font-gmarketbold text-lg">Saphy</p>
<p className="text-sm">상상기업 프로젝트</p>
<p className="text-sm">
문의: &nbsp;
<a
className="underline hover:text-sky-500"
href={`mailto:${emailAddress}`}
>
{emailAddress}
</a>
</p>

<p className="text-sm">Copyright &copy; {thisYear()}</p>
</div>
</div>
</footer>
);
}

export default Footer;
34 changes: 34 additions & 0 deletions frontend/src/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import React from 'react';

import { Link } from 'react-router-dom';
import { FaGithub, FaYoutube } from 'react-icons/fa';

function Header() {
return (
<nav className="text-md fixed left-0 top-0 z-50 w-full rounded-b-md bg-gray-900 p-4 text-white">
<ul className="mx-11 flex justify-between">
<li className="flex items-center">
<Link
to="/"
className="flex transform items-center text-white transition duration-300 ease-in-out hover:scale-110 hover:text-blue-400"
>
<span className="text-xl">Saphy</span>
</Link>
</li>
<li className="flex items-center space-x-6">
<a
href="https://github.com/2024-Saphy"
target="_blank"
rel="noopener noreferrer"
aria-label="Github"
>
<FaGithub size={30} className="hover:text-lime-200" />
</a>
<FaYoutube size={30} className="hover:text-lime-200" />
</li>
</ul>
</nav>
);
}

export default Header;
Empty file.
2 changes: 1 addition & 1 deletion frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body {
margin: 0;
width: 100%;
height: 100vh;
background-color: #f0fdf4;
background-color: white;
font-family:
'GmarketSansMedium',
'GmarketSansBold',
Expand Down
14 changes: 14 additions & 0 deletions frontend/src/pages/Error.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from 'react';

function ErrorPage() {
return (
<main className="flex items-center justify-center">
<div className="text-center">
<h1 className="text-5xl font-bold text-black">에러가 발생했습니다</h1>
<h2 className="text-lg text-black">페이지를 찾을 수 없습니다.</h2>
</div>
</main>
);
}

export default ErrorPage;
22 changes: 22 additions & 0 deletions frontend/src/pages/Landing.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react';
import Header from '../components/Header';
import Footer from '../components/Footer';
import MainSection from '../components/section/MainSection';
import AboutSection from '../components/section/AboutSection';
import FeatureSection from '../components/section/FeatureSection';

function LandingPage() {
return (
<div className="grid grid-cols-1">
<Header />
<div className="relative">
<MainSection />
<AboutSection />
<FeatureSection />
</div>
<Footer />
</div>
);
}

export default LandingPage;