Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
students
travel
Commits
8272c7c8
Commit
8272c7c8
authored
Jul 29, 2022
by
Lee Soobeom
Browse files
수정
parent
2b496d1c
Changes
2
Show whitespace changes
Inline
Side-by-side
frontend/src/board/board.tsx
View file @
8272c7c8
...
@@ -88,11 +88,11 @@ export default function BoardPage() {
...
@@ -88,11 +88,11 @@ export default function BoardPage() {
</
div
>
</
div
>
<
div
className
=
"sm:overflow-y-auto"
>
<
div
className
=
"sm:overflow-y-auto"
>
<
div
className
=
"whitespace-nowrap flex place-items-center divide-x-2 border-2 border-solid border-y-2 h-10 bg-gradient-to-r from-cyan-500 to-blue-500 "
>
<
div
className
=
"whitespace-nowrap flex place-items-center divide-x-2 border-2 border-solid border-y-2 h-10 bg-gradient-to-r from-cyan-500 to-blue-500 "
>
<
div
className
=
"basis-full"
>
제목
</
div
>
<
div
className
=
"
flex
basis-full
text-xs md:text-lg
"
>
제목
</
div
>
<
div
className
=
"basis-3/12
"
>
게시
날짜
</
div
>
<
div
className
=
"
flex
basis-3/12
text-xs md:text-lg"
>
날짜
</
div
>
<
div
className
=
"basis-
2
/12"
>
조회수
</
div
>
<
div
className
=
"
flex
basis-
3
/12
text-xs md:text-lg
"
>
조회수
</
div
>
</
div
>
</
div
>
<
div
className
=
"whitespace-nowrap"
>
<
div
>
{
posts
?.
map
((
post
,
i
)
=>
(
{
posts
?.
map
((
post
,
i
)
=>
(
<
Post
key
=
{
i
}
post
=
{
post
}
handleClick
=
{
titleHandleClick
}
/>
<
Post
key
=
{
i
}
post
=
{
post
}
handleClick
=
{
titleHandleClick
}
/>
))
}
))
}
...
...
frontend/src/post/post.tsx
View file @
8272c7c8
...
@@ -11,15 +11,17 @@ export type Props = {
...
@@ -11,15 +11,17 @@ export type Props = {
export
default
function
Post
({
handleClick
,
post
}:
Props
)
{
export
default
function
Post
({
handleClick
,
post
}:
Props
)
{
return
(
return
(
<
div
className
=
"flex flex-row h-16 divide-x-2 border-2 border-solid"
>
<
div
className
=
"flex flex-row h-16 divide-x-2 border-2 border-solid"
>
<
div
className
=
"basis-full"
>
<
div
className
=
"basis-full
truncate
"
>
<
button
id
=
{
post
.
_id
}
onClick
=
{
handleClick
}
>
<
button
id
=
{
post
.
_id
}
onClick
=
{
handleClick
}
>
<
Link
to
=
{
`/post/
${
post
.
_id
}
`
}
state
=
{
post
}
>
<
Link
to
=
{
`/post/
${
post
.
_id
}
`
}
state
=
{
post
}
>
{
post
.
title
}
{
post
.
title
}
</
Link
>
</
Link
>
</
button
>
</
button
>
</
div
>
</
div
>
<
div
className
=
"basis-3/12"
>
{
post
.
date
.
slice
(
0
,
10
)
}
</
div
>
<
div
className
=
"basis-3/12 text-xs md:text-lg"
>
<
div
className
=
"basis-2/12"
>
{
post
.
counts
}
</
div
>
{
post
.
date
.
slice
(
0
,
10
)
}
</
div
>
<
div
className
=
"basis-3/12"
>
{
post
.
counts
}
</
div
>
</
div
>
</
div
>
);
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment