-
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.
Browse files
Browse the repository at this point in the history
[Feat] board item detail 진행 중[1/3]
- Loading branch information
Showing
15 changed files
with
272 additions
and
37 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Stage 1: Build the React app | ||
FROM node:14 AS build | ||
WORKDIR /app | ||
COPY package*.json ./ | ||
RUN npm install | ||
COPY . ./ | ||
RUN npm run build | ||
|
||
# Stage 2: Serve the app with Nginx | ||
FROM nginx:stable-alpine | ||
COPY --from=build /app/build /usr/share/nginx/html | ||
COPY domain.crt /etc/nginx/domain.crt | ||
COPY domain.key /etc/nginx/domain.key | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
EXPOSE 443 | ||
CMD ["nginx", "-g", "daemon off;"] |
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 @@ | ||
server { | ||
listen 80; | ||
server_name semtle.catholic.ac.kr; | ||
|
||
return 301 https://$server_name$request_uri; | ||
} | ||
|
||
server { | ||
listen 443 ssl; | ||
server_name semtle.catholic.ac.kr; | ||
|
||
ssl_certificate /etc/nginx/domain.crt; | ||
ssl_certificate_key /etc/nginx/domain.key; | ||
|
||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
try_files $uri /index.html; | ||
} | ||
} |
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
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.
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,71 @@ | ||
import { ReactComponent as IconHeart } from "../../../assets/images/ic_heartWhite.svg"; | ||
import { IMAGES } from "../../../constants/images"; | ||
import { BoardContentText, BoardTitleText } from "./BoardText"; | ||
import * as W from "./styleBoardItem"; | ||
const IconStyle: React.CSSProperties = { | ||
width: "1.5625rem", | ||
marginTop: "0.81rem", | ||
}; | ||
const lacationIconStyle: React.CSSProperties = { | ||
width: "0.9375rem", | ||
height: "1.25rem", | ||
marginRight: "0.19rem", | ||
}; | ||
const moreIconStyle: React.CSSProperties = { | ||
width: "2.1875rem", | ||
height: "2.1875rem", | ||
}; | ||
const textArr = { | ||
title: "한남동 핫플 카페", | ||
content: | ||
"로제도 다녀간 이번주 핫 한 카페임당 모두들 아인슈페너 시키시기를.... 또간집에서 여기 나오면 나 이제 못가.. 다들 그러기전에 얼른ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd", | ||
tag: ["한남동", "카페", "블랙핑크"], | ||
address: "마포구 마포대로 181 1층 구띠커피와인하우스", | ||
}; | ||
const BoardItem = () => { | ||
const MAX_CONTENT_LENGTH = 100; | ||
const truncatedContent = | ||
textArr.content.length > MAX_CONTENT_LENGTH | ||
? textArr.content.slice(0, MAX_CONTENT_LENGTH) + " ...더보기" | ||
: textArr.content; | ||
return ( | ||
<W.BoardItemBackGournd> | ||
<W.BoardItemBackBox background={IMAGES.groupColorBlue}> | ||
<W.BoardItemTop> | ||
<img src={IMAGES.moreLeft} alt="more" style={moreIconStyle} /> | ||
</W.BoardItemTop> | ||
<W.BoardItemBottom> | ||
<W.BoardItemContentBox> | ||
<BoardTitleText title={textArr.title} /> | ||
<BoardContentText content={truncatedContent} /> | ||
</W.BoardItemContentBox> | ||
<W.BoardItemMenuBox> | ||
<IconHeart fill="#DFF5FF" stroke="#DFF5FF" style={IconStyle} /> | ||
<img src={IMAGES.addLocation} alt="add" style={IconStyle} /> | ||
<img src={IMAGES.myCommentWhite} alt="comment" style={IconStyle} /> | ||
</W.BoardItemMenuBox> | ||
</W.BoardItemBottom> | ||
<W.BoardItemBottomInfo> | ||
<W.BoardItemTagBox> | ||
{textArr.tag.map((idx, item) => ( | ||
<BoardContentText key={idx} content={`#${item}`} /> | ||
))} | ||
</W.BoardItemTagBox> | ||
<W.BoardItemAddreessBox> | ||
<img | ||
src={IMAGES.location} | ||
alt="location" | ||
style={lacationIconStyle} | ||
/> | ||
<BoardContentText content={textArr.address} /> | ||
</W.BoardItemAddreessBox> | ||
<W.BoardItemUserInfoBox> | ||
<W.BoardItemUserInfoProflie proflie={IMAGES.myCommentWhite} /> | ||
<W.BoardItemUserInfoName>rkdgml</W.BoardItemUserInfoName> | ||
</W.BoardItemUserInfoBox> | ||
</W.BoardItemBottomInfo> | ||
</W.BoardItemBackBox> | ||
</W.BoardItemBackGournd> | ||
); | ||
}; | ||
export default BoardItem; |
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 @@ | ||
const titleStyle: React.CSSProperties = { | ||
color: "#FFF", | ||
fontFamily: "Plus Jakarta Sans", | ||
fontSize: "0.75rem", | ||
fontStyle: "normal", | ||
fontWeight: 700, | ||
lineHeight: "normal", | ||
marginBottom: "0.5rem", | ||
}; | ||
const contentStyle: React.CSSProperties = { | ||
color: "#FFF", | ||
fontFamily: "Plus Jakarta Sans", | ||
fontSize: "0.75rem", | ||
fontStyle: "normal", | ||
fontWeight: 400, | ||
lineHeight: "normal", | ||
}; | ||
|
||
export const BoardTitleText = ({ title }: { title: string }) => { | ||
return <div style={titleStyle}>{title}</div>; | ||
}; | ||
|
||
export const BoardContentText = ({ content }: { content: string }) => { | ||
return <div style={contentStyle}>{content}</div>; | ||
}; |
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,92 @@ | ||
import styled from "styled-components"; | ||
|
||
export const BoardItemBackGournd = styled.div` | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
background: rgba(0, 0, 0, 0.2); | ||
z-index: 1000; | ||
`; | ||
export const BoardItemBackBox = styled.div<{ background: string }>` | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
width: 28.875rem; | ||
height: 37.4375rem; | ||
border-radius: 1.25rem; | ||
z-index: 1001; | ||
display: flex; | ||
flex-direction: column; | ||
background: url(${(props) => props.background}) lightgray 50% / cover | ||
no-repeat; | ||
`; | ||
|
||
export const BoardItemTop = styled.div` | ||
display: flex; | ||
justify-content: flex-end; | ||
width: 100%; | ||
padding-right: 1.38rem; | ||
margin-top: 1rem; | ||
`; | ||
export const BoardItemBottom = styled.div` | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
align-items: flex-end; | ||
padding: 1.38rem; | ||
`; | ||
|
||
export const BoardItemContentBox = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
width: 80%; | ||
`; | ||
export const BoardItemMenuBox = styled.div` | ||
width: 20%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: flex-end; | ||
`; | ||
export const BoardItemBottomInfo = styled.div` | ||
width: 100%; | ||
display: flex; | ||
padding: 0.62rem 1.38rem; | ||
flex-direction: column; | ||
`; | ||
export const BoardItemTagBox = styled.div` | ||
width: 100%; | ||
display: flex; | ||
margin-bottom: 0.5rem; | ||
`; | ||
export const BoardItemAddreessBox = styled.div` | ||
display: flex; | ||
align-items: center; | ||
`; | ||
|
||
export const BoardItemUserInfoBox = styled.div` | ||
display: flex; | ||
align-items: center; | ||
margin-top: 0.5rem; | ||
`; | ||
|
||
export const BoardItemUserInfoProflie = styled.div<{ proflie?: string }>` | ||
width: 3.125rem; | ||
height: 3.125rem; | ||
border-radius: 50%; | ||
background: url(${(props) => props.proflie}) lightgray 50% / cover no-repeat; | ||
`; | ||
export const BoardItemUserInfoName = styled.div` | ||
color: #fff; | ||
text-align: center; | ||
font-family: "Plus Jakarta Sans"; | ||
font-size: 1.25rem; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: normal; | ||
margin-left: 0.5rem; | ||
`; |
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,21 +1,24 @@ | ||
export const IMAGES = { | ||
mylocation: require("../assets/images/ic_my_location.png"), | ||
//Logo | ||
logoTripview: require("../assets/images/ic_logo_TRIPVIEW.png"), | ||
searchIcon: require("../assets/images/ic_search.png"), | ||
//Login | ||
GoogleLogin: require("../assets/images/ic_googleLogin.png"), | ||
// Main | ||
groupColorBlue: require("../assets/images/ic_main_menu_group.png"), | ||
groupColorWhite: require("../assets/images/ic_main_menu_group_white.png"), | ||
mylocation: require("../assets/images/ic_my_location.png"), | ||
//Logo | ||
logoTripview: require("../assets/images/ic_logo_TRIPVIEW.png"), | ||
searchIcon: require("../assets/images/ic_search.png"), | ||
//Login | ||
GoogleLogin: require("../assets/images/ic_googleLogin.png"), | ||
// Main | ||
groupColorBlue: require("../assets/images/ic_main_menu_group.png"), | ||
groupColorWhite: require("../assets/images/ic_main_menu_group_white.png"), | ||
|
||
commentBlack: require("../assets/images/ic_comment_black.png"), | ||
heartColor: require("../assets/images/ic_heart_color.png"), | ||
|
||
commentBlack: require("../assets/images/ic_comment_black.png"), | ||
heartColor: require("../assets/images/ic_heart_color.png"), | ||
location: require("../assets/images/ic_location.png"), | ||
addLocation: require("../assets/images/ic_add_location.png"), | ||
moreLeft: require("../assets/images/ic_board_sm_left.png"), | ||
|
||
// My page | ||
myReviewWhite: require("../assets/images/ic_my_review.png"), | ||
myCommentWhite: require("../assets/images/ic_my_comment.png"), | ||
myHeartWhite: require("../assets/images/ic_my_comment_heart.png"), | ||
myRemveWhite: require("../assets/images/ic_user_remove.png"), | ||
} | ||
// My page | ||
myReviewWhite: require("../assets/images/ic_my_review.png"), | ||
myCommentWhite: require("../assets/images/ic_my_comment.png"), | ||
myHeartWhite: require("../assets/images/ic_my_comment_heart.png"), | ||
myRemveWhite: require("../assets/images/ic_user_remove.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