Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

add +page.svelte for home, downloads, hotmart, and settings routes with initial layout and styles

Tonho999c3461509c
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
new file mode 100644
index 00000000..e38a41b5
--- /dev/null
+++ b/src/routes/+page.svelte
@@ -0,0 +1,75 @@
+<script lang="ts">
+ let url = $state("");
+</script>
+
+<div class="home">
+ <div class="hero">
+ <h1 class="title">OmniGet</h1>
+ <p class="subtitle">Native downloads, no external dependencies</p>
+ </div>
+
+ <div class="omnibox-wrapper">
+ <input
+ class="omnibox"
+ type="text"
+ placeholder="Paste a URL to get started"
+ bind:value={url}
+ />
+ </div>
+</div>
+
+<style>
+ .home {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ min-height: calc(100vh - 64px);
+ gap: 32px;
+ }
+
+ .hero {
+ text-align: center;
+ }
+
+ .title {
+ font-size: 3rem;
+ font-weight: 700;
+ letter-spacing: -1px;
+ background: linear-gradient(135deg, var(--accent), #5dade2);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ background-clip: text;
+ }
+
+ .subtitle {
+ margin-top: 8px;
+ color: var(--text-muted);
+ font-size: 1.05rem;
+ }
+
+ .omnibox-wrapper {
+ width: 100%;
+ max-width: 560px;
+ }
+
+ .omnibox {
+ width: 100%;
+ padding: 14px 20px;
+ font-size: 0.95rem;
+ background: #2a2a2a;
+ border-radius: 12px;
+ color: var(--text);
+ border: 1px solid transparent;
+ transition: border-color 0.2s, box-shadow 0.2s;
+ }
+
+ .omnibox::placeholder {
+ color: var(--text-muted);
+ }
+
+ .omnibox:focus {
+ border-color: var(--accent);
+ box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.15);
+ }
+</style>
diff --git a/src/routes/downloads/+page.svelte b/src/routes/downloads/+page.svelte
new file mode 100644
index 00000000..8a4d121b
--- /dev/null
+++ b/src/routes/downloads/+page.svelte
@@ -0,0 +1,40 @@
+<div class="downloads">
+ <h1 class="page-title">Downloads</h1>
+
+ <div class="empty">
+ <svg viewBox="0 0 24 24" width="40" height="40" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round">
+ <path d="M12 3v12m0 0l-4-4m4 4l4-4" />
+ <path d="M4 17v2a1 1 0 001 1h14a1 1 0 001-1v-2" />
+ </svg>
+ <p class="empty-text">No downloads in progress</p>
+ </div>
+</div>
+
+<style>
+ .downloads {
+ max-width: 600px;
+ }
+
+ .page-title {
+ font-size: 1.5rem;
+ font-weight: 600;
+ margin-bottom: 24px;
+ }
+
+ .empty {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 16px;
+ min-height: 300px;
+ background: var(--bg-card);
+ border: 1px solid var(--border);
+ border-radius: 12px;
+ color: var(--text-muted);
+ }
+
+ .empty-text {
+ font-size: 0.95rem;
+ }
+</style>
diff --git a/src/routes/hotmart/+page.svelte b/src/routes/hotmart/+page.svelte
new file mode 100644
index 00000000..eda9a16f
--- /dev/null
+++ b/src/routes/hotmart/+page.svelte
@@ -0,0 +1,126 @@
+<script lang="ts">
+ let email = $state("");
+ let password = $state("");
+</script>
+
+<div class="hotmart">
+ <h1 class="page-title">Hotmart</h1>
+
+ <div class="card">
+ <h2 class="card-title">Login</h2>
+ <form class="form" onsubmit={(e) => e.preventDefault()}>
+ <label class="field">
+ <span class="label">Email</span>
+ <input
+ type="email"
+ placeholder="[email protected]"
+ bind:value={email}
+ class="input"
+ />
+ </label>
+ <label class="field">
+ <span class="label">Password</span>
+ <input
+ type="password"
+ placeholder="Your password"
+ bind:value={password}
+ class="input"
+ />
+ </label>
+ <button type="submit" class="btn">Sign in</button>
+ </form>
+ </div>
+
+ <div class="card empty">
+ <p class="empty-text">Your courses will appear here</p>
+ </div>
+</div>
+
+<style>
+ .hotmart {
+ max-width: 480px;
+ }
+
+ .page-title {
+ font-size: 1.5rem;
+ font-weight: 600;
+ margin-bottom: 24px;
+ }
+
+ .card {
+ background: var(--bg-card);
+ border: 1px solid var(--border);
+ border-radius: 12px;
+ padding: 24px;
+ margin-bottom: 16px;
+ }
+
+ .card-title {
+ font-size: 1rem;
+ font-weight: 500;
+ margin-bottom: 20px;
+ }
+
+ .form {
+ display: flex;
+ flex-direction: column;
+ gap: 16px;
+ }
+
+ .field {
+ display: flex;
+ flex-direction: column;
+ gap: 6px;
+ }
+
+ .label {
+ font-size: 0.85rem;
+ color: var(--text-muted);
+ }
+
+ .input {
+ width: 100%;
+ padding: 10px 14px;
+ font-size: 0.9rem;
+ background: #2a2a2a;
+ border-radius: 8px;
+ color: var(--text);
+ border: 1px solid var(--border);
+ transition: border-color 0.2s;
+ }
+
+ .input::placeholder {
+ color: var(--text-muted);
+ }
+
+ .input:focus {
+ border-color: var(--accent);
+ }
+
+ .btn {
+ padding: 10px 20px;
+ font-size: 0.9rem;
+ font-weight: 500;
+ background: var(--accent);
+ color: #fff;
+ border-radius: 8px;
+ transition: background-color 0.2s;
+ margin-top: 4px;
+ }
+
+ .btn:hover {
+ background: var(--accent-hover);
+ }
+
+ .empty {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ min-height: 120px;
+ }
+
+ .empty-text {
+ color: var(--text-muted);
+ font-size: 0.9rem;
+ }
+</style>
diff --git a/src/routes/settings/+page.svelte b/src/routes/settings/+page.svelte
new file mode 100644
index 00000000..a5be8d53
--- /dev/null
+++ b/src/routes/settings/+page.svelte
@@ -0,0 +1,68 @@
+<div class="settings">
+ <h1 class="page-title">Settings</h1>
+
+ <section class="section">
+ <h2 class="section-title">Appearance</h2>
+ <div class="card">
+ <p class="placeholder">Theme and display preferences</p>
+ </div>
+ </section>
+
+ <section class="section">
+ <h2 class="section-title">Download</h2>
+ <div class="card">
+ <p class="placeholder">Download path and behavior settings</p>
+ </div>
+ </section>
+
+ <section class="section">
+ <h2 class="section-title">Hotmart</h2>
+ <div class="card">
+ <p class="placeholder">Account and sync settings</p>
+ </div>
+ </section>
+
+ <section class="section">
+ <h2 class="section-title">Advanced</h2>
+ <div class="card">
+ <p class="placeholder">Concurrent downloads, cache, and logs</p>
+ </div>
+ </section>
+</div>
+
+<style>
+ .settings {
+ max-width: 560px;
+ }
+
+ .page-title {
+ font-size: 1.5rem;
+ font-weight: 600;
+ margin-bottom: 24px;
+ }
+
+ .section {
+ margin-bottom: 20px;
+ }
+
+ .section-title {
+ font-size: 0.85rem;
+ font-weight: 500;
+ color: var(--text-muted);
+ text-transform: uppercase;
+ letter-spacing: 0.5px;
+ margin-bottom: 8px;
+ }
+
+ .card {
+ background: var(--bg-card);
+ border: 1px solid var(--border);
+ border-radius: 12px;
+ padding: 20px;
+ }
+
+ .placeholder {
+ color: var(--text-muted);
+ font-size: 0.9rem;
+ }
+</style>