-
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 #302 from GDSC-PKNU-Official/dev
부림이 0.4.3v 배포
- Loading branch information
Showing
133 changed files
with
2,233 additions
and
1,387 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
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.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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,5 @@ | ||
import { modals } from '@hooks/useModals'; | ||
|
||
export type Modals = | ||
| Array<{ | ||
Component: (typeof modals)[keyof typeof modals]; | ||
props: object; | ||
Component: React.ReactElement<{ chidren: React.ReactNode }>; | ||
}> | ||
| []; |
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
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 http from '@apis/http'; | ||
import { SERVER_URL } from '@config/index'; | ||
|
||
const postSuggestion = async (value: string | undefined) => { | ||
await http.post( | ||
`${SERVER_URL}/api/suggestion`, | ||
{ | ||
content: value, | ||
}, | ||
{ | ||
headers: { | ||
'Content-Type': 'application/json', | ||
}, | ||
}, | ||
); | ||
}; | ||
|
||
export default postSuggestion; |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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,93 +1,96 @@ | ||
import Icon from '@components/Icon'; | ||
import { css } from '@emotion/react'; | ||
import styled from '@emotion/styled'; | ||
import useMajor from '@hooks/useMajor'; | ||
import { THEME } from '@styles/ThemeProvider/theme'; | ||
import { AnnounceItem } from '@type/announcement'; | ||
import openLink from '@utils/router/openLink'; | ||
|
||
interface AnnounceCardProps extends AnnounceItem { | ||
pinned?: boolean; | ||
author?: string; | ||
} | ||
|
||
const AnnounceCard = ({ | ||
title, | ||
link, | ||
uploadDate, | ||
pinned = false, | ||
author, | ||
}: AnnounceCardProps) => { | ||
const onClick = () => { | ||
window.open(link, '_blank'); | ||
}; | ||
const { major } = useMajor(); | ||
|
||
uploadDate = uploadDate.slice(2); | ||
|
||
return ( | ||
<Card onClick={onClick} data-testid="card"> | ||
<Card onClick={() => openLink(link)} data-testid="card"> | ||
<ContentContainer> | ||
{pinned && <Icon kind="speaker" color={THEME.PRIMARY} />} | ||
<AnnounceTitle pinned={pinned}>{title}</AnnounceTitle> | ||
<VertialSeparator | ||
css={css` | ||
border-left: 1px solid gray; | ||
height: 12px; | ||
margin: 0 5px; | ||
`} | ||
/> | ||
<AnnounceDate>{uploadDate}</AnnounceDate> | ||
<AnnounceTitle>{title}</AnnounceTitle> | ||
<SubContent> | ||
<AnnounceDate>20{uploadDate}</AnnounceDate> | ||
<VertialBoundaryLine /> | ||
<Source>{author ? author : major}</Source> | ||
</SubContent> | ||
</ContentContainer> | ||
<HorizonBoundaryLine /> | ||
</Card> | ||
); | ||
}; | ||
|
||
export default AnnounceCard; | ||
|
||
const Card = styled.div` | ||
height: 28px; | ||
padding: 10px; | ||
min-height: 50px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
color: ${THEME.TEXT.BLACK}; | ||
transition: 0.3s; | ||
&:active { | ||
transform: scale(0.95); | ||
opacity: 0.6; | ||
} | ||
`; | ||
|
||
const ContentContainer = styled.div` | ||
padding: 20px 0 20px 0; | ||
display: flex; | ||
align-items: center; | ||
line-height: 1.5; | ||
flex-direction: column; | ||
gap: 10px; | ||
`; | ||
|
||
const AnnounceTitle = styled.span<{ pinned: boolean }>` | ||
const AnnounceTitle = styled.span` | ||
display: flex; | ||
align-items: center; | ||
flex: 9; | ||
font-size: 15px; | ||
font-weight: ${({ pinned }) => (pinned ? 'bold' : 500)}; | ||
margin-left: ${({ pinned }) => (pinned ? '' : '28px')}; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
&: hover { | ||
cursor: pointer; | ||
} | ||
transition: 0.3s; | ||
&:active { | ||
transform: scale(0.95); | ||
opacity: 0.6; | ||
} | ||
font-size: 16px; | ||
font-weight: 500; | ||
`; | ||
|
||
const VertialSeparator = styled.div` | ||
const VertialBoundaryLine = styled.div` | ||
border-left: 1px solid gray; | ||
height: 12px; | ||
margin: 0 5px; | ||
`; | ||
|
||
const AnnounceDate = styled.span` | ||
flex: 1; | ||
font-size: 10px; | ||
font-weight: bold; | ||
text-align: end; | ||
font-size: 13px; | ||
white-space: nowrap; | ||
color: ${THEME.TEXT.GRAY}; | ||
padding-right: 5px; | ||
`; | ||
|
||
const HorizonBoundaryLine = styled.div` | ||
border-bottom: 1px solid ${THEME.BACKGROUND}; | ||
`; | ||
|
||
const SubContent = styled.div` | ||
display: flex; | ||
align-items: center; | ||
`; | ||
|
||
const Source = styled.div` | ||
font-size: 13px; | ||
color: gray; | ||
padding-left: 5px; | ||
`; |
Oops, something went wrong.