Repository navigation
Expand file tree
/
Copy pathcommunity.html
More file actions
155 lines (153 loc) · 5.43 KB
/
Copy pathcommunity.html
File metadata and controls
155 lines (153 loc) · 5.43 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com?plugins=forms,typography"></script>
<script src="https://unpkg.com/unlazy@0.11.3/dist/unlazy.with-hashing.iife.js" defer init></script>
<script type="text/javascript">
window.tailwind.config = {
darkMode: ['class'],
theme: {
extend: {
colors: {
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))'
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))'
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))'
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))'
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))'
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))'
},
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))'
},
},
}
}
}
</script>
<style type="text/tailwindcss">
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 142.1 76.2% 36.3%;
--primary-foreground: 355.7 100% 97.3%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 142.1 76.2% 36.3%;
}
.dark {
--background: 20 14.3% 4.1%;
--foreground: 0 0% 95%;
--popover: 0 0% 9%;
--popover-foreground: 0 0% 95%;
--card: 24 9.8% 10%;
--card-foreground: 0 0% 95%;
--primary: 142.1 70.6% 45.3%;
--primary-foreground: 144.9 80.4% 10%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 0 0% 15%;
--muted-foreground: 240 5% 64.9%;
--accent: 12 6.5% 15.1%;
--accent-foreground: 0 0% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 85.7% 97.3%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 142.4 71.8% 29.2%;
}
}
</style>
</head>
<body>
<div class="bg-background text-foreground min-h-screen">
<nav class="bg-primary p-4 flex justify-between items-center">
<div class="text-xl font-bold">Sagelist</div>
<div>
<a href="#" class="text-primary-foreground hover:underline">Sign In</a>
<a href="#" class="text-primary-foreground ml-4 hover:underline">Sign Up</a>
</div>
</nav>
<div class="container mx-auto py-8 px-4">
<h2 class="text-2xl font-bold mb-4">Community Forum</h2>
<div class="bg-card p-4 rounded-lg mb-4">
<h3 class="text-xl font-bold">Post Title 1</h3>
<p class="text-muted-foreground">This is a sample post content. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<div class="mt-4">
<label for="comment1" class="block text-card-foreground mb-2">Comment</label>
<textarea id="comment1" class="bg-input border border-border rounded-lg w-full p-2" rows="2"></textarea>
</div>
</div>
<div class="bg-card p-4 rounded-lg mb-4">
<h3 class="text-xl font-bold">Post Title 2</h3>
<p class="text-muted-foreground">This is another sample post content. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<div class="mt-4">
<label for="comment2" class="block text-card-foreground mb-2">Comment</label>
<textarea id="comment2" class="bg-input border border-border rounded-lg w-full p-2" rows="2"></textarea>
</div>
</div>
<div class="bg-card p-4 rounded-lg mb-4">
<h3 class="text-xl font-bold">Post Title 3</h3>
<p class="text-muted-foreground">Yet another sample post content. Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
<div class="mt-4">
<label for="comment3" class="block text-card-foreground mb-2">Comment</label>
<textarea id="comment3" class="bg-input border border-border rounded-lg w-full p-2" rows="2"></textarea>
</div>
</div>
<div class="mt-8">
<h2 class="text-xl font-bold mb-4">Create a New Post</h2>
<form class="bg-card p-4 rounded-lg">
<div class="mb-4">
<label for="title" class="block text-card-foreground mb-2">Title</label>
<input type="text" id="title" class="bg-input border border-border rounded-lg w-full p-2" />
</div>
<div class="mb-4">
<label for="content" class="block text-card-foreground mb-2">Content</label>
<textarea id="content" class="bg-input border border-border rounded-lg w-full p-2" rows="4"></textarea>
</div>
<button type="submit" class="bg-primary text-primary-foreground px-4 py-2 rounded-lg">Post</button>
</form>
</div>
</div>
</div>
<div>
<a href="sagelist.html" class="bg-primary text-primary-foreground px-4 py-2 rounded-lg mr-4">Homepage</a>
</div>
</body>
</html>