-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
165 lines (140 loc) · 5.35 KB
/
Copy pathindex.html
File metadata and controls
165 lines (140 loc) · 5.35 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
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bhai pdfs feedback</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Instrument+Sans:wght@400;500;600&display=swap" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js"></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Ambient orbs -->
<div class="bg-orb orb-1"></div>
<div class="bg-orb orb-2"></div>
<div class="bg-orb orb-3"></div>
<div class="noise"></div>
<!-- HEADER -->
<header class="header">
<div class="header-inner">
<a class="logo" href="#">
<div class="logo-mark">
<img src="logo.jpeg" alt="Logo" class="logo-img" />
</div>
<span>Bhai pdfs</span>
</a>
<div class="header-pill">Feedback Portal</div>
</div>
</header>
<!-- HERO -->
<section class="hero">
<div class="hero-eyebrow">
<span class="eyebrow-dot"></span>
Share your experience
</div>
<h1 class="hero-title">Is pdfs really helping?<br/><em></em></h1>
<p class="hero-sub">Everyone should give rating then only i contunie 4.1 sem pdfs 😁</p>
</section>
<!-- MAIN GRID — Form + Chart only -->
<main class="grid">
<!-- FORM CARD -->
<div class="card card--form">
<div class="card-label"><span>01</span> Write</div>
<h2 class="card-title">Leave feedback</h2>
<div class="field">
<input type="text" id="name" placeholder="Your name (optional)" autocomplete="off" />
</div>
<div class="field star-field">
<div class="star-row" id="starRow">
<button class="star-btn" data-v="1" aria-label="1 star">★</button>
<button class="star-btn" data-v="2" aria-label="2 stars">★</button>
<button class="star-btn" data-v="3" aria-label="3 stars">★</button>
<button class="star-btn" data-v="4" aria-label="4 stars">★</button>
<button class="star-btn" data-v="5" aria-label="5 stars">★</button>
</div>
<span class="star-hint" id="starHint">Select a rating</span>
</div>
<div class="field">
<textarea id="feedback" placeholder="Describe your experience in detail..."></textarea>
<div class="char-count" id="charCount">0 / 500</div>
</div>
<button class="submit-btn" id="submitBtn" onclick="addFeedback()">
<span>Send Feedback</span>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
<path d="M3 8H13M13 8L9 4M13 8L9 12" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<div class="toast" id="toast"></div>
</div>
<!-- CHART CARD -->
<div class="card card--chart">
<div class="card-label"><span>02</span> Insights</div>
<h2 class="card-title">Rating breakdown</h2>
<div class="stats-row">
<div class="stat-box">
<div class="stat-num" id="avgStat">—</div>
<div class="stat-lbl">Average</div>
</div>
<div class="stat-divider"></div>
<div class="stat-box">
<div class="stat-num" id="totalStat">0</div>
<div class="stat-lbl">Reviews</div>
</div>
<div class="stat-divider"></div>
<div class="stat-box">
<div class="stat-num" id="topStat">—</div>
<div class="stat-lbl">Most given</div>
</div>
</div>
<div class="chart-box">
<canvas id="chart"></canvas>
</div>
</div>
</main>
<!-- ═══════════════════════════════════════════
ALL REVIEWS — SEPARATE FULL SECTION
═══════════════════════════════════════════ -->
<section class="reviews-section">
<!-- Section divider -->
<div class="section-divider">
<div class="divider-line"></div>
<div class="divider-label">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none">
<path d="M8 1L10 6H15.5L11 9.5L13 15L8 11.5L3 15L5 9.5L0.5 6H6L8 1Z" fill="currentColor"/>
</svg>
Community
</div>
<div class="divider-line"></div>
</div>
<div class="reviews-inner">
<!-- Section hero -->
<div class="reviews-hero">
<div class="reviews-hero-text">
<div class="reviews-eyebrow">
<span class="eyebrow-dot"></span>
03 — All Reviews
</div>
<h2 class="reviews-title">What people are saying</h2>
<p class="reviews-sub">Real feedback from real users. Honest and unfiltered.</p>
</div>
<div class="count-badge" id="countBadge">0</div>
</div>
<!-- Reviews grid -->
<div class="reviews-grid" id="feedbackList">
<div class="loader-wrap">
<div class="spinner"></div>
<span>Loading reviews…</span>
</div>
</div>
</div>
</section>
<footer class="footer">
<span>Pulse Feedback</span>
<span>·</span>
<span>Built with care</span>
</footer>
<script src="script.js"></script>
</body>
</html>