-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mission : submit week3 mission(완성본)HomePage
- Loading branch information
1 parent
36305f4
commit f17e164
Showing
20 changed files
with
206 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ dist-ssr | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
mission/chapter03/mission01/src/components/categoryCard/categoryCard.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import styled from "styled-components"; | ||
|
||
|
||
const CategoryCard = ({title})=>{ | ||
return( | ||
<CardDiv> | ||
<CardSpan>{title}</CardSpan> | ||
</CardDiv> | ||
) | ||
|
||
} | ||
|
||
export default CategoryCard; | ||
|
||
const CardDiv = styled.div` | ||
width : 200px; | ||
height : 100px; | ||
background-color : white; | ||
border-radius: 10px; | ||
display : flex; | ||
align-items : flex-end; | ||
&:hover{ | ||
transform: scale(1.05); | ||
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); | ||
} | ||
` | ||
const CardSpan = styled.span` | ||
background-color: grey; | ||
color: white; | ||
opacity: 0.5; | ||
border-radius: 5px; | ||
margin :10px 10px 10px 10px; | ||
padding : 0px 3px 3px 3px; | ||
vertical-align : bottom; | ||
` |
14 changes: 11 additions & 3 deletions
14
.../mission01/src/components/moviePoster.css → ...rc/components/moviePoster/moviePoster.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
.../mission01/src/components/moviePoster.jsx → ...rc/components/moviePoster/moviePoster.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
mission/chapter03/mission01/src/components/navbar/navbar.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import {Link} from "react-router-dom"; | ||
import styled from "styled-components"; | ||
|
||
const Navbar = () => { | ||
return ( | ||
<NavContainer> | ||
<Link to={'/'}><Logo>YONGCHA</Logo></Link> | ||
<div> | ||
<Link to={'/login'}><StyledButton color={'#111'}>로그인</StyledButton></Link> | ||
<Link to={'/signup'}><StyledButton color={'#111'}>회원가입</StyledButton></Link> | ||
</div> | ||
</NavContainer> | ||
); | ||
}; | ||
|
||
export default Navbar; | ||
|
||
const NavContainer = styled.div` | ||
display: flex; | ||
justify-content: space-between; | ||
width: 100%; | ||
background-color: #1b1b1b; | ||
align-items: center; | ||
` | ||
const StyledButton = styled.button` | ||
background-color: ${props => props.color}; | ||
border: none; | ||
color: white; | ||
padding: 10px 20px; | ||
border-radius: 5px; | ||
margin-left: 10px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
&:hover { | ||
background-color: #ff007c; | ||
} | ||
` | ||
const Logo = styled.h2` | ||
color: #ff007c; | ||
padding-left : 20px; | ||
` |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions
17
mission/chapter03/mission01/src/components/sidebar/sidebar.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ul li { | ||
color: white; | ||
text-decoration: none; | ||
font-size: 18px; | ||
display: block; | ||
padding-top: 10px; | ||
padding-bottom: 10px; | ||
transition: background-color 0.3s; | ||
} | ||
ul{ | ||
padding-left: 20px; | ||
padding-right: 0px; | ||
} | ||
ul li:hover{ | ||
background-color: #333; | ||
border-radius: 5px; | ||
} |
25 changes: 25 additions & 0 deletions
25
mission/chapter03/mission01/src/components/sidebar/sidebar.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import styled from "styled-components"; | ||
import { Link } from "react-router-dom"; | ||
import searchIcon from "./icon/search.png" | ||
import movieIcon from "./icon/movie.png" | ||
import "./sidebar.css" | ||
const SideBar = () => { | ||
return ( | ||
<SideBarContainer> | ||
<ul className = "sidebar" > | ||
<Link to={'/search'}><li><img src={searchIcon} width={20} height={20}/>찾기</li></Link> | ||
<Link to={'/movies'}><li><img src={movieIcon} width={20} height={20}/>영화</li></Link> | ||
</ul> | ||
</SideBarContainer> | ||
); | ||
}; | ||
|
||
export default SideBar; | ||
|
||
const SideBarContainer = styled.div` | ||
dispaly: flex; | ||
height: 100vh; | ||
background-color: #1b1b1b; | ||
width: 15%; | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,37 @@ | ||
import { Link } from "react-router-dom"; | ||
import CategoryCard from "../components/categoryCard/categoryCard"; | ||
import styled from "styled-components"; | ||
|
||
const categoryList = [ | ||
{ title : "현재 상영 중인", value : "now-playing"}, | ||
{ title : "인기 있는", value : "popular"}, | ||
{ title : "높은 평가를 받은", value : "top-rated"}, | ||
{ title : "개봉 예정중인", value : "up-coming"} | ||
|
||
] | ||
|
||
const CategoryPage = ()=>{ | ||
return( | ||
<h3>카테고리</h3> | ||
<CategoryContainer> | ||
<h2>카테고리</h2> | ||
<CateListBox> | ||
{categoryList.map((category)=>( | ||
<Link to={`/movies/${category.value}`} key={category.value}><CategoryCard title = {category.title}/></Link> | ||
))} | ||
</CateListBox> | ||
</CategoryContainer> | ||
) | ||
} | ||
|
||
export default CategoryPage; | ||
export default CategoryPage; | ||
|
||
const CategoryContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
padding-left: 15px; | ||
` | ||
const CateListBox = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
gap: 10px; | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const HomePage = ()=>{ | ||
return( | ||
<h2>홈 페이지</h2> | ||
) | ||
} | ||
|
||
export default HomePage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const LoginPage = ()=>{ | ||
return( | ||
<h3>로그인 페이지</h3> | ||
<h2>로그인 페이지</h2> | ||
) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const SearchPage = ()=>{ | ||
return( | ||
<h3>검색 페이지 야호~!</h3> | ||
<h2>검색 페이지 야호~!</h2> | ||
) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const SignupPage = ()=>{ | ||
return( | ||
<h3>회원가입 페이지</h3> | ||
<h2>회원가입 페이지</h2> | ||
) | ||
} | ||
|
||
|