-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Polynomeer/feature/6/intro_homeUI
Feature/6/intro home UI
- Loading branch information
Showing
24 changed files
with
12,153 additions
and
1 deletion.
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
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,8 +1,13 @@ | ||
import Router from '@/Routes/Router'; | ||
import GlobalStyles from '@/Styles/GlobalStyles'; | ||
|
||
const App = () => { | ||
return ( | ||
<div className="App"> | ||
<GlobalStyles /> | ||
<Router /> | ||
</div> | ||
); | ||
} | ||
}; | ||
|
||
export default App; |
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,14 @@ | ||
import HomeTitle from '@/Components/Home/HomeTitle'; | ||
import MatchInfo from './MatchInfo/MatchInfo'; | ||
import { HomeStyles as S } from '@/Components/Home/HomeStyles'; | ||
|
||
const Home = () => { | ||
return ( | ||
<S.Home> | ||
<HomeTitle /> | ||
<MatchInfo /> | ||
</S.Home> | ||
); | ||
}; | ||
|
||
export default Home; |
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,118 @@ | ||
import styled from 'styled-components'; | ||
import * as CS from '@/Styles/CommonStyles'; | ||
import theme from '@/Styles/theme'; | ||
|
||
const HomeStyles = { | ||
Home: styled(CS.BOX.FLEX_COLUMN_CENTER_BOX)` | ||
background: #222; | ||
width: 1440px; | ||
height: 1080px; | ||
color: ${theme.COLOR.DEFAULT}; | ||
padding-top: 40px; | ||
`, | ||
|
||
HomeTitle: styled.div` | ||
font-size: 36px; | ||
font-weight: 700; | ||
padding: 20px; | ||
margin-bottom: 10px; | ||
`, | ||
|
||
MatchInfo: styled(CS.BOX.FLEX_COLUMN_CENTER_BOX)` | ||
width: 500px; | ||
`, | ||
|
||
MatchInfoTitle: styled.div` | ||
padding: 40px 40px 20px 40px; | ||
font-size: 24px; | ||
letter-spacing: 3px; | ||
`, | ||
MatchInfoBody: styled.div` | ||
width: 100%; | ||
height: 340px; | ||
padding: 0px 20px 0px 10px; | ||
overflow-y: scroll; | ||
::-webkit-scrollbar { | ||
width: 10px; | ||
height: 20px; | ||
} | ||
::-webkit-scrollbar-track { | ||
background-color: #222; | ||
border-radius: 8px; | ||
} | ||
::-webkit-scrollbar-thumb { | ||
border-radius: 8px; | ||
background: #ffd2e1; | ||
} | ||
mask-image: linear-gradient(to top, transparent, #222), | ||
linear-gradient(to left, transparent 12px, #222 12px); | ||
mask-size: 100% 2000000px; | ||
mask-position: left bottom; | ||
transition: mask-position 0.3s, -webkit-mask-position 0.3s; | ||
:hover { | ||
mask-position: left top; | ||
} | ||
`, | ||
|
||
ScrollMask: styled.div` | ||
width: 100%; | ||
border: 1px solid #ffa7c4; | ||
`, | ||
|
||
MatchBox: styled(CS.BOX.FLEX_COLUMN_CENTER_BOX)` | ||
border: 1px solid #fff; | ||
border-radius: 10px; | ||
margin: 10px; | ||
width: 100%; | ||
height: 100px; | ||
justify-content: center; | ||
`, | ||
|
||
GameNumber: styled(CS.BOX.FLEX_CENTER_BOX)` | ||
width: 100%; | ||
height: 50%; | ||
padding: 15px 10px 0px 10px; | ||
font-size: 12px; | ||
color: #ffa7c4; | ||
`, | ||
|
||
Match: styled.div` | ||
display: flex; | ||
align-items: center; | ||
width: 100%; | ||
height: 100%; | ||
padding: 0px 5px 5px 5px; | ||
justify-content: space-evenly; | ||
`, | ||
|
||
TeamName: styled(CS.BOX.FLEX_CENTER_BOX)` | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 23px; | ||
font-weight: 900; | ||
cursor: pointer; | ||
transition: all ease-in-out 0.2s; | ||
:hover { | ||
color: #ffa7c4; | ||
font-size: 24px; | ||
} | ||
`, | ||
|
||
VS: styled.div` | ||
display: flex; | ||
align-items: center; | ||
font-weight: 900; | ||
font-size: 14px; | ||
`, | ||
}; | ||
|
||
export { HomeStyles }; |
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 @@ | ||
import { HomeStyles as S } from '@/Components/Home/HomeStyles'; | ||
|
||
const HomeTitle = () => { | ||
return <S.HomeTitle>Team illy'swing BASEBALL</S.HomeTitle>; | ||
}; | ||
|
||
export default HomeTitle; |
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 @@ | ||
import { HomeStyles as S } from '@/Components/Home/HomeStyles'; | ||
|
||
const GameNumber = () => { | ||
return <S.GameNumber>GameNumber</S.GameNumber>; | ||
}; | ||
|
||
export default GameNumber; |
15 changes: 15 additions & 0 deletions
15
FE/baseball/src/Components/Home/MatchInfo/MatchBox/Match.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,15 @@ | ||
import { HomeStyles as S } from '@/Components/Home/HomeStyles'; | ||
import TeamName from './TeamName'; | ||
import VS from './VS'; | ||
|
||
const Match = () => { | ||
return ( | ||
<S.Match> | ||
<TeamName /> | ||
<VS /> | ||
<TeamName /> | ||
</S.Match> | ||
); | ||
}; | ||
|
||
export default Match; |
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,14 @@ | ||
import GameNumber from './GameNumber'; | ||
import Match from './Match'; | ||
import { HomeStyles as S } from '@/Components/Home/HomeStyles'; | ||
|
||
const MatchBox = () => { | ||
return ( | ||
<S.MatchBox> | ||
<GameNumber /> | ||
<Match /> | ||
</S.MatchBox> | ||
); | ||
}; | ||
|
||
export default MatchBox; |
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 @@ | ||
import { HomeStyles as S } from '@/Components/Home/HomeStyles'; | ||
|
||
const TeamName = () => { | ||
return <S.TeamName>TeamName</S.TeamName>; | ||
}; | ||
|
||
export default TeamName; |
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 @@ | ||
import { HomeStyles as S } from '@/Components/Home/HomeStyles'; | ||
|
||
const VS = () => { | ||
return <S.VS>VS</S.VS>; | ||
}; | ||
|
||
export default VS; |
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,14 @@ | ||
import MatchInfoBody from './MatchInfoBody'; | ||
import MatchInfoTitle from './MatchInfoTitle'; | ||
import { HomeStyles as S } from '@/Components/Home/HomeStyles'; | ||
|
||
const MatchInfo = () => { | ||
return ( | ||
<S.MatchInfo> | ||
<MatchInfoTitle /> | ||
<MatchInfoBody /> | ||
</S.MatchInfo> | ||
); | ||
}; | ||
|
||
export default MatchInfo; |
20 changes: 20 additions & 0 deletions
20
FE/baseball/src/Components/Home/MatchInfo/MatchInfoBody.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,20 @@ | ||
import { HomeStyles as S } from '@/Components/Home/HomeStyles'; | ||
import MatchBox from './MatchBox/MatchBox'; | ||
|
||
const MatchInfoBody = () => { | ||
return ( | ||
<S.ScrollMask> | ||
<S.MatchInfoBody> | ||
<MatchBox /> | ||
<MatchBox /> | ||
<MatchBox /> | ||
<MatchBox /> | ||
<MatchBox /> | ||
<MatchBox /> | ||
<MatchBox /> | ||
</S.MatchInfoBody> | ||
</S.ScrollMask> | ||
); | ||
}; | ||
|
||
export default MatchInfoBody; |
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 @@ | ||
import { HomeStyles as S } from '@/Components/Home/HomeStyles'; | ||
|
||
const MatchInfoTitle = () => { | ||
return <S.MatchInfoTitle>⚾ Choose the Game ⚾︎</S.MatchInfoTitle>; | ||
}; | ||
|
||
export default MatchInfoTitle; |
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,14 @@ | ||
import GameTitle from '@/Components/Intro/GameTitle'; | ||
import { IntroStyles as S } from '@/Components/Intro/IntroStyles'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
const GameStartButton = () => { | ||
return ( | ||
<Link to="/home"> | ||
<S.GameStartButton> | ||
<GameTitle /> | ||
</S.GameStartButton> | ||
</Link> | ||
); | ||
}; | ||
export default GameStartButton; |
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,12 @@ | ||
import { IntroStyles as S } from '@/Components/Intro/IntroStyles'; | ||
|
||
const GameTitle = () => { | ||
return ( | ||
<S.GameTitle> | ||
Team illy'swing BASEBALL GAME!!! <br /> | ||
comming soon... | ||
</S.GameTitle> | ||
); | ||
}; | ||
|
||
export default GameTitle; |
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,12 @@ | ||
import { IntroStyles as S } from '@/Components/Intro/IntroStyles'; | ||
import GameStartButton from '@/Components/Intro/GameStartButton'; | ||
|
||
const Intro = () => { | ||
return ( | ||
<S.Intro> | ||
<GameStartButton /> | ||
</S.Intro> | ||
); | ||
}; | ||
|
||
export default Intro; |
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,37 @@ | ||
import styled from 'styled-components'; | ||
import * as CS from '@/Styles/CommonStyles'; | ||
import theme from '@/Styles/theme'; | ||
|
||
const IntroStyles = { | ||
Intro: styled(CS.BOX.FLEX_CENTER_BOX)` | ||
background: #222; | ||
width: 1440px; | ||
height: 1080px; | ||
color: ${theme.COLOR.DEFAULT}; | ||
`, | ||
|
||
GameTitle: styled.div` | ||
text-align: center; | ||
`, | ||
|
||
GameStartButton: styled(CS.BOX.FLEX_CENTER_BOX)` | ||
width: 650px; | ||
height: 100px; | ||
padding: 20px; | ||
border: 1px solid #fff; | ||
border-radius: 10px; | ||
cursor: pointer; | ||
font-size: 30px; | ||
transition: all ease-in-out 0.4s; | ||
font-weight: 700; | ||
:hover { | ||
background: #333; | ||
} | ||
:active { | ||
background: #111; | ||
} | ||
`, | ||
}; | ||
|
||
export { IntroStyles }; |
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 @@ | ||
export { default as Home } from '@/Components/Home/Home'; |
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 @@ | ||
export { default as Inrto } from '@/Components/Intro/Intro'; |
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,18 @@ | ||
import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom'; | ||
import { Inrto } from '@/Routes/Intro'; | ||
import { Home } from '@/Routes/Home'; | ||
|
||
const Router = () => { | ||
return ( | ||
<BrowserRouter> | ||
<Route exact path="/" component={Inrto} /> | ||
<Switch> | ||
<Route path="/home" component={Home} /> | ||
{/* <Route path="/game" component={Game} /> */} | ||
<Redirect from="*" to="/" /> | ||
</Switch> | ||
</BrowserRouter> | ||
); | ||
}; | ||
|
||
export default Router; |
Oops, something went wrong.