Create a high-fidelity web UI design for an application called AIPHY — a “Giphy but for sound clips” platform.
Browse filesDesign it in a clean, minimal, Apple-style aesthetic with soft shadows, rounded corners (16–24px), and a bright, airy feel.
Layout Requirements
HEADER
Left: AIPHY logo (simple waveform icon + bold text “AIPHY”).
Center: Search bar with placeholder: “Search sounds…”
Right: Upload and Login links (minimal, clean text).
CATEGORY FILTERS
Section title: Categories: (left aligned, bold)
Filter pills: All, Laughs, Shock, Hype, African
Pills must be rounded, with “All” highlighted in a purple/indigo pill.
Other pills are light gray with subtle borders.
SOUND CARD GRID
Display a 3-column grid of sound cards (large rounded rectangles, soft borders, subtle drop shadow).
Each sound card should include:
Circular play button on top left
Sound title in bold
Category tag beneath the title in gray text
Two buttons at bottom:
Download (light gray button)
Share (dark gray button)
Spacing: 24–32px gap between cards.
FOOTER
Minimal footer with just text links centered:
About | Terms | DMCA
STYLE GUIDE
Font: Inter / SF Pro / or similar clean sans-serif
Color palette:
Background: #F8F8F8
Card background: white
Text: #1A1A1A
Subtext: #6B6B6B
Highlight pill: #5A5BEA (indigo-purple)
Play button: black circle
Buttons:
Download: light gray with rounded corners
Share: dark gray with white text
Shadows: soft, natural, Apple-style (0 4px 12px rgba(0,0,0,0.05))
OVERALL FEEL
Minimal
Modern
Soft and approachable
Highly readable
Friendly yet premium
Exactly like a “sound version of Giphy.”
OUTPUT
Generate a full homepage layout matching the structure above, in the same visual style as the reference image.
- README.md +8 -5
- components/footer.js +50 -0
- components/navbar.js +75 -0
- index.html +286 -19
- script.js +89 -0
- style.css +38 -19
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: AIPHY - Sound Bites Paradise 🔊
|
| 3 |
+
colorFrom: red
|
| 4 |
+
colorTo: blue
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
width: 100%;
|
| 9 |
+
padding: 3rem 0;
|
| 10 |
+
margin-top: 4rem;
|
| 11 |
+
background-color: #F8F8F8;
|
| 12 |
+
color: #6B6B6B;
|
| 13 |
+
font-size: 0.875rem;
|
| 14 |
+
}
|
| 15 |
+
.footer-content {
|
| 16 |
+
max-width: 1440px;
|
| 17 |
+
margin: 0 auto;
|
| 18 |
+
padding: 0 2rem;
|
| 19 |
+
text-align: center;
|
| 20 |
+
}
|
| 21 |
+
.footer-links {
|
| 22 |
+
display: flex;
|
| 23 |
+
justify-content: center;
|
| 24 |
+
gap: 1.5rem;
|
| 25 |
+
margin-bottom: 1rem;
|
| 26 |
+
}
|
| 27 |
+
.footer-links a {
|
| 28 |
+
color: inherit;
|
| 29 |
+
text-decoration: none;
|
| 30 |
+
transition: color 0.2s;
|
| 31 |
+
}
|
| 32 |
+
.footer-links a:hover {
|
| 33 |
+
color: #1A1A1A;
|
| 34 |
+
}
|
| 35 |
+
.copyright {
|
| 36 |
+
opacity: 0.7;
|
| 37 |
+
}
|
| 38 |
+
</style>
|
| 39 |
+
<div class="footer-content">
|
| 40 |
+
<div class="footer-links">
|
| 41 |
+
<a href="/about">About</a>
|
| 42 |
+
<a href="/terms">Terms</a>
|
| 43 |
+
<a href="/dmca">DMCA</a>
|
| 44 |
+
</div>
|
| 45 |
+
<div class="copyright">© ${new Date().getFullYear()} AIPHY. All sounds belong to their respective owners.</div>
|
| 46 |
+
</div>
|
| 47 |
+
`;
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
customElements.define('custom-footer', CustomFooter);
|
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
class CustomNavbar extends HTMLElement {
|
| 3 |
+
connectedCallback() {
|
| 4 |
+
this.attachShadow({ mode: 'open' });
|
| 5 |
+
this.shadowRoot.innerHTML = `
|
| 6 |
+
<style>
|
| 7 |
+
:host {
|
| 8 |
+
display: block;
|
| 9 |
+
width: 100%;
|
| 10 |
+
position: sticky;
|
| 11 |
+
top: 0;
|
| 12 |
+
z-index: 50;
|
| 13 |
+
background-color: rgba(255, 255, 255, 0.95);
|
| 14 |
+
backdrop-filter: blur(8px);
|
| 15 |
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
| 16 |
+
}
|
| 17 |
+
nav {
|
| 18 |
+
display: flex;
|
| 19 |
+
align-items: center;
|
| 20 |
+
justify-content: space-between;
|
| 21 |
+
padding: 1.5rem 2rem;
|
| 22 |
+
max-width: 1440px;
|
| 23 |
+
margin: 0 auto;
|
| 24 |
+
}
|
| 25 |
+
.logo {
|
| 26 |
+
display: flex;
|
| 27 |
+
align-items: center;
|
| 28 |
+
gap: 0.75rem;
|
| 29 |
+
font-weight: 600;
|
| 30 |
+
font-size: 1.25rem;
|
| 31 |
+
color: #1A1A1A;
|
| 32 |
+
}
|
| 33 |
+
.logo-icon {
|
| 34 |
+
width: 28px;
|
| 35 |
+
height: 28px;
|
| 36 |
+
background: linear-gradient(to right, #5A5BEA, #8A3FFC);
|
| 37 |
+
border-radius: 8px;
|
| 38 |
+
display: flex;
|
| 39 |
+
align-items: center;
|
| 40 |
+
justify-content: center;
|
| 41 |
+
}
|
| 42 |
+
.logo-icon svg {
|
| 43 |
+
width: 16px;
|
| 44 |
+
height: 16px;
|
| 45 |
+
color: white;
|
| 46 |
+
}
|
| 47 |
+
.nav-links {
|
| 48 |
+
display: flex;
|
| 49 |
+
gap: 2rem;
|
| 50 |
+
}
|
| 51 |
+
.nav-links a {
|
| 52 |
+
color: #6B6B6B;
|
| 53 |
+
font-weight: 500;
|
| 54 |
+
text-decoration: none;
|
| 55 |
+
transition: color 0.2s;
|
| 56 |
+
}
|
| 57 |
+
.nav-links a:hover {
|
| 58 |
+
color: #1A1A1A;
|
| 59 |
+
}
|
| 60 |
+
</style>
|
| 61 |
+
<nav>
|
| 62 |
+
<a href="/" class="logo">
|
| 63 |
+
<div class="logo-icon">
|
| 64 |
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
| 65 |
+
<path d="M3 12c0 1.654 1.346 3 3 3 .794 0 1.512-.315 2.049-.82l10.128-6.067c.526.367 1.18.577 1.875.577 2.028 0 3.682-1.569 3.682-3.5S21.028 3 19 3c-1.927 0-3.5 1.573-3.5 3.5 0 .341.056.669.146.981L6.293 12.82c-.41.44-.993.693-1.601.693C3.019 13.513 2 12.495 2 11.244V7.513C2 5.564 3.564 4 5.513 4h2.03c.027.161.053.322.053.5 0 2.481-2.019 4.5-4.5 4.5-.386 0-.759-.055-1.106-.147v3.147z"/>
|
| 66 |
+
</svg>
|
| 67 |
+
</div>
|
| 68 |
+
<span>AIPHY</span>
|
| 69 |
+
</a>
|
| 70 |
+
|
| 71 |
+
<div class="nav-links">
|
| 72 |
+
<a href="/upload">Upload</a>
|
| 73 |
+
<a href="/login">Login</a>
|
| 74 |
+
</div>
|
| 75 |
+
</nav>
|
|
@@ -1,19 +1,286 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
<!DOCTYPE html>
|
| 3 |
+
<html lang="en">
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>AIPHY | Giphy for Sound Clips</title>
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 12 |
+
<script>
|
| 13 |
+
tailwind.config = {
|
| 14 |
+
theme: {
|
| 15 |
+
extend: {
|
| 16 |
+
colors: {
|
| 17 |
+
primary: '#6D4AFF',
|
| 18 |
+
secondary: '#F3F4F6',
|
| 19 |
+
}
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
</script>
|
| 24 |
+
</head>
|
| 25 |
+
<body class="bg-[#F8F8F8] font-sans antialiased">
|
| 26 |
+
<custom-navbar></custom-navbar>
|
| 27 |
+
|
| 28 |
+
<div class="container mx-auto px-6 max-w-6xl">
|
| 29 |
+
<!-- Search Section -->
|
| 30 |
+
<div class="flex justify-center py-12">
|
| 31 |
+
<div class="relative w-full max-w-2xl">
|
| 32 |
+
<input type="text" placeholder="Search sounds..." class="w-full px-6 py-4 rounded-2xl border border-gray-200 focus:outline-none focus:ring-2 focus:ring-[#5A5BEA] focus:border-transparent shadow-sm text-gray-900">
|
| 33 |
+
<button class="absolute right-3 top-3.5 text-gray-500">
|
| 34 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 35 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
|
| 36 |
+
</svg>
|
| 37 |
+
</button>
|
| 38 |
+
</div>
|
| 39 |
+
</div>
|
| 40 |
+
|
| 41 |
+
<!-- Categories -->
|
| 42 |
+
<section class="mb-10">
|
| 43 |
+
<h2 class="text-xl font-semibold mb-4 text-[#1A1A1A]">Categories:</h2>
|
| 44 |
+
<div class="flex flex-wrap gap-3">
|
| 45 |
+
<a href="#" class="px-5 py-2 bg-[#5A5BEA] text-white rounded-full font-medium">All</a>
|
| 46 |
+
<a href="#" class="px-5 py-2 bg-white border border-gray-200 rounded-full text-[#6B6B6B] hover:bg-gray-50 transition">Laughs</a>
|
| 47 |
+
<a href="#" class="px-5 py-2 bg-white border border-gray-200 rounded-full text-[#6B6B6B] hover:bg-gray-50 transition">Shock</a>
|
| 48 |
+
<a href="#" class="px-5 py-2 bg-white border border-gray-200 rounded-full text-[#6B6B6B] hover:bg-gray-50 transition">Hype</a>
|
| 49 |
+
<a href="#" class="px-5 py-2 bg-white border border-gray-200 rounded-full text-[#6B6B6B] hover:bg-gray-50 transition">African</a>
|
| 50 |
+
</div>
|
| 51 |
+
</section>
|
| 52 |
+
|
| 53 |
+
<!-- Sound Grid -->
|
| 54 |
+
<section>
|
| 55 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 56 |
+
<!-- Sound Card 1 -->
|
| 57 |
+
<div class="bg-white rounded-2xl shadow-[0_4px_12px_rgba(0,0,0,0.05)] border border-gray-100 overflow-hidden hover:shadow-md transition-all">
|
| 58 |
+
<div class="p-6 flex items-start gap-4">
|
| 59 |
+
<button class="w-14 h-14 rounded-full bg-black text-white flex items-center justify-center hover:bg-opacity-90 transition">
|
| 60 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 61 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z" />
|
| 62 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
| 63 |
+
</svg>
|
| 64 |
+
</button>
|
| 65 |
+
<div class="flex-1">
|
| 66 |
+
<h3 class="font-semibold text-[#1A1A1A]">Surprised Gasp</h3>
|
| 67 |
+
<p class="text-sm text-[#6B6B6B] mt-1">Shock</p>
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
<div class="px-6 pb-6 flex justify-end gap-3">
|
| 71 |
+
<button class="px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition text-sm font-medium">
|
| 72 |
+
Download
|
| 73 |
+
</button>
|
| 74 |
+
<button class="px-4 py-2 bg-[#1A1A1A] text-white rounded-lg hover:bg-opacity-90 transition text-sm font-medium">
|
| 75 |
+
Share
|
| 76 |
+
</button>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
|
| 80 |
+
<!-- Sound Card 2 -->
|
| 81 |
+
<div class="bg-white rounded-2xl shadow-[0_4px_12px_rgba(0,0,0,0.05)] border border-gray-100 overflow-hidden hover:shadow-md transition-all">
|
| 82 |
+
<div class="p-6 flex items-start gap-4">
|
| 83 |
+
<button class="w-14 h-14 rounded-full bg-black text-white flex items-center justify-center hover:bg-opacity-90 transition">
|
| 84 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 85 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z" />
|
| 86 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
| 87 |
+
</svg>
|
| 88 |
+
</button>
|
| 89 |
+
<div class="flex-1">
|
| 90 |
+
<h3 class="font-semibold text-[#1A1A1A]">Evil Laugh</h3>
|
| 91 |
+
<p class="text-sm text-[#6B6B6B] mt-1">Laughs</p>
|
| 92 |
+
</div>
|
| 93 |
+
</div>
|
| 94 |
+
<div class="px-6 pb-6 flex justify-end gap-3">
|
| 95 |
+
<button class="px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition text-sm font-medium">
|
| 96 |
+
Download
|
| 97 |
+
</button>
|
| 98 |
+
<button class="px-4 py-2 bg-[#1A1A1A] text-white rounded-lg hover:bg-opacity-90 transition text-sm font-medium">
|
| 99 |
+
Share
|
| 100 |
+
</button>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
|
| 104 |
+
<!-- Sound Card 3 -->
|
| 105 |
+
<div class="bg-white rounded-2xl shadow-[0_4px_12px_rgba(0,0,0,0.05)] border border-gray-100 overflow-hidden hover:shadow-md transition-all">
|
| 106 |
+
<div class="p-6 flex items-start gap-4">
|
| 107 |
+
<button class="w-14 h-14 rounded-full bg-black text-white flex items-center justify-center hover:bg-opacity-90 transition">
|
| 108 |
+
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| 109 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z" />
|
| 110 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
| 111 |
+
</svg>
|
| 112 |
+
</button>
|
| 113 |
+
<div class="flex-1">
|
| 114 |
+
<h3 class="font-semibold text-[#1A1A1A]">Bass Drop</h3>
|
| 115 |
+
<p class="text-sm text-[#6B6B6B] mt-1">Hype</p>
|
| 116 |
+
</div>
|
| 117 |
+
</div>
|
| 118 |
+
<div class="px-6 pb-6 flex justify-end gap-3">
|
| 119 |
+
<button class="px-4 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition text-sm font-medium">
|
| 120 |
+
Download
|
| 121 |
+
</button>
|
| 122 |
+
<button class="px-4 py-2 bg-[#1A1A1A] text-white rounded-lg hover:bg-opacity-90 transition text-sm font-medium">
|
| 123 |
+
Share
|
| 124 |
+
</button>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
</div>
|
| 128 |
+
</section>
|
| 129 |
+
</div>
|
| 130 |
+
<main class="container mx-auto px-4 py-8">
|
| 131 |
+
<!-- Hero Section -->
|
| 132 |
+
<section class="text-center mb-16">
|
| 133 |
+
<h1 class="text-4xl md:text-5xl font-bold text-gray-900 mb-4">Discover & Share<br>Audio Reactions</h1>
|
| 134 |
+
<p class="text-xl text-gray-600 max-w-2xl mx-auto mb-8">The best collection of short, expressive sound bites for any situation</p>
|
| 135 |
+
|
| 136 |
+
<div class="max-w-xl mx-auto relative">
|
| 137 |
+
<input type="text" placeholder="Search sounds..." class="w-full px-6 py-4 rounded-full border border-gray-200 focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent shadow-sm">
|
| 138 |
+
<button class="absolute right-2 top-2 bg-primary text-white p-2 rounded-full hover:bg-opacity-90 transition">
|
| 139 |
+
<i data-feather="search"></i>
|
| 140 |
+
</button>
|
| 141 |
+
</div>
|
| 142 |
+
</section>
|
| 143 |
+
|
| 144 |
+
<!-- Categories -->
|
| 145 |
+
<section class="mb-12">
|
| 146 |
+
<h2 class="text-2xl font-semibold mb-6 text-gray-800">Popular Categories</h2>
|
| 147 |
+
<div class="flex flex-wrap gap-3">
|
| 148 |
+
<a href="#" class="px-4 py-2 bg-secondary rounded-full text-gray-700 hover:bg-gray-200 transition">All</a>
|
| 149 |
+
<a href="#" class="px-4 py-2 bg-secondary rounded-full text-gray-700 hover:bg-gray-200 transition">Laughs</a>
|
| 150 |
+
<a href="#" class="px-4 py-2 bg-secondary rounded-full text-gray-700 hover:bg-gray-200 transition">Shock</a>
|
| 151 |
+
<a href="#" class="px-4 py-2 bg-secondary rounded-full text-gray-700 hover:bg-gray-200 transition">Hype</a>
|
| 152 |
+
<a href="#" class="px-4 py-2 bg-secondary rounded-full text-gray-700 hover:bg-gray-200 transition">Meme</a>
|
| 153 |
+
<a href="#" class="px-4 py-2 bg-secondary rounded-full text-gray-700 hover:bg-gray-200 transition">Suspense</a>
|
| 154 |
+
</div>
|
| 155 |
+
</section>
|
| 156 |
+
|
| 157 |
+
<!-- Sound Grid -->
|
| 158 |
+
<section>
|
| 159 |
+
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
|
| 160 |
+
<!-- Sound Card 1 -->
|
| 161 |
+
<div class="bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden hover:shadow-md transition">
|
| 162 |
+
<div class="p-4 flex items-start gap-4">
|
| 163 |
+
<button class="w-12 h-12 rounded-full bg-primary text-white flex items-center justify-center hover:bg-opacity-90 transition">
|
| 164 |
+
<i data-feather="play"></i>
|
| 165 |
+
</button>
|
| 166 |
+
<div class="flex-1">
|
| 167 |
+
<h3 class="font-medium text-gray-900">Surprised Gasp</h3>
|
| 168 |
+
<p class="text-sm text-gray-500">0.8s · Shock</p>
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
<div class="px-4 pb-4 flex justify-between">
|
| 172 |
+
<button class="text-gray-500 hover:text-primary transition">
|
| 173 |
+
<i data-feather="download"></i>
|
| 174 |
+
</button>
|
| 175 |
+
<button class="text-gray-500 hover:text-primary transition">
|
| 176 |
+
<i data-feather="share-2"></i>
|
| 177 |
+
</button>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
+
|
| 181 |
+
<!-- Sound Card 2 -->
|
| 182 |
+
<div class="bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden hover:shadow-md transition">
|
| 183 |
+
<div class="p-4 flex items-start gap-4">
|
| 184 |
+
<button class="w-12 h-12 rounded-full bg-primary text-white flex items-center justify-center hover:bg-opacity-90 transition">
|
| 185 |
+
<i data-feather="play"></i>
|
| 186 |
+
</button>
|
| 187 |
+
<div class="flex-1">
|
| 188 |
+
<h3 class="font-medium text-gray-900">Evil Laugh</h3>
|
| 189 |
+
<p class="text-sm text-gray-500">2.1s · Laughs</p>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
<div class="px-4 pb-4 flex justify-between">
|
| 193 |
+
<button class="text-gray-500 hover:text-primary transition">
|
| 194 |
+
<i data-feather="download"></i>
|
| 195 |
+
</button>
|
| 196 |
+
<button class="text-gray-500 hover:text-primary transition">
|
| 197 |
+
<i data-feather="share-2"></i>
|
| 198 |
+
</button>
|
| 199 |
+
</div>
|
| 200 |
+
</div>
|
| 201 |
+
|
| 202 |
+
<!-- Sound Card 3 -->
|
| 203 |
+
<div class="bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden hover:shadow-md transition">
|
| 204 |
+
<div class="p-4 flex items-start gap-4">
|
| 205 |
+
<button class="w-12 h-12 rounded-full bg-primary text-white flex items-center justify-center hover:bg-opacity-90 transition">
|
| 206 |
+
<i data-feather="play"></i>
|
| 207 |
+
</button>
|
| 208 |
+
<div class="flex-1">
|
| 209 |
+
<h3 class="font-medium text-gray-900">Dramatic Whoosh</h3>
|
| 210 |
+
<p class="text-sm text-gray-500">1.5s · Suspense</p>
|
| 211 |
+
</div>
|
| 212 |
+
</div>
|
| 213 |
+
<div class="px-4 pb-4 flex justify-between">
|
| 214 |
+
<button class="text-gray-500 hover:text-primary transition">
|
| 215 |
+
<i data-feather="download"></i>
|
| 216 |
+
</button>
|
| 217 |
+
<button class="text-gray-500 hover:text-primary transition">
|
| 218 |
+
<i data-feather="share-2"></i>
|
| 219 |
+
</button>
|
| 220 |
+
</div>
|
| 221 |
+
</div>
|
| 222 |
+
|
| 223 |
+
<!-- Sound Card 4 -->
|
| 224 |
+
<div class="bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden hover:shadow-md transition">
|
| 225 |
+
<div class="p-4 flex items-start gap-4">
|
| 226 |
+
<button class="w-12 h-12 rounded-full bg-primary text-white flex items-center justify-center hover:bg-opacity-90 transition">
|
| 227 |
+
<i data-feather="play"></i>
|
| 228 |
+
</button>
|
| 229 |
+
<div class="flex-1">
|
| 230 |
+
<h3 class="font-medium text-gray-900">Crowd Cheer</h3>
|
| 231 |
+
<p class="text-sm text-gray-500">3.2s · Hype</p>
|
| 232 |
+
</div>
|
| 233 |
+
</div>
|
| 234 |
+
<div class="px-4 pb-4 flex justify-between">
|
| 235 |
+
<button class="text-gray-500 hover:text-primary transition">
|
| 236 |
+
<i data-feather="download"></i>
|
| 237 |
+
</button>
|
| 238 |
+
<button class="text-gray-500 hover:text-primary transition">
|
| 239 |
+
<i data-feather="share-2"></i>
|
| 240 |
+
</button>
|
| 241 |
+
</div>
|
| 242 |
+
</div>
|
| 243 |
+
</div>
|
| 244 |
+
</section>
|
| 245 |
+
|
| 246 |
+
<!-- CTA Section -->
|
| 247 |
+
<section class="mt-16 text-center">
|
| 248 |
+
<h2 class="text-2xl font-semibold mb-4 text-gray-800">Got a great reaction sound?</h2>
|
| 249 |
+
<p class="text-gray-600 mb-6 max-w-2xl mx-auto">Upload your own short audio clips to share with the community</p>
|
| 250 |
+
<a href="/upload" class="inline-block bg-primary text-white px-6 py-3 rounded-lg hover:bg-opacity-90 transition font-medium">Upload a Reaction</a>
|
| 251 |
+
</section>
|
| 252 |
+
</main>
|
| 253 |
+
|
| 254 |
+
<custom-footer></custom-footer>
|
| 255 |
+
|
| 256 |
+
<!-- Audio Player (fixed at bottom) -->
|
| 257 |
+
<div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 p-3 shadow-lg">
|
| 258 |
+
<div class="container mx-auto flex items-center justify-between">
|
| 259 |
+
<div class="flex items-center gap-3">
|
| 260 |
+
<button class="w-10 h-10 rounded-full bg-primary text-white flex items-center justify-center hover:bg-opacity-90 transition">
|
| 261 |
+
<i data-feather="play"></i>
|
| 262 |
+
</button>
|
| 263 |
+
<div>
|
| 264 |
+
<p class="font-medium text-gray-900">Currently Playing</p>
|
| 265 |
+
<p class="text-sm text-gray-500">0:12 / 0:45</p>
|
| 266 |
+
</div>
|
| 267 |
+
</div>
|
| 268 |
+
<div class="flex items-center gap-4">
|
| 269 |
+
<button class="text-gray-500 hover:text-primary transition">
|
| 270 |
+
<i data-feather="download"></i>
|
| 271 |
+
</button>
|
| 272 |
+
<button class="text-gray-500 hover:text-primary transition">
|
| 273 |
+
<i data-feather="share-2"></i>
|
| 274 |
+
</button>
|
| 275 |
+
</div>
|
| 276 |
+
</div>
|
| 277 |
+
</div>
|
| 278 |
+
|
| 279 |
+
<!-- Component Scripts -->
|
| 280 |
+
<script src="components/navbar.js"></script>
|
| 281 |
+
<script src="components/footer.js"></script>
|
| 282 |
+
<script src="script.js"></script>
|
| 283 |
+
<script>feather.replace();</script>
|
| 284 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 285 |
+
</body>
|
| 286 |
+
</html>
|
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
// Modern smooth scroll behavior
|
| 3 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 4 |
+
anchor.addEventListener('click', function (e) {
|
| 5 |
+
e.preventDefault();
|
| 6 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
| 7 |
+
behavior: 'smooth'
|
| 8 |
+
});
|
| 9 |
+
});
|
| 10 |
+
});
|
| 11 |
+
|
| 12 |
+
// Audio player functionality
|
| 13 |
+
class AudioPlayer {
|
| 14 |
+
constructor() {
|
| 15 |
+
this.audio = new Audio();
|
| 16 |
+
this.currentSound = null;
|
| 17 |
+
this.isPlaying = false;
|
| 18 |
+
|
| 19 |
+
// Setup event listeners
|
| 20 |
+
document.addEventListener('click', (e) => {
|
| 21 |
+
if (e.target.closest('[data-play]')) {
|
| 22 |
+
const soundId = e.target.closest('[data-play]').getAttribute('data-play');
|
| 23 |
+
this.playSound(soundId);
|
| 24 |
+
}
|
| 25 |
+
});
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
playSound(soundId) {
|
| 29 |
+
// In a real app, we'd fetch the sound URL from an API
|
| 30 |
+
const soundUrl = `https://example.com/api/sounds/${soundId}/stream`;
|
| 31 |
+
|
| 32 |
+
if (this.currentSound !== soundId) {
|
| 33 |
+
this.audio.src = soundUrl;
|
| 34 |
+
this.currentSound = soundId;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
if (this.isPlaying) {
|
| 38 |
+
this.audio.pause();
|
| 39 |
+
this.isPlaying = false;
|
| 40 |
+
} else {
|
| 41 |
+
this.audio.play()
|
| 42 |
+
.then(() => {
|
| 43 |
+
this.isPlaying = true;
|
| 44 |
+
// Update UI to show playing state
|
| 45 |
+
document.querySelectorAll('[data-play]').forEach(btn => {
|
| 46 |
+
if (btn.getAttribute('data-play') === soundId) {
|
| 47 |
+
btn.classList.add('playing');
|
| 48 |
+
btn.innerHTML = '<i data-feather="pause"></i>';
|
| 49 |
+
} else {
|
| 50 |
+
btn.classList.remove('playing');
|
| 51 |
+
btn.innerHTML = '<i data-feather="play"></i>';
|
| 52 |
+
}
|
| 53 |
+
});
|
| 54 |
+
feather.replace();
|
| 55 |
+
})
|
| 56 |
+
.catch(err => {
|
| 57 |
+
console.error('Error playing sound:', err);
|
| 58 |
+
});
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
// Update global player UI
|
| 62 |
+
this.updatePlayerUI(soundId);
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
updatePlayerUI(soundId) {
|
| 66 |
+
// In a real app, we'd fetch sound details from an API
|
| 67 |
+
const soundDetails = {
|
| 68 |
+
title: "Currently Playing",
|
| 69 |
+
duration: "0:45"
|
| 70 |
+
};
|
| 71 |
+
|
| 72 |
+
const playerEl = document.querySelector('.fixed-player');
|
| 73 |
+
if (playerEl) {
|
| 74 |
+
playerEl.querySelector('.sound-title').textContent = soundDetails.title;
|
| 75 |
+
playerEl.querySelector('.sound-duration').textContent = `0:12 / ${soundDetails.duration}`;
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
// Initialize when DOM is loaded
|
| 81 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 82 |
+
const audioPlayer = new AudioPlayer();
|
| 83 |
+
|
| 84 |
+
// Initialize tooltips
|
| 85 |
+
const tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'));
|
| 86 |
+
tooltipTriggerList.map(function (tooltipTriggerEl) {
|
| 87 |
+
return new bootstrap.Tooltip(tooltipTriggerEl);
|
| 88 |
+
});
|
| 89 |
+
});
|
|
@@ -1,28 +1,47 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
}
|
| 17 |
|
| 18 |
-
.
|
| 19 |
-
|
| 20 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
| 3 |
+
|
| 4 |
+
/* Modern Apple-style shadows */
|
| 5 |
+
.card-hover {
|
| 6 |
+
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
| 7 |
+
}
|
| 8 |
+
.card-hover:hover {
|
| 9 |
+
transform: translateY(-2px);
|
| 10 |
+
box-shadow: 0 8px 24px rgba(0,0,0,0.08);
|
| 11 |
+
}
|
| 12 |
+
:root {
|
| 13 |
+
--color-primary: #6D4AFF;
|
| 14 |
+
--color-secondary: #F3F4F6;
|
| 15 |
+
--radius-card: 12px;
|
| 16 |
+
--radius-button: 10px;
|
| 17 |
+
--radius-tag: 20px;
|
| 18 |
+
--shadow-default: 0 1px 3px rgba(0, 0, 0, 0.08);
|
| 19 |
}
|
| 20 |
|
| 21 |
+
body {
|
| 22 |
+
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
|
|
| 23 |
}
|
| 24 |
|
| 25 |
+
/* Animation for play button */
|
| 26 |
+
@keyframes pulse {
|
| 27 |
+
0% { transform: scale(1); opacity: 1; }
|
| 28 |
+
50% { transform: scale(1.1); opacity: 0.7; }
|
| 29 |
+
100% { transform: scale(1); opacity: 1; }
|
| 30 |
}
|
| 31 |
|
| 32 |
+
.playing {
|
| 33 |
+
animation: pulse 1.5s infinite;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
+
/* Accessibility focus styles */
|
| 37 |
+
button:focus, a:focus, input:focus {
|
| 38 |
+
outline: 2px solid var(--color-primary);
|
| 39 |
+
outline-offset: 2px;
|
| 40 |
}
|
| 41 |
+
|
| 42 |
+
/* Responsive adjustments */
|
| 43 |
+
@media (max-width: 640px) {
|
| 44 |
+
.sound-card {
|
| 45 |
+
flex-direction: column;
|
| 46 |
+
}
|
| 47 |
+
}
|