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

πŸ’„ κΈ€μž‘μ„± νŽ˜μ΄μ§€ UIμΆ”κ°€ #44

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
79 changes: 79 additions & 0 deletions src/pageLayout/Epigram/AddEpigram.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import Header from '@/components/Header/Header';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import Label from '@/components/ui/label';
import { RadioGroup, RadioGroupItem } from '@/components/ui/radio-group';
import { Textarea } from '@/components/ui/textarea';

function AddEpigram() {
return (
<>
<Header icon='search' routerPage='/search' isLogo insteadOfLogo='' isProfileIcon isShareIcon={false} isButton={false} textInButton='' disabled={false} onClick={() => {}} />
<div className='border-t-2 w-full flex flex-col justify-center items-center'>
<form className='flex flex-col justify-center item-center gap-8 w-[312px] md:w-[384px] lg:w-[640px] py-6'>
<div className='flex flex-col gap-2 lg:gap-4 h-44 lg:h-52'>
<Label htmlFor='content' className='text-semibold lg:text-2xl text-black-600'>
λ‚΄μš©
<span className='text-state-error'>*</span>
</Label>
<Textarea className='h-[132px] lg:h-[148px] lg:text-xl border-blue-300 border-2 rounded-xl resize-none p-2' name='content' id='content' placeholder='500자 μ΄λ‚΄λ‘œ μž…λ ₯ν•΄μ£Όμ„Έμš”.' />
</div>
<div className='flex flex-col gap-2 lg:gap-4'>
<Label className='text-semibold lg:text-2xl text-black-600'>
μ €μž
<span className='text-state-error'>*</span>
</Label>
<RadioGroup>
<div className='flex gap-2'>
<div className='flex items-center space-x-2 text-xl'>
<RadioGroupItem value='directly' id='directly' />
<Label htmlFor='directly' className='font-medium lg:text-xl'>
직접 μž…λ ₯
</Label>
</div>
<div className='flex items-center space-x-2'>
<RadioGroupItem value='unknown' id='unknown' />
<Label htmlFor='unknown' className='font-medium lg:text-xl'>
μ•Œ 수 μ—†μŒ
</Label>
</div>
<div className='flex items-center space-x-2 text-xl'>
<RadioGroupItem value='me' id='me' />
<Label htmlFor='me' className='font-medium lg:text-xl'>
본인
</Label>
</div>
</div>
</RadioGroup>
<Input className='w-full h-11 lg:h-16 lg:text-2xl border-blue-300 border-2 rounded-xl p-2' id='authorName' name='authorName' type='text' placeholder='μ €μž 이름 μž…λ ₯' />
</div>
<fieldset className='flex flex-col gap-2 lg:gap-4'>
<legend className='text-semibold lg:text-2xl text-black-600'>좜처</legend>
<div className='flex flex-col gap-2 lg:gap-4'>
<Input className='h-11 lg:h-16 lg:text-2xl border-blue-300 border-2 rounded-xl p-2' id='sourceTitle' name='sourceTitle' type='text' placeholder='좜처 제λͺ© μž…λ ₯' aria-label='좜처 제λͺ©' />
<Input
className='h-11 lg:h-16 lg:text-2xl border-blue-300 border-2 rounded-xl p-2'
id='sourceUrl'
name='sourceUrl'
type='url'
placeholder='URL (ex.http://www.website.com)'
aria-label='좜처 URL'
/>
</div>
</fieldset>
<div className='flex flex-col gap-2 lg:gap-4'>
<Label htmlFor='tags' className='text-semibold lg:text-2xl text-black-600'>
νƒœκ·Έ
</Label>
<Input className='h-11 lg:h-16 lg:text-2xl border-blue-300 border-2 rounded-xl p-2 ' id='tags' name='tags' type='text' placeholder='μž…λ ₯ν•˜μ—¬ νƒœκ·Έ 검색(μ΅œλŒ€10자)' />
</div>
<Button className='h-11 lg:h-16 rounded-xl text-semibold lg:text-2xl bg-blue-300 text-white' type='button'>
μž‘μ„± μ™„λ£Œ
</Button>
</form>
</div>
</>
);
}

export default AddEpigram;
7 changes: 7 additions & 0 deletions src/pages/epigram/add.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import AddEpigram from '@/pageLayout/Epigram/AddEpigram';

function Add() {
return <AddEpigram />;
}

export default Add;
Loading