Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/publish-catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [main]
paths:
- 'source/wines/**'
- 'website/**'
- 'imgs/**'
workflow_dispatch:

permissions:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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 }}
token: ${{ secrets.GITHUB_TOKEN }}
136 changes: 136 additions & 0 deletions website/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>ViNotes - Score wines. Remember experiences.</title>
<link rel="icon" href="src/vinotes.ico">
<link rel="stylesheet" href="styles.css">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Playfair+Display:wght@400;700&display=swap" rel="stylesheet">
</head>
<body data-theme="dark">
<header class="topnav">
<div class="container">
<a class="brand" href="#">ViNotes</a>
<nav class="nav">
<a href="#features">Features</a>
<a href="#screenshots">Screenshots</a>
<a href="#privacy">Privacy</a>
<a href="#catalogue">Catalogue</a>
<a href="#contribute">Contribute</a>
</nav>
<div class="actions">
<a class="btn primary" href="https://github.com/T0liver/ViNotes/releases">Download</a>
<a class="btn" href="https://github.com/T0liver/ViNotes">Source</a>
<button id="themeToggle" aria-label="Toggle theme">☀️</button>
</div>
</div>
</header>

<main>
<section id="hero" class="hero">
<div class="container hero-grid">
<div class="hero-copy">
<h1>Score wines. Remember experiences. Discover patterns.</h1>
<p class="lede">A privacy-first, offline-capable wine tasting journal for Android. Structured notes, cellar browsing, and lightweight catalogue sync.</p>
<p class="hero-ctas">
<a class="btn primary large" href="https://github.com/T0liver/ViNotes/releases">Download</a>
<a class="btn ghost" href="https://github.com/T0liver/ViNotes">Source Code</a>
</p>
<ul class="badges">
<li>Offline-first</li>
<li>Open source</li>
<li>Privacy-first</li>
</ul>
</div>
<div class="hero-shot">
<div class="device-frame">
<img alt="Dashboard screenshot" src="src/dashboard.png">
</div>
</div>
</div>
</section>

<section id="features" class="section">
<div class="container">
<h2>Features</h2>
<div class="cards">
<article class="card">
<h3>Structured tasting notes</h3>
<p>Record appearance, nose, palate and finish with guided fields for consistent, searchable notes.</p>
</article>
<article class="card">
<h3>Cellar & search</h3>
<p>Keep a local cellar, filter and search your wines quickly, and track bottle locations.</p>
</article>
<article class="card">
<h3>Statistics & trends</h3>
<p>See tasting patterns and simple visualizations of your palate over time.</p>
</article>
<article class="card">
<h3>Privacy & offline</h3>
<p>No accounts, no ads - your notes stay on your device and work offline.</p>
</article>
</div>
</div>
</section>

<section id="screenshots" class="section light">
<div class="container">
<h2>Screenshots</h2>
<div class="shots">
<figure><img src="src/dashboard.png" alt="Dashboard"><figcaption>Dashboard</figcaption></figure>
<figure><img src="src/tasting-screen.png" alt="Tasting form"><figcaption>Tasting form</figcaption></figure>
<figure><img src="src/wine-screen.png" alt="Wine detail"><figcaption>Wine detail</figcaption></figure>
<figure><img src="src/stats-screen.png" alt="Statistics"><figcaption>Statistics</figcaption></figure>
</div>
</div>
</section>

<section id="privacy" class="section">
<div class="container">
<h2>Privacy & offline-first</h2>
<p>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.</p>
</div>
</section>

<section id="catalogue" class="section light">
<div class="container">
<h2>Catalogue</h2>
<p>The app downloads a small JSON catalogue from the same domain. The root files are:</p>
<ul class="mono">
<li>/manifest.json - points to the current full and delta files</li>
<li>/full.json - the full catalogue</li>
<li>/delta-YYYY-MM-DD.json - incremental updates</li>
</ul>
<p>These files are hosted alongside this site so the Android app can fetch them from the root domain without configuration changes.</p>
<p>Want to contribute to the catalogue? Edit files in <code>catalogue branch</code> and open a pull request!</p>
</div>
</section>

<section id="tech" class="section">
<div class="container">
<h2>Open source & tech</h2>
<p>ViNotes is built with modern Android tooling: Jetpack Compose, Material3, Hilt, Room, Retrofit, and Kotlin. The website and catalogue are published from this repository.</p>
<p class="small"><a href="https://github.com/T0liver/ViNotes">View the repository on GitHub</a></p>
</div>
</section>

<section id="contribute" class="section light">
<div class="container">
<h2>Download & Contribute</h2>
<p>Get releases from GitHub or build from source. To contribute catalogue entries, edit files in <code>source/wines/</code> and open a pull request.</p>
<p class="actions-row"><a class="btn primary" href="https://github.com/T0liver/ViNotes/releases">Download</a> <a class="btn" href="https://github.com/T0liver/ViNotes">Source</a></p>
</div>
</section>
</main>

<footer class="site-footer">
<div class="container">
<p>ViNotes - privacy-first wine tasting journal • <a href="https://github.com/T0liver/ViNotes">GitHub</a> • License: MIT</p>
</div>
</footer>

<script src="script.js"></script>
</body>
</html>
19 changes: 19 additions & 0 deletions website/script.js
Original file line number Diff line number Diff line change
@@ -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'});
}
})
})
});
Binary file added website/src/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/stats-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/tasting-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/vinotes.ico
Binary file not shown.
Binary file added website/src/vinotes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/src/wine-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions website/styles.css
Original file line number Diff line number Diff line change
@@ -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)}
Loading