-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
84 lines (82 loc) · 3.22 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import type { NextPage } from "next";
import Link from "next/link";
import FloatingButton from "@components/floating-button";
import Layout from "@components/layout";
const Community: NextPage = () => {
return (
<Layout hasTabBar title="동네생활">
<div className="space-y-4 divide-y-[2px]">
{[1, 2, 3, 4, 5, 6].map((_, i) => (
<Link key={i} href={`/community/${i}`}>
<a className="flex cursor-pointer flex-col pt-4 items-start">
<span className="flex ml-4 items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800">
동네질문
</span>
<div className="mt-2 px-4 text-gray-700">
<span className="text-orange-500 font-medium">Q.</span> What is
the best mandu restaurant?
</div>
<div className="mt-5 px-4 flex items-center justify-between w-full text-gray-500 font-medium text-xs">
<span>니꼬</span>
<span>18시간 전</span>
</div>
<div className="flex px-4 space-x-5 mt-3 text-gray-700 py-2.5 border-t w-full">
<span className="flex space-x-2 items-center text-sm">
<svg
className="w-4 h-4"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
></path>
</svg>
<span>궁금해요 1</span>
</span>
<span className="flex space-x-2 items-center text-sm">
<svg
className="w-4 h-4"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"
></path>
</svg>
<span>답변 1</span>
</span>
</div>
</a>
</Link>
))}
<FloatingButton href="/community/write">
<svg
className="w-6 h-6"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 113.536 3.536L6.5 21.036H3v-3.572L16.732 3.732z"
></path>
</svg>
</FloatingButton>
</div>
</Layout>
);
};
export default Community;