diff --git a/.github/workflows/publish-catalog.yml b/.github/workflows/publish-catalog.yml index f3d4a55..2be8ecd 100644 --- a/.github/workflows/publish-catalog.yml +++ b/.github/workflows/publish-catalog.yml @@ -5,6 +5,8 @@ on: branches: [main] paths: - 'source/wines/**' + - 'website/**' + - 'imgs/**' workflow_dispatch: permissions: @@ -28,6 +30,11 @@ jobs: - name: Build catalog run: python .github/scripts/build_catalog.py + - name: Merge website into publish directory + run: | + mkdir -p catalog + rsync -av website/ catalog/ || true + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f0abb52..c795db2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: # Signing setup - name: Decode keystore run: | - echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > app/release.keystore + echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > app/release.jks - name: Writing gradle.properties run: | @@ -108,4 +108,4 @@ jobs: with: artifacts: "vinotes-v${{ steps.f_tag.outputs.VERSION }}.apk,vinotes-v${{ steps.f_tag.outputs.VERSION }}.aab" tag: v${{ steps.f_tag.outputs.VERSION }} - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/website/index.html b/website/index.html new file mode 100644 index 0000000..f3e7a62 --- /dev/null +++ b/website/index.html @@ -0,0 +1,136 @@ + + + + + + ViNotes - Score wines. Remember experiences. + + + + + +
+
+ ViNotes + +
+ Download + Source + +
+
+
+ +
+
+
+
+

Score wines. Remember experiences. Discover patterns.

+

A privacy-first, offline-capable wine tasting journal for Android. Structured notes, cellar browsing, and lightweight catalogue sync.

+

+ Download + Source Code +

+
    +
  • Offline-first
  • +
  • Open source
  • +
  • Privacy-first
  • +
+
+
+
+ Dashboard screenshot +
+
+
+
+ +
+
+

Features

+
+
+

Structured tasting notes

+

Record appearance, nose, palate and finish with guided fields for consistent, searchable notes.

+
+
+

Cellar & search

+

Keep a local cellar, filter and search your wines quickly, and track bottle locations.

+
+
+

Statistics & trends

+

See tasting patterns and simple visualizations of your palate over time.

+
+
+

Privacy & offline

+

No accounts, no ads - your notes stay on your device and work offline.

+
+
+
+
+ +
+
+

Screenshots

+
+
Dashboard
Dashboard
+
Tasting form
Tasting form
+
Wine detail
Wine detail
+
Statistics
Statistics
+
+
+
+ +
+
+

Privacy & offline-first

+

ViNotes is designed to keep your tasting notes private. There are no accounts, no analytics, and no ads. Everything is stored locally and the app works fully offline.

+
+
+ +
+
+

Catalogue

+

The app downloads a small JSON catalogue from the same domain. The root files are:

+
    +
  • /manifest.json - points to the current full and delta files
  • +
  • /full.json - the full catalogue
  • +
  • /delta-YYYY-MM-DD.json - incremental updates
  • +
+

These files are hosted alongside this site so the Android app can fetch them from the root domain without configuration changes.

+

Want to contribute to the catalogue? Edit files in catalogue branch and open a pull request!

+
+
+ +
+
+

Open source & tech

+

ViNotes is built with modern Android tooling: Jetpack Compose, Material3, Hilt, Room, Retrofit, and Kotlin. The website and catalogue are published from this repository.

+

View the repository on GitHub

+
+
+ +
+
+

Download & Contribute

+

Get releases from GitHub or build from source. To contribute catalogue entries, edit files in source/wines/ and open a pull request.

+

Download Source

