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

Frontend #166

Merged
merged 56 commits into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
c1ce6d2
feat. 새로 고침 버튼 개발[#46]
KyuTae98 Nov 13, 2022
c00f8f6
Merge branch 'main' into Frontend
KyuTae98 Nov 13, 2022
9ee1d5e
feat. map component 리팩토링
KyuTae98 Nov 13, 2022
2d90ac3
Merge branch 'main' into Frontend
KyuTae98 Nov 16, 2022
e79dba3
Merge branch 'main' into Frontend
KyuTae98 Nov 16, 2022
997e0b3
feat. 버스페이지 css작업 완료
KyuTae98 Nov 21, 2022
dd7f880
Merge branch 'main' into Frontend
KyuTae98 Nov 21, 2022
b122d9d
Merge branch 'main' into Frontend
KyuTae98 Nov 21, 2022
3d9e5da
Merge branch 'Frontend' of https://github.com/2022-Sejong-Creative-Se…
KyuTae98 Nov 21, 2022
d15e1a8
feat. 입력 폼 변경
KyuTae98 Nov 22, 2022
24bf7ec
Merge branch 'main' into Frontend
KyuTae98 Nov 23, 2022
7cafbbc
Merge branch 'main' into Frontend
KyuTae98 Nov 23, 2022
4f18ff3
feat. 지하철 page생성
KyuTae98 Nov 26, 2022
9763491
Merge branch 'main' into Frontend
KyuTae98 Nov 27, 2022
524fc29
feat. map-slice수정
KyuTae98 Nov 27, 2022
9e8bf92
feat. subway page개발(v1.1)
KyuTae98 Nov 27, 2022
33d4fb1
feat. main화면 bus화면 디자인 변경
KyuTae98 Dec 4, 2022
d2b5db6
feat. 디자인 폰트, 버스 페이지 어느 정도 완성
KyuTae98 Dec 5, 2022
6054379
feat. 지하철 페이지 디자인에 맞춰 개발
KyuTae98 Dec 7, 2022
a8cfae4
Merge branch 'main' into Frontend
KyuTae98 Dec 7, 2022
d88e685
Merge branch 'main' into Frontend
KyuTae98 Dec 7, 2022
7c8c545
feat. 지하철 메뉴
KyuTae98 Dec 7, 2022
b51eb61
feat. 모바일 반응형
KyuTae98 Dec 9, 2022
9f11d3d
Merge branch 'main' into Frontend
KyuTae98 Dec 9, 2022
67604d2
feat. 환승 page개발
KyuTae98 Dec 9, 2022
dfdb1b5
feat. HashRouter로 변경
KyuTae98 Dec 11, 2022
8dc6e8d
Merge branch 'main' into Frontend
KyuTae98 Dec 11, 2022
14d4571
feat. 이모지 + 서버
KyuTae98 Dec 13, 2022
09e4289
Merge branch 'main' into Frontend
KyuTae98 Dec 13, 2022
832f422
feat.지하철 수정
KyuTae98 Dec 13, 2022
671b97b
Merge branch 'Frontend' of https://github.com/2022-Sejong-Creative-Se…
KyuTae98 Dec 13, 2022
e3c1cbf
Merge branch 'main' into Frontend
KyuTae98 Dec 13, 2022
2b106f4
feat. map focusing 수정
KyuTae98 Dec 13, 2022
2e0315f
feat. 휠체어 기능 하기 전 저장
KyuTae98 Dec 13, 2022
822104f
feat. 휠체어 수정 완료
KyuTae98 Dec 13, 2022
dff0ed6
feat. 디테일한 수정
KyuTae98 Dec 13, 2022
c336db0
Update Api.js
KyuTae98 Dec 13, 2022
f2067e2
feat. 약간의 수정
KyuTae98 Dec 13, 2022
d010ffb
Merge branch 'Frontend' of https://github.com/2022-Sejong-Creative-Se…
KyuTae98 Dec 13, 2022
0408743
Merge branch 'main' into Frontend
KyuTae98 Dec 13, 2022
17413e3
feat.폰트, 맵 초기화 수정
KyuTae98 Dec 21, 2022
05c4a0a
Merge branch 'Frontend' of https://github.com/2022-Sejong-Creative-Se…
KyuTae98 Dec 21, 2022
db7ff6d
feat. 최종 수정
KyuTae98 Dec 21, 2022
b5661a7
Merge branch 'main' into Frontend
KyuTae98 Dec 21, 2022
67a2f1c
Update StationItem.js
KyuTae98 Jan 5, 2023
963f24f
Merge branch 'Frontend' of https://github.com/2022-Sejong-Creative-Se…
KyuTae98 Jan 5, 2023
85d55cc
refac: typescript로 Refectoring중
KyuTae98 Sep 13, 2023
19d1d07
feat(front): ts변경 오류 다수 발견
KyuTae98 Oct 11, 2023
5965578
feat(front): gps기반 지도 중심 개발
KyuTae98 Oct 11, 2023
76ce3da
fix(front): 프론트 정리
KyuTae98 Oct 11, 2023
b179900
fix(front): Api 수정
KyuTae98 Oct 12, 2023
732ba68
Merge branch 'main' into Frontend
KyuTae98 Oct 12, 2023
3bae8bf
fix(front): map 변경
KyuTae98 Oct 12, 2023
d8e1e7d
Merge branch 'Frontend' of https://github.com/2022-Sejong-Creative-Se…
KyuTae98 Oct 12, 2023
8e2d793
feat: 간단 퍼블리싱(1)
KyuTae98 Nov 6, 2023
c817b54
feat:menuBar 수정(SVG로 표현)
KyuTae98 Nov 7, 2023
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
Binary file removed Backend/Frontend/creative/public/image/BUS.png
Binary file not shown.
Binary file removed Backend/Frontend/creative/public/image/LEFT.png
Binary file not shown.
Binary file removed Backend/Frontend/creative/public/image/SUBWAY.png
Binary file not shown.
Binary file removed Backend/Frontend/creative/public/image/refresh.png
Binary file not shown.
2 changes: 1 addition & 1 deletion Backend/Frontend/creative/src/component/auth/Api.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from "axios"

export const api = axios.create({
baseURL: "http://34.168.80.42:3000"
baseURL: "http://34.168.80.42:3005"
})

31 changes: 12 additions & 19 deletions Backend/Frontend/creative/src/component/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,26 @@ const StyledHeader = styled.header`
display:flex;
justify-content:space-between;
align-items:center;
position:fixed;
top: 0;
font-family: 'GmarketSansMedium';
font-weight: 700;
font-size: 4vw;
background-color:#FFFFFF;
border-bottom: 2px solid #EBEBEB;
width:95%;
height:15vh;
a{
width:100vw;
min-height:8vh;
.header_home{
font-size:5vw;
color:#000000;
text-decoration:none;
padding-left: 5vw;
}
.sejong{
.header_sejong{
font-family: 'Pretendard-Regular';
font-style: normal;
font-weight: 700;
font-size: 1.8vw;
font-size: 2vw;
padding-right: 5vw;
line-height: 48px;
text-align: center;
color: #5C5454;
}
@media (max-width:500px) {
font-size:8vw;
height:8vh;
.sejong{
font-size: 4vw;
}
}
`

const Header = () => {
Expand All @@ -49,10 +42,10 @@ const Header = () => {
}
return (
<StyledHeader>
<Link onClick={reduxReset} to="/">
<Link className="header_home" onClick={reduxReset} to="/">
타자
</Link>
<p className="sejong">Sejong University</p>
<p className="header_sejong">Sejong University</p>
</StyledHeader>
)
}
Expand Down
8 changes: 4 additions & 4 deletions Backend/Frontend/creative/src/component/map/Mapping.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const Mapping = () => {
const busmode = useSelector((state:RootState) => state.map.busmode)
const subwaymode = useSelector((state:RootState) => state.map.subwaymode)
const {curPosition} = usePosition();

const tmY = curPosition ? curPosition.tmY: position.tmY;
const tmX = curPosition ? curPosition.tmX: position.tmX;
useEffect(() => {
const tmY = curPosition ? curPosition.tmY: position.tmY;
const tmX = curPosition ? curPosition.tmX: position.tmX;
console.log(tmX,tmY);
const container = document.getElementById("map");
const options = {
center: new window.kakao.maps.LatLng(tmY, tmX),
Expand All @@ -36,7 +36,7 @@ const Mapping = () => {
busmapcoordinate(marker, map)
else if (subwaymode)
subwaymapcoordinate(marker, map)
},[])
},[tmX,tmY])

const subwaymapcoordinate = (marker:any, map:any) => {
const markerPosition = new window.kakao.maps.LatLng(parseFloat(String(marker.tmY - 0.0000005)).toFixed(6), parseFloat(String(marker.tmX - 0.0000005)).toFixed(6))
Expand Down
37 changes: 27 additions & 10 deletions Backend/Frontend/creative/src/component/menu/MenuBar.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,46 @@
import React from "react"
import MenuBusButton from "./MenuBusButton.tsx"
import MenuSubwayButton from "./MenuSubwayButton.tsx"
import styled from "styled-components"
import MenuExplan from "./MenuExplan.tsx"

import {ReactComponent as HOME} from "./menuSvg/HOME.svg";
import {ReactComponent as BUS} from "./menuSvg/BUS.svg";
import {ReactComponent as SUBWAY} from "./menuSvg/SUBWAY.svg";
import {ReactComponent as SIGN} from "./menuSvg/SIGN.svg";




const StyleMenuBar = styled.div`
display:flex;
justify-content: space-between;
position: fixed;
bottom: 0;
justify-content: space-evenly;
align-items: center;
width: 100%;
padding-top:5vw;
height: 633px;
height: 8vh;
background-color: #FFD12D;
text-decoration:none;
@media (max-width:500px){
flex-direction: column;
justify-content: space-evenly;
}
`

const StyleButton = styled.button`
background-color: transparent;
border: 0;
.menu_img{
fill: white;
min-height: 4vh;
}
`


const MenuBar = () => {
return (
<StyleMenuBar>
<MenuBusButton />
<MenuExplan />
<MenuSubwayButton />
<StyleButton><HOME fill="white" height="4vh"/></StyleButton>
<StyleButton><BUS fill="white" height="4vh"/></StyleButton>
<StyleButton><SUBWAY fill="white" height="4vh"/></StyleButton>
<StyleButton><SIGN fill="white" height="4vh"/></StyleButton>
</StyleMenuBar>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ a{

const MenuBusButton = () => {
const dispatch = useDispatch();

const initialization = () => {
dispatch(MapActions.initialization())
dispatch(BusActions.initialState())
Expand Down
49 changes: 0 additions & 49 deletions Backend/Frontend/creative/src/component/menu/MenuExplan.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions Backend/Frontend/creative/src/component/menu/MenuHeader.tsx

This file was deleted.

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.
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.
6 changes: 6 additions & 0 deletions Backend/Frontend/creative/src/custom.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module '*.svg' {
import React = require('react')
export const ReactComponent: React.FC<React.SVGProps<SVGSVGElement>>
const src: string
export default src
}
30 changes: 22 additions & 8 deletions Backend/Frontend/creative/src/page/MainPage.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@ body {
margin: 0px;
padding: 0px;
}

.main {
display: flex;
flex-direction: column;
align-items: center;
}

.bottom {
width: 100%;
height: 100vh;
background: rgba(40, 40, 40, 0.8);
}

.main {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
animation: fadein 2s;
-moz-animation: fadein 2s;
/* Firefox */
Expand All @@ -25,6 +22,23 @@ body {
-o-animation: fadein 2s;
/* Opera */
}
.main_detail{
display: flex;
flex-direction: column;
justify-content: space-evenly;
height: 30vh;
}
.main_title{
font-family: 'GmarketSansMedium';
font-weight: 700;
font-size: 2em;
}
.main_explan{
display:flex;
text-align:center;
font-family: 'Pretendard-Regular';
font-size: 1em;
}

@keyframes fadein {
from {
Expand Down
8 changes: 5 additions & 3 deletions Backend/Frontend/creative/src/page/MainPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ const Mainpage = () => {
return (
<div className={classes.main}>
<Header />
<div className={classes.bottom}>
<MenuBar />
</div>
<main className={classes.main_detail}>
<h1 className={classes.main_title}>편리하고 쉽게, 타자.</h1>
<p className={classes.main_explan}>교통약자도 대중교통을 쉽게 탈 수 있을때까지.<br />교통약자에게 필요한 서비스를 제공합니다.</p>
</main>
<MenuBar />
</div>
)
}
Expand Down
3 changes: 2 additions & 1 deletion Backend/Frontend/creative/src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
"skipLibCheck": true,
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"jsx": "react",
"allowImportingTsExtensions": true,
"paths":["**/*"],
"jsx": "react",
"include": ["src/custom.d.ts" ]
}
}