board.tsx 1.39 KB
Newer Older
백승민's avatar
theme1    
백승민 committed
1
2
3
import React from "react";


Lee Soobeom's avatar
Lee Soobeom committed
4
5
6
7
8
9

function range(start:number, end:number) {
    return (new Array(end - start + 1)).fill(undefined).map((_, i) => i + start);
}

export default function BoardPage() {
Kim, MinGyu's avatar
Kim, MinGyu committed
10
    const imgs = range(1,8); //[1,2,3,4,5,6,7]
백승민's avatar
theme1    
백승민 committed
11
    return (
Lee Soobeom's avatar
Lee Soobeom committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
        <div className="flex flex-col items-center">
            <div className="flex flex-col items-center mt-6">
                <div>
                    `Travel Report's Board`
                </div>
                <div>
                    `여행지 후기를 남겨주세요!`
                </div>
            </div>
            <div className="flex flex-col w-10/12 mt-16 ">
                <div>
                    <div className="bg-gray-500 border-y-2 h-10">
                    Board
                    </div>
                    <div>
Kim, MinGyu's avatar
Kim, MinGyu committed
27
28
                        {imgs.map((img,index) => (
                            <div key={index} className="flex flex-row h-16 divide-x-2 border-2 border-solid ">
Lee Soobeom's avatar
Lee Soobeom committed
29
30
31
32
33
34
35
36
37
38
39
                                <div className="basis-1/12 bg-gray-100">{img}</div>
                                <div className="basis-full">title</div>
                                <div className="basis-3/12">date</div>
                                <div className="basis-2/12">like</div>
                            </div>

                        ))}
                    </div>
                </div>
            </div>
        </div>
백승민's avatar
theme1    
백승민 committed
40
    );
Lee Soobeom's avatar
Lee Soobeom committed
41
}