+
+
+
+ + + + + + diff --git a/website/script.js b/website/script.js new file mode 100644 index 0000000..17b5c48 --- /dev/null +++ b/website/script.js @@ -0,0 +1,19 @@ +document.addEventListener('DOMContentLoaded',()=>{ + const btn=document.getElementById('themeToggle'); + btn?.addEventListener('click',()=>{ + const body=document.body; + const next = body.getAttribute('data-theme')==='dark'?'light':'dark'; + body.setAttribute('data-theme',next); + }); + // Smooth anchor scrolling + document.querySelectorAll('a[href^="#"]').forEach(a=>{ + a.addEventListener('click',e=>{ + const href=a.getAttribute('href'); + if(href && href.startsWith('#')){ + e.preventDefault(); + const el=document.querySelector(href); + if(el) el.scrollIntoView({behavior:'smooth',block:'start'}); + } + }) + }) +}); diff --git a/website/src/dashboard.png b/website/src/dashboard.png new file mode 100644 index 0000000..7cdeece Binary files /dev/null and b/website/src/dashboard.png differ diff --git a/website/src/stats-screen.png b/website/src/stats-screen.png new file mode 100644 index 0000000..a09bacf Binary files /dev/null and b/website/src/stats-screen.png differ diff --git a/website/src/tasting-screen.png b/website/src/tasting-screen.png new file mode 100644 index 0000000..9566159 Binary files /dev/null and b/website/src/tasting-screen.png differ diff --git a/website/src/vinotes.ico b/website/src/vinotes.ico new file mode 100644 index 0000000..0d77e46 Binary files /dev/null and b/website/src/vinotes.ico differ diff --git a/website/src/vinotes.png b/website/src/vinotes.png new file mode 100644 index 0000000..85c0af3 Binary files /dev/null and b/website/src/vinotes.png differ diff --git a/website/src/wine-screen.png b/website/src/wine-screen.png new file mode 100644 index 0000000..4b78819 Binary files /dev/null and b/website/src/wine-screen.png differ diff --git a/website/styles.css b/website/styles.css new file mode 100644 index 0000000..3959f5b --- /dev/null +++ b/website/styles.css @@ -0,0 +1,67 @@ +:root{ + --burgundy-900:#4A0010; + --burgundy-700:#7B1D3A; + --burgundy-500:#A83256; + --gold-600:#B8860B; + --gold-400:#D4A843; + --cream-50:#FAF6F0; + --dark-surface:#1C1118; + --dark-bg:#120D0F; + --warm-gray-400:#8C7B6E; +} + +*{box-sizing:border-box} +body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial; margin:0; color:var(--cream-50); background:var(--dark-bg);} +.container{max-width:1100px;margin:0 auto;padding:24px} + +/* Top nav */ +.topnav{background:linear-gradient(180deg,rgba(26,12,15,0.6),rgba(18,13,15,0.95));backdrop-filter: blur(6px);position:sticky;top:0;z-index:20;border-bottom:1px solid rgba(255,255,255,0.03)} +.topnav .container{display:flex;align-items:center;gap:16px} +.brand{font-family:Playfair Display,serif;color:var(--burgundy-100);font-weight:700;text-decoration:none;font-size:20px} +.nav{margin-left:8px;display:flex;gap:16px;flex:1} +.nav a{color:var(--cream-50);text-decoration:none;opacity:0.9} +.actions{display:flex;gap:8px;align-items:center} +.btn{display:inline-block;padding:8px 12px;border-radius:8px;background:transparent;color:var(--cream-50);text-decoration:none;border:1px solid rgba(255,255,255,0.04)} +.btn.primary{background:linear-gradient(90deg,var(--gold-600),var(--gold-400));color:var(--dark-surface);border:none} +.btn.large{padding:12px 18px;border-radius:12px} +.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.06)} + +/* Hero */ +.hero{padding:56px 0} +.hero-grid{display:grid;grid-template-columns:1fr 380px;gap:28px;align-items:center} +.hero-copy h1{font-family:Playfair Display,serif;font-size:34px;line-height:1.05;margin:0 0 12px;color:var(--burgundy-100)} +.lede{color:var(--warm-gray-400);max-width:52ch} +.badges{display:flex;gap:8px;padding:0;margin:12px 0;list-style:none} +.badges li{background:rgba(255,255,255,0.03);padding:6px 8px;border-radius:8px;font-size:13px} +.device-frame{background:linear-gradient(180deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));padding:12px;border-radius:20px;box-shadow:0 6px 28px rgba(0,0,0,0.6)} +.device-frame img{width:100%;height:auto;border-radius:12px;display:block} + +/* Features */ +.section{padding:48px 0} +.section.light{background:linear-gradient(180deg,rgba(255,255,255,0.01),transparent)} +.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:18px} +.card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:18px;border-radius:12px} +.card h3{margin:0 0 8px;font-family:Playfair Display,serif} + +/* Screenshots */ +.shots{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:18px} +.shots figure{margin:0;background:var(--dark-surface);padding:12px;border-radius:12px} +.shots img{width:100%;height:auto;border-radius:8px} +.shots figcaption{color:var(--warm-gray-400);font-size:13px;margin-top:8px} + +.mono{font-family:monospace;background:rgba(255,255,255,0.02);padding:12px;border-radius:8px} + +.site-footer{padding:24px 0;background:transparent;color:var(--warm-gray-400)} + +/* Responsive */ +@media (max-width:900px){ + .hero-grid{grid-template-columns:1fr} + .nav{display:none} + .container{padding:16px} +} + +/* Light theme */ +body[data-theme="light"]{background:var(--cream-50);color:var(--warm-gray-800)} +body[data-theme="light"] .brand{color:var(--burgundy-700)} +body[data-theme="light"] .btn{color:var(--warm-gray-800);border:1px solid rgba(0,0,0,0.04);} +body[data-theme="light"] .btn.primary{color:var(--cream-50)}