-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeedback.html
More file actions
108 lines (105 loc) · 4.36 KB
/
feedback.html
File metadata and controls
108 lines (105 loc) · 4.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Community Suggestions</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://unpkg.com/vue@3.0.2"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Poppins:wght@400;600;700&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="assets/css/feedback.css">
</head>
<body>
<header>
<h1>ColomboNext</h1>
<div class="menu-toggle" onclick="toggleMenu()">
<div></div>
<div></div>
<div></div>
</div>
<nav id="navbar">
<a href="index.html">Home</a>
<a href="index.html#about">About</a>
<a href="local_issues.html">Local Issues</a>
<a href="solutions.html">Solutions</a>
<a href="events.html">Events</a>
<a href="feedback.html" class="active">Feedback</a>
</nav>
</header>
<div class="intro">
<h1>Share Your Smart Ideas</h1>
<p>
We believe every resident has a role to play in shaping a smarter Colombo. Use this space to share your insights, suggest improvements, or highlight issues that matter to you. Your feedback is invaluable in helping us create a more sustainable and livable city for all.
</p>
</div>
<div id="feedback-group">
<div class="top-flex">
<div class="feedback-img">
<img src="assets/images/form-image.png" alt="Image of a person getting an smart idea.">
</div>
<div id="feedback-form">
<form @submit.prevent="addFeedback">
<h2>Drop your Idea</h2>
<div>
<label for="name">Name</label>
<input type="text" id="name" v-model="name" autocomplete="name" @input="clearMessage"
placeholder="Enter your name">
</div>
<div>
<label>Problem</label>
<div class="problems">
<div class="pill-checkbox-group" v-for="(option, idx) in problemOptions" :key="option.value">
<input type="radio" :id="option.value" :value="option.label" class="pill-checkbox" name="problems"
v-model="problem" @input="clearMessage">
<label :for="option.value" class="pill-label">{{ option.label }}</label>
</div>
</div>
</div>
<div>
<label for="solution">Solution</label>
<textarea id="solution" placeholder="Got a smart solution? Drop it down here." v-model="solution"
autocomplete="off" @input="clearMessage"></textarea>
</div>
<button type="submit" :disabled="submitted" @input="clearMessage">
{{ submitted ? 'Submitted' : 'Submit' }}
</button>
<div v-if="message" :class="['form-message', messageType]">
{{ message }}
</div>
</form>
</div>
</div>
<h2 class="section-title">Community Suggestions</h2>
<p class="section-subtitle">See what others are saying and join the conversation. Your feedback helps us make
Colombo a better place.</p>
<div id="feedbacks">
<div v-for="(feedback, idx) in feedbacks.slice().reverse()" :key="feedback.id" class="feedback-card">
<div class="icon-bar">
<i :class="getProblemIcon(feedback.problem)" class="feedback-icon"></i>
</div>
<div class="feedback-card-content">
<div class="feedback-header">
<p class="feedback-name-date"><span class="feedback-name">{{ feedback.name }}</span> <span
class="stroke">|</span> <span class="feedback-date">{{ feedback.date
}}</span></p>
<button class="like-btn" :class="{ liked: likedFeedbacks[feedback.id] }" @click="toggleLike(feedback.id)">
<i class="fa-solid fa-heart"></i>
</button>
</div>
<div class="feedback-problem">{{ feedback.problem }}</div>
<div class="feedback-solution">{{ feedback.solution }}</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="footer-container">
<p>© 2025 ColomboNext. All Rights Reserved.</p>
<span class="footer-divider">|</span>
<p>Authored by <strong>Asna Assalam</strong></p>
</div>
</footer>
<script src="assets/js/feedback.js"></script>
</body>
</html>