-
Notifications
You must be signed in to change notification settings - Fork 1
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 #167 from GDSC-PKNU-21-22/dev
부리미 0.24v 배포
- Loading branch information
Showing
32 changed files
with
1,441 additions
and
491 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
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,61 @@ | ||
{ | ||
"name": "부림이", | ||
"short_name": "부림이", | ||
"start_url": "/", | ||
"display": "fullscreen", | ||
"background_color": "#ffffff", | ||
"lang": "en", | ||
"scope": "/", | ||
"orientation": "portrait", | ||
"theme_color": "#ffffff", | ||
"icons": [ | ||
{ | ||
"src": "icons/icon-48x48.png", | ||
"sizes": "48x48", | ||
"type": "image/png", | ||
"purpose": "any maskable" | ||
}, | ||
{ | ||
"src": "icons/icon-72x72.png", | ||
"sizes": "72x72", | ||
"type": "image/png", | ||
"purpose": "any maskable" | ||
}, | ||
{ | ||
"src": "icons/icon-96x96.png", | ||
"sizes": "96x96", | ||
"type": "image/png", | ||
"purpose": "any maskable" | ||
}, | ||
{ | ||
"src": "icons/icon-128x128.png", | ||
"sizes": "128x128", | ||
"type": "image/png", | ||
"purpose": "any maskable" | ||
}, | ||
{ | ||
"src": "icons/icon-144x144.png", | ||
"sizes": "144x144", | ||
"type": "image/png", | ||
"purpose": "any maskable" | ||
}, | ||
{ | ||
"src": "icons/icon-152x152.png", | ||
"sizes": "152x152", | ||
"type": "image/png", | ||
"purpose": "any maskable" | ||
}, | ||
{ | ||
"src": "icons/icon-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image/png", | ||
"purpose": "any maskable" | ||
}, | ||
{ | ||
"src": "icons/icon-384x384.png", | ||
"sizes": "384x384", | ||
"type": "image/png" | ||
}, | ||
{ "src": "icons/icon-512x512.png", "sizes": "512x512", "type": "image/png" } | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export type BuildingType = 'A' | 'B' | 'C' | 'D' | 'E'; | ||
|
||
export interface PKNUBuilding { | ||
readonly buildingNumber: string; | ||
readonly buildingName: string; | ||
readonly latlng: [number, number]; | ||
} | ||
|
||
export interface Location { | ||
LAT: number; | ||
LNG: number; | ||
} |
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,33 +1,30 @@ | ||
import FooterTab from '@components/FooterTab'; | ||
import Header from '@components/Header'; | ||
import styled from '@emotion/styled'; | ||
import Announcement from '@pages/Announcement'; | ||
import BodyLayout from '@pages/BodyLayout'; | ||
import Home from '@pages/Home'; | ||
import MajorDecision from '@pages/MajorDecision'; | ||
import Map from '@pages/Map'; | ||
import My from '@pages/My'; | ||
import { Routes, Route } from 'react-router-dom'; | ||
import { Routes, Route, useLocation } from 'react-router-dom'; | ||
|
||
const App = () => { | ||
const location = useLocation(); | ||
return ( | ||
<> | ||
<Header /> | ||
<Body> | ||
<Routes> | ||
{location.pathname !== '/map' && <Header />} | ||
<Routes> | ||
<Route element={<BodyLayout />}> | ||
<Route path="/" element={<Home />} /> | ||
<Route path="/announcement/*" element={<Announcement />} /> | ||
<Route path="/my" element={<My />} /> | ||
<Route path="/map" element={<Map />} /> | ||
<Route path="/major-decision/*" element={<MajorDecision />} /> | ||
</Routes> | ||
</Body> | ||
<Route path="/my" element={<My />} /> | ||
</Route> | ||
<Route path="/map" element={<Map />} /> | ||
</Routes> | ||
<FooterTab /> | ||
</> | ||
); | ||
}; | ||
|
||
export default App; | ||
|
||
const Body = styled.div` | ||
padding: 8.5vh 0 8.5vh 0; | ||
`; |
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,50 @@ | ||
import styled from '@emotion/styled'; | ||
import { THEME } from '@styles/ThemeProvider/theme'; | ||
import { MouseEventHandler } from 'react'; | ||
|
||
interface Props { | ||
isOn: boolean; | ||
changeState: MouseEventHandler<HTMLElement>; | ||
animation: boolean; | ||
} | ||
|
||
interface Circle { | ||
isOn: boolean; | ||
animation: boolean; | ||
} | ||
|
||
const ToggleButton = (props: Props) => { | ||
const { isOn, changeState, animation } = props; | ||
|
||
return ( | ||
<Button onClick={changeState} isOn={isOn} animation={animation}> | ||
<Circle isOn={isOn} animation={animation} /> | ||
</Button> | ||
); | ||
}; | ||
|
||
export default ToggleButton; | ||
|
||
const Button = styled.button<Circle>` | ||
position: relative; | ||
border: none; | ||
width: 3.2rem; | ||
height: 1.8rem; | ||
transition: ${(prop) => (prop.animation ? 'all 0.3s ease-in-out' : 'none')}; | ||
background-color: ${(prop) => (prop.isOn ? THEME.PRIMARY : THEME.BACKGROUND)}; | ||
border-radius: 1rem; | ||
`; | ||
|
||
const Circle = styled.div<Circle>` | ||
position: absolute; | ||
border-radius: 50%; | ||
width: 1.2rem; | ||
height: 1.2rem; | ||
transition: ${(prop) => (prop.animation ? 'all 0.3s ease-in-out' : 'none')}; | ||
background-color: #f5f5f5; | ||
top: 0.3rem; | ||
left: ${(prop) => (prop.isOn ? '1.7rem' : '0.4rem')}; | ||
`; |
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
Oops, something went wrong.