-
Notifications
You must be signed in to change notification settings - Fork 1
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
assignment: 한슬희 #1
Open
hanseulhee
wants to merge
10
commits into
dogVelopers:main
Choose a base branch
from
hanseulhee:assignment/06
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3d8326e
feat: install npm, emotion
hanseulhee 13fc08c
env: add img files
hanseulhee 4799a1b
feat: apply nav
hanseulhee 4a2f474
feat: apply comment component
hanseulhee 1368179
feat: apply Card component
hanseulhee 1d182fc
feat: apply Inform component
hanseulhee feeab8b
feat: apply components
hanseulhee bc162b2
docs: Update README
hanseulhee 8801337
delete: optional chaining
hanseulhee ec9bac9
feat: 피드백 수정
hanseulhee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,69 @@ | ||
/** @jsxImportSource @emotion/react */ | ||
|
||
import { css } from "@emotion/react"; | ||
import dogvelopers from "../image/dogvelopers.png"; | ||
|
||
function Card() { | ||
return ( | ||
<div css={cardSizeWrapper}> | ||
<div css={imgSizeWrapper}> | ||
<img src={dogvelopers} css={cardImg} alt="img" /> | ||
</div> | ||
<div css={summaryWrapper}> | ||
<span css={activityName}>🐶 개발자들</span> | ||
<div css={category}>동아리</div> | ||
<span css={organization}>성공회대학교</span> | ||
<span>2022/03/02 ~ </span> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Card; | ||
|
||
const cardSizeWrapper = css` | ||
display: flex; | ||
justify-content: center; | ||
height: 13.4rem; | ||
padding-right: 4rem; | ||
box-shadow: 0px 0px 3px 0px rgb(213, 213, 213); | ||
cursor: pointer; | ||
`; | ||
|
||
const imgSizeWrapper = css` | ||
width: 200px; | ||
height: 200px; | ||
`; | ||
const cardImg = css` | ||
width: 100%; | ||
height: 100%; | ||
`; | ||
|
||
const summaryWrapper = css` | ||
display: flex; | ||
flex-direction: column; | ||
font-weight: 300; | ||
font-size: 1rem; | ||
`; | ||
|
||
const activityName = css` | ||
font-size: 1.1rem; | ||
margin: 0.6rem 0; | ||
`; | ||
|
||
const category = css` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border-radius: 4px; | ||
width: fit-content; | ||
height: auto; | ||
padding: 0.05rem; | ||
font-size: 0.8rem; | ||
background-color: #eee0da; | ||
margin: 0.6rem 0; | ||
`; | ||
|
||
const organization = css` | ||
margin-bottom: 0.2rem; | ||
`; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fit-content로 width 속성값을 설정하는 것을 아직 한 번도 사용을 해보지 않았는데,
슬희님 만드신 거 보면서 저도 꼭 사용을 해봐야겠다는 생각이 들었습니다!