Skip to content

Commit

Permalink
๐Ÿš€ Deploy (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
sayyyho authored Aug 19, 2024
1 parent 914d4eb commit 0f047ae
Show file tree
Hide file tree
Showing 41 changed files with 587 additions and 257 deletions.
5 changes: 5 additions & 0 deletions .idea/.gitignore

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

12 changes: 12 additions & 0 deletions .idea/Kaboo-Connection-Front.iml

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

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

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

8 changes: 8 additions & 0 deletions .idea/modules.xml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,14 @@
| โœ…ย Test | `:white_check_mark` | ๋กœ์ง ๋ฐ ์ฝ”๋“œ ํ…Œ์ŠคํŠธ |
| โ™ป๏ธย Refactoring | `:recycle` | ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง |
| ๐Ÿ“˜ย Docs | `:blue_book` | Feature ์ด์™ธ์— ๋ฌธ์„œ ์ƒ์„ฑ ๋ฐ ์ˆ˜์ • |

### font

KakaoBold ๋˜๋Š” KakaoRegular

### color

๊ธฐ๋ณธ ๋…ธ๋ž‘ : #FFF496
๊ธฐ๋ณธ ์ฐ๋ธŒ๋ผ์šด : #715F00
๊ธฐ๋ณธ ์—ฐ๋ธŒ๋ผ์šด : #D3CBA1
๋ธ”๋ž™ : #000
140 changes: 0 additions & 140 deletions dist/assets/index-BSSa90UF.js

This file was deleted.

176 changes: 176 additions & 0 deletions dist/assets/index-BqHKD4MV.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/assets/index-DiwrgTda.css

This file was deleted.

1 change: 0 additions & 1 deletion dist/assets/react-CHdo91hT.svg

This file was deleted.

5 changes: 2 additions & 3 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<script type="module" crossorigin src="/assets/index-BSSa90UF.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DiwrgTda.css">
<title>์นด๋ถ€์นด๋ถ€</title>
<script type="module" crossorigin src="/assets/index-BqHKD4MV.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down
1 change: 0 additions & 1 deletion dist/vite.svg

This file was deleted.

Binary file added public/fonts/KakaoBold.ttf
Binary file not shown.
Binary file added public/fonts/KakaoOTFBold.otf
Binary file not shown.
Binary file added public/fonts/KakaoOTFRegular.otf
Binary file not shown.
Binary file added public/fonts/KakaoRegular.ttf
Binary file not shown.
42 changes: 42 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}

.card {
padding: 2em;
}

.read-the-docs {
color: #888;
}
25 changes: 6 additions & 19 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
import Layout from "./components/Common/Layout";
import { useState } from "react";
import "./App.css";
import {
BrowserRouter as Router,
Routes,
Route,
Link,
useLocation,
} from "react-router-dom";

import Header from "./components/Common/Header";
import HomeMain from "./pages/homepages/HomeMain";

import GlobalStyle from "./components/Common/GlobalStyle";
import { PeopleListPage } from "./pages/PeopleListPage";
function App() {
return (
<Router>
<Routes>
<Route path="/" element={<HomeMain />}></Route>
</Routes>
</Router>
<>
<GlobalStyle />
<PeopleListPage></PeopleListPage>
</>
);
}

Expand Down
Binary file added src/assets/dummyImages/peopleList.jpeg
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 src/assets/dummyImages/peoplelist2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/react.svg

This file was deleted.

17 changes: 15 additions & 2 deletions src/components/Common/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
/** @jsxImportSource @emotion/react */
import React from "react";
import { footerStyle, strongTextStyle, normalTextStyle } from "./Footer.styled";
import Text from "../Common/Text";

const Footer = () => {
return (
<footer css={footerStyle}>
<p css={strongTextStyle}>์นด์นด์˜ค ๋ถ€ํŠธ์บ ํ”„ 2์กฐ: ์ถ˜์‹2</p>
<p css={normalTextStyle}>๋ฐ•์„ธํ˜ธ ๋ฐ•์ง€ํ˜ ์•ˆํƒœ์ง„ ์ •์€์ฑ„ ํ•œ์ฃผ๋ฆฌ</p>
<Text
value="์นด์นด์˜ค ๋ถ€ํŠธ์บ ํ”„ 2์กฐ: ์ถ˜์‹2"
fontFamily="KakaoBold"
fontSize={15}
color="#000"
style={strongTextStyle}
/>
<Text
value="๋ฐ•์„ธํ˜ธ ๋ฐ•์ง€ํ˜ ์•ˆํƒœ์ง„ ์ •์€์ฑ„ ํ•œ์ฃผ๋ฆฌ"
fontFamily="KakaoRegular"
fontSize={15}
color="#715F00"
style={normalTextStyle}
/>
</footer>
);
};
Expand Down
11 changes: 6 additions & 5 deletions src/components/Common/Footer.styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ export const footerStyle = css`
padding: 20px 0;
position: relative;
bottom: 0;
z-index: 1000; // ๋‹ค๋ฅธ ์š”์†Œ๋“ค ์œ„๋กœ ๋ณด์ด๋„๋ก z-index ์„ค์ •
z-index: 1000;
width: 100%;
height: 130px;
height: 100px;
display: flex;
flex-direction: column;
`;

export const strongTextStyle = css`
font-size: 14px;
font-weight: bold;
margin: 20px 0px 0px 50px;
`;

export const normalTextStyle = css`
font-size: 14px;
margin: 10px 0px 0px 50px;
`;
28 changes: 28 additions & 0 deletions src/components/Common/GlobalStyle.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/** @jsxImportSource @emotion/react */
import { Global, css } from "@emotion/react";

const GlobalStyle = () => (
<Global
styles={css`
@font-face {
font-family: "KakaoBold";
src: url("public/fonts/KakaoBold.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "KakaoRegular";
src: url("public/fonts/KakaoRegular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
`}
/>
);

export default GlobalStyle;
25 changes: 25 additions & 0 deletions src/components/Common/Text.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/** @jsxImportSource @emotion/react */
import { getTextStyle } from "./Text.style";

// KakaoBold ๋˜๋Š” KakaoRegular

// ๊ธฐ๋ณธ ๋…ธ๋ž‘ : #FFF496
// ๊ธฐ๋ณธ ์ฐ๋ธŒ๋ผ์šด : #715F00
// ๊ธฐ๋ณธ ์—ฐ๋ธŒ๋ผ์šด : #D3CBA1
// ๋ธ”๋ž™ : #000

const Text = ({
value,
fontFamily = "KakaoRegular",
fontSize = 16,
color = "#000",
style: customCss,
}) => {
return (
<span css={[getTextStyle({ fontFamily, fontSize, color }), customCss]}>
{value}
</span>
);
};

export default Text;
8 changes: 8 additions & 0 deletions src/components/Common/Text.style.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @jsxImportSource @emotion/react */
import { css } from "@emotion/react";

export const getTextStyle = ({ fontFamily, fontSize, color }) => css`
font-family: ${fontFamily};
font-size: ${fontSize}px;
color: ${color};
`;
17 changes: 17 additions & 0 deletions src/components/Common/miniLayout.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/** @jsxImportSource @emotion/react */
import React from "react";
import Text from "../Common/Text";
import { LayoutContainer, Line, CenterContent } from "./miniLayout.styled";

const MiniLayout = ({ text, children, layerWidth }) => {
return (
<LayoutContainer width={layerWidth}>
<Text value={text} fontFamily="KakaoBold" fontSize={30} color="#000" />
<Line />
<CenterContent>{children}</CenterContent>
<Line />
</LayoutContainer>
);
};

export default MiniLayout;
23 changes: 23 additions & 0 deletions src/components/Common/miniLayout.styled.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/** @jsxImportSource @emotion/react */
import styled from "@emotion/styled";

export const LayoutContainer = styled.div`
width: ${({ width }) => width || "100%"};
box-sizing: border-box;
`;

export const Line = styled.div`
width: 100%;
height: 3px;
background-color: #715f00;
margin: 15px 0px 15px 0px;
`;

export const CenterContent = styled.div`
display: flex;
flex-wrap: wrap;
// justify-content: space-between; ๋ณ„๋กœ์ž„
justify-content: center;
gap: 20px;
margin: 10px;
`;
33 changes: 33 additions & 0 deletions src/components/PeopleListComponents/peopleCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/** @jsxImportSource @emotion/react */
import Text from "../Common/Text";
import React from "react";
import {
CardContainer,
ProfileImage,
Name,
Affiliation,
} from "./peopleCard.styled";

const PeopleCard = ({ image, name, affiliation, onClick }) => {
return (
<CardContainer onClick={onClick}>
<ProfileImage src={image} alt={name} />
<Text
value={name}
fontFamily="KakaoBold"
fontSize={15}
color="#000"
style={Name}
/>
<Text
value={affiliation}
fontFamily="KakaoRegular"
fontSize={13}
color="#715F00"
style={Affiliation}
/>
</CardContainer>
);
};

export default PeopleCard;
Loading

0 comments on commit 0f047ae

Please sign in to comment.