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

Feature/#6 #20

Merged
merged 78 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
63eb149
feat: 부스 디테일 페이지 와이어프레임 구현 중
eastfilmm May 12, 2024
505d3f0
feat: 디테일 페이지 와이어프레임 구현 중
eastfilmm May 12, 2024
024ab9c
feat: 댓글 등록 폼 스켈레톤
eastfilmm May 12, 2024
16d5804
feat: 부스 상세 페이지 스켈레톤
eastfilmm May 12, 2024
0832d2b
feat: 불필요한 wrapper 제거
eastfilmm May 12, 2024
1de0eab
feat: 환경 설정 (#5)
junyeokk May 12, 2024
6da2d51
feat: 폰트 추가 (#5)
junyeokk May 12, 2024
d05a111
feat: 카운트다운 컴포넌트 구현 (#5)
junyeokk May 12, 2024
f9f537b
feat: 푸터 컴포넌트 공통 컴포넌트 요소들로 변경 (#5)
junyeokk May 12, 2024
13a0849
feat: 폰트 globalstyle 설정 (#5)
junyeokk May 12, 2024
f45aaf1
feat: 메인 페이지 카운트다운 컴포넌트 추가 (#5)
junyeokk May 12, 2024
feb31c2
feat: 버튼 그림자 디자인 추가 (#5)
junyeokk May 12, 2024
af5cea5
feat: 푸터 디자인 (#5)
junyeokk May 12, 2024
30e294d
feat: 텍스트 색 추가 (#5)
junyeokk May 12, 2024
abcdbb1
feat: 카운트다운 훅 구현 (#5)
junyeokk May 12, 2024
1e422e8
feat: 홈페이지 공통 컨테이너 생성 및 스크롤 이동 구현 (#5)
junyeokk May 12, 2024
1d23f42
feat: 바로가기 버튼 컴포넌트 구현 (#5)
junyeokk May 12, 2024
4e80297
feat: 네비게이션 바 내용 변경 (#5)
junyeokk May 12, 2024
7b1089b
fix: 메인 화면 ElementContainer 깨지는 현상
junyeokk May 12, 2024
6c44307
feat: 텍스트 색 추가
Hyoeunkh May 12, 2024
2d4de03
feat: Booth 컴포넌트 구현
Hyoeunkh May 12, 2024
3989901
feat: 부스리스트 페이지 부스 추가
Hyoeunkh May 12, 2024
97d9fd2
refactor: 기존코드 lint 및 코드 포매팅 resolve #7
Hyoeunkh May 12, 2024
0870f15
test: fingerprintJs 테스트
toothlessdev May 12, 2024
f0cebb2
style: visitorId 위치 수정
toothlessdev May 12, 2024
eb80ec8
feat: 구글 애널리틱스 삽입
junyeokk May 12, 2024
034464f
feat: fingerprint 설정 (#13)
junyeokk May 12, 2024
2920914
fix: 카운트다운 글자 크기 조정 (#13)
junyeokk May 12, 2024
417548e
fix: 카운트다운 container padding 조정 (#13)
junyeokk May 12, 2024
5f61255
fix: Navigation Bar 이미지 수정, 클릭 시 루트로 이동, 엘리먼트 클릭 시 링크 이동 (#13)
junyeokk May 12, 2024
8a3ea0c
fix: 메인 페이지 컨테이너 width 조정 (#13)
junyeokk May 12, 2024
d515325
fix: 푸터 내 글자 및 여백 크기 조정 (#13)
junyeokk May 12, 2024
548519b
fix: 축제 시작 날짜 크기 조정 (#13)
junyeokk May 12, 2024
e2a229a
fix: deploy 에러 수정
junyeokk May 12, 2024
4628b6a
fix: 배포 시 라우팅 문제 수정
junyeokk May 12, 2024
de9f4fb
fix: Navigation bar 배포 시 라우팅 안 되는 현상 해결
junyeokk May 12, 2024
d801072
fix: Navigation bar 요소 클릭 시 자동으로 메뉴 바 닫히도록 수정
junyeokk May 12, 2024
394989d
fix: env 불러오지 못 하는 현상 해결
junyeokk May 12, 2024
6cf024e
refactor: 코드 줄 간격
junyeokk May 12, 2024
22216b1
feat: Text 공통 디자인 xxs 추가, 기존 xl -> xxl로 변경, 새로운 xl 추가 (#9)
junyeokk May 13, 2024
d6a23da
fix: HomePage default export로 변경 (#9)
junyeokk May 13, 2024
a98600c
fix: 카운트다운 폰트 크기 변경
junyeokk May 13, 2024
52ef2eb
feat: 카드 컴포넌트 구현 (#9)
junyeokk May 13, 2024
ca7c1aa
feat: 만든이들 페이지 구현 (#9)
junyeokk May 13, 2024
5140220
refactor: linting
junyeokk May 13, 2024
1ccaf44
deploy: github actions secret key
junyeokk May 13, 2024
d53634e
fix: 환경변수 적용되지 않는 현상
junyeokk May 13, 2024
b1f007f
fix: 구글 애널리틱스
junyeokk May 13, 2024
6938282
style: 메인 레이아웃에 padding-top 추가
Hyoeunkh May 14, 2024
e9f1399
feat: paragraph 색 추가
Hyoeunkh May 14, 2024
a7f2d36
fix: 불필요한 코드 제거
Hyoeunkh May 14, 2024
b55fd6c
feat: 게스트 컴포넌트 구현
Hyoeunkh May 14, 2024
85b2848
feat: 공연 날짜 컴포넌트 구현
Hyoeunkh May 14, 2024
2cad248
feat: 스페셜게스트 페이지 구현
Hyoeunkh May 14, 2024
6bde2f3
feat: 게스트 사진 추가
Hyoeunkh May 14, 2024
2e8cedd
refactor: 기존코드 lint 및 코드 포매팅 resolve #8
Hyoeunkh May 14, 2024
c46a54f
fix: 게스트 이미지 모듈로 사용
Hyoeunkh May 14, 2024
591410e
fix: 만든이들 페이지 기본 탑 마진 삭제
junyeokk May 14, 2024
84326c7
fix: 메인 페이지만 상단 패딩 0px로 변경
junyeokk May 14, 2024
04ab0e9
fix: 링크 클릭 시 이전 화면에서의 스크롤이 처음으로 돌아가지 않고 지속되는 현상 해결
junyeokk May 14, 2024
8fa74b1
docs: 텍스트 변경
junyeokk May 14, 2024
cf2d6d8
fix: 폰트 pretendard로 설정
junyeokk May 14, 2024
3e6e004
fix: special guest 텍스트 상단 마진 조정
junyeokk May 14, 2024
d58801d
feat: 스페셜게스트 페이지 배경 이미지 추가
Hyoeunkh May 14, 2024
bdc518a
style: 글자 크기 및 색깔 조정
Hyoeunkh May 14, 2024
4ed1952
refator: 기존 코드 lint 및 코드 포매팅
Hyoeunkh May 14, 2024
8e2defe
feat: pagination 컴포넌트 교체
eastfilmm May 15, 2024
a62fad1
feat: Heart 컴포넌트 구현
Hyoeunkh May 16, 2024
9d28a3b
feat: 부스 세부 페이지 구현
Hyoeunkh May 16, 2024
5a6618b
feat: 좋아요 likable 옵션 추가
Hyoeunkh May 16, 2024
898200a
feat: BoothInfo 구현
Hyoeunkh May 16, 2024
43356b5
feat: CommentInfo 구현
Hyoeunkh May 16, 2024
d9ee27e
feat: 댓글 컴포넌트 구현
Hyoeunkh May 16, 2024
75cc3a9
style: 전송 이미지 추가
Hyoeunkh May 16, 2024
a62aac2
fix: 댓글 입력창 선택 시 확대되는 버그 수정
Hyoeunkh May 16, 2024
70d451b
fix: 사용자명, 비밀번호 컴포넌트 제거
Hyoeunkh May 16, 2024
4c0543e
refator: 기존 코드 lint 및 코드 포매팅 resolve#6
Hyoeunkh May 16, 2024
fa6200e
Merge branch 'dev' into feature/#6
toothlessdev May 16, 2024
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
6 changes: 5 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
<head>
<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" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0 maximum-scale=1.0,
user-scalable=0"
/>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-8Y5Z29FBSV"></script>
<script>
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"react-dom": "^18.2.0",
"react-icons": "^5.2.0",
"react-redux": "^9.1.2",
"react-router-dom": "^6.23.0",
"react-router-dom": "^6.23.1",
"styled-components": "^6.1.8",
"vite-plugin-html": "^3.2.2",
"vite-tsconfig-paths": "^4.3.2"
Expand Down
Binary file added src/assets/send.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 0 additions & 18 deletions src/components/display/Booth.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,3 @@ export const Index = styled.div`
color: #fff;
background-color: #9874ff;
`;

export const Heart = styled.div`
position: absolute;
right: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #fff;

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 5px;
font-size: 12px;
line-height: 8px;
color: #9874ff;
`;
17 changes: 7 additions & 10 deletions src/components/display/Booth.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
import { TiHeartFullOutline } from "react-icons/ti";

import { Variants } from "framer-motion";

import { Text } from "@/components/typography/Text";

import { BoothList, BoothLink, Index, Heart } from "./Booth.styled";
import { BoothList, BoothLink, Index } from "./Booth.styled";
import { Heart } from "./Heart";

interface IBooth {
index: number;
name: string;
heart: number;
num: number;
likable: boolean;
}
const itemVariants: Variants = {
hidden: { opacity: 0, y: 10 },
visible: { opacity: 1, y: 0 },
};

export const Booth: React.FC<IBooth> = ({ index, name, heart }) => {
export const Booth: React.FC<IBooth> = ({ index, name, num, likable }) => {
return (
<BoothList variants={itemVariants}>
<BoothLink href="#">
<BoothLink href={`booth/${index + 1}`}>
<Index>{index + 1}</Index>
<Text size="m" weight="bold" variant="#5D5A88">
{name}
</Text>
<Heart>
<TiHeartFullOutline size={24} />
{heart}
</Heart>
<Heart num={num} likable={likable} />
</BoothLink>
</BoothList>
);
Expand Down
45 changes: 45 additions & 0 deletions src/components/display/BoothInfo.styled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import styled from "styled-components";

export const ImgWrapper = styled.div`
overflow: hidden;
width: 90%;
aspect-ratio: 1 / 1;
border-radius: 20px;
margin-bottom: 30px;
`;

export const BoothImg = styled.img`
width: 100%;
height: 100%;
object-fit: cover;
object-position: 50% 50%;
`;

export const InfoWrapper = styled.div`
display: flex;
flex-direction: column;
gap: 26px;
width: 90%;
`;

export const BoothName = styled.div`
background-color: #e7e6f2;
border-radius: 20px;
padding: 15px 20px;
display: flex;
align-items: center;
position: relative;
flex-grow: 3;
div {
position: absolute;
right: 10px;
}
`;

export const BoothDetail = styled.div`
padding: 0px 10px;
hr {
margin: 38px 0px;
border: 1px solid #dddddd;
}
`;
39 changes: 39 additions & 0 deletions src/components/display/BoothInfo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import React from "react";

import mainPageImage from "@/assets/main_page.jpg";

import { Text } from "../typography/Text";
import { BoothDetail, BoothImg, BoothName, ImgWrapper, InfoWrapper } from "./BoothInfo.styled";
import { Heart } from "./Heart";

//zustand 로 refactor 필요
const BoothInfo: React.FC = () => {
const boothdetail =
"멋쟁이사자처럼 주점에서는 노래방 마이크로 김대건이 노래를 하고 춤도 추고 히어로 서사에 대해 설명할 것입니다.";
const boothName = "멋쟁이 사자처럼 주점";
const num = 365;

return (
<>
<ImgWrapper>
<BoothImg src={mainPageImage} />
</ImgWrapper>
<InfoWrapper>
<BoothName>
<Text size="20px" weight="bold" variant="#3F3A6C">
{boothName}
</Text>
<Heart num={num} likable={true} />
</BoothName>
<BoothDetail>
<Text size="s" weight="normal">
{boothdetail}
</Text>
<hr />
</BoothDetail>
</InfoWrapper>
</>
);
};

export default BoothInfo;
18 changes: 18 additions & 0 deletions src/components/display/Comment.styled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import styled from "styled-components";

export const CommentContent = styled.div`
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;

p {
display: flex;
}
`;

export const CommentInfoWrapper = styled.div`
display: flex;
gap: 8px;
align-items: flex-end;
`;
31 changes: 31 additions & 0 deletions src/components/display/Comment.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { FaRegTrashAlt } from "react-icons/fa";

import { Paragraph } from "../typography/Paragraph";
import { Text } from "../typography/Text";
import { CommentContent, CommentInfoWrapper } from "./Comment.styled";
import { IComment } from "./CommentInfo";

//zustand로 refactor 필요

const Comment = ({ name, time, content, deletable }: IComment) => {
return (
<>
<CommentContent>
<Text size="m" weight="bold" variant="#3F3A6C">
<CommentInfoWrapper>
{name}
<Text size="xs" weight="normal" variant="#A3A3A3">
{time}
</Text>
</CommentInfoWrapper>
</Text>
{deletable ? <FaRegTrashAlt color="#3F3A6C" size={"24px"} /> : null}
</CommentContent>
<Paragraph size="s" weight="normal">
{content}
</Paragraph>
</>
);
};

export default Comment;
27 changes: 27 additions & 0 deletions src/components/display/CommentInfo.styled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import styled from "styled-components";

export const CommentWrapper = styled.div`
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 90%;
gap: 40px;
`;
export const Title = styled.div`
display: flex;
gap: 4px;
align-items: flex-end;
`;
export const CommentList = styled.div`
display: flex;
flex-direction: column;
gap: 15px;
width: 95%;
div > hr {
margin-top: 38px;
border: 1px solid #dddddd;
}
`;

export const CommentContainer = styled.div``;
56 changes: 56 additions & 0 deletions src/components/display/CommentInfo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import React, { useState } from "react";

import { Pagination } from "@/components/navigation/Pagination";

import { Text } from "../typography/Text";
import Comment from "./Comment";
import { CommentList, CommentWrapper, CommentContainer, Title } from "./CommentInfo.styled";

export interface IComment {
name: string;
time: string;
content: string;
deletable: boolean;
}

const CommentInfo: React.FC = () => {
const [commentnum] = useState<number>(221);

const comments: IComment[] = [
{ name: "User1", time: "2024-05-13", content: "첫 번째 댓글입니다.", deletable: false },
{ name: "User2", time: "2024-05-14", content: "두 번째 댓글입니다.", deletable: true },
{ name: "User3", time: "2024-05-15", content: "세 번째 댓글입니다.", deletable: false },
];

return (
<CommentWrapper>
<Text size="20px" weight="bold">
<Title>
댓글
<Text size="m" weight="bold" variant="#3F3A6C">
{commentnum}
</Text>
</Title>
</Text>
<CommentList>
{comments.map((comment, index) => (
<div>
<CommentContainer>
<Comment
key={index}
name={comment.name}
time={comment.time}
content={comment.content}
deletable={comment.deletable}
/>
</CommentContainer>
<hr />
</div>
))}
</CommentList>
<Pagination />
</CommentWrapper>
);
};

export default CommentInfo;
22 changes: 22 additions & 0 deletions src/components/display/Heart.styled.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import styled from "styled-components";

interface IHeart {
likable: boolean;
}
export const HeartWrapper = styled.div<IHeart>`
position: absolute;
right: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: #fff;

display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 5px;
font-size: 12px;
line-height: 8px;
color: ${(props) => (props.likable ? "#9874FF" : "#A4A4A4")};
`;
Loading
Loading