Files
2026-12-02 02:26:01 +00:00

125 lines
5.0 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#f6f2e9">
<title>Sofra Planı — Haftalık Yemek ve Market</title>
<link rel="stylesheet" href="stil.css">
</head>
<body>
<header class="tepe">
<div class="tepe-ic">
<div class="marka">
<svg class="marka-ikon" viewBox="0 0 32 32" aria-hidden="true">
<circle cx="16" cy="16" r="15" fill="none" stroke="currentColor" stroke-width="1.6"/>
<path d="M8 20c2-5 4-5 6 0s4 5 6 0 4-5 6 0" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/>
<circle cx="16" cy="10" r="1.8" fill="currentColor"/>
</svg>
<span class="marka-ad">Sofra Planı</span>
</div>
<nav class="sekme-cubugu" role="tablist">
<button class="sekme" id="sekme-plan" role="tab" aria-selected="true" data-gorunum="plan">Plan</button>
<button class="sekme" id="sekme-market" role="tab" aria-selected="false" data-gorunum="market">
Market
<span class="rozet" id="market-rozet" hidden>0</span>
</button>
</nav>
</div>
</header>
<main id="ana" class="govde">
<!-- GÖRÜNÜM: HAFTALIK PLAN -->
<section id="gorunum-plan" class="gorunum" aria-labelledby="plan-baslik">
<div class="ust-serit">
<div class="hafta-gezinme">
<button class="yuvarlak-btn" id="onceki-hafta" aria-label="Önceki hafta">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M15 5l-7 7 7 7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
<div class="hafta-etiket">
<h1 id="plan-baslik">Bu Hafta</h1>
<p id="hafta-araligi" class="soluk">—</p>
</div>
<button class="yuvarlak-btn" id="sonraki-hafta" aria-label="Sonraki hafta">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 5l7 7-7 7" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
</div>
<button class="ikincil-btn" id="bu-hafta-btn" hidden>Bu haftaya dön</button>
</div>
<div class="ozet-kart">
<div class="ozet-oge">
<span class="ozet-sayi" id="ozet-yemek">0</span>
<span class="ozet-ad">yemek planlandı</span>
</div>
<div class="ozet-oge">
<span class="ozet-sayi" id="ozet-malzeme">0</span>
<span class="ozet-ad">malzeme girdisi</span>
</div>
<button class="ana-btn" id="liste-olustur-btn">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 6h16M4 12h16M4 18h10" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
Market listesi oluştur
</button>
</div>
<div id="gunler" class="gunler"></div>
<p class="ipucu">Malzemeleri yemeğe girerken miktar yazarsan (ör. "2 adet", "500 gram"), aynı malzeme toplanırken miktarlar da birleşir.</p>
</section>
<!-- GÖRÜNÜM: MARKET LİSTESİ -->
<section id="gorunum-market" class="gorunum" aria-labelledby="market-baslik" hidden>
<div class="ust-serit market-ust">
<div>
<h1 id="market-baslik">Market Listesi</h1>
<p id="market-alt-yazi" class="soluk">Plan oluşturunca burada tek liste çıkar.</p>
</div>
<div class="market-arac">
<button class="ikincil-btn" id="liste-yenile-btn" hidden>Listeyi güncelle</button>
<button class="ikincil-btn tehlike" id="liste-temizle-btn" hidden>Listeyi temizle</button>
</div>
</div>
<div id="market-icerik"></div>
</section>
</main>
<!-- YEMEK / MALZEME DÜZENLEME SAYFASI -->
<div class="perde" id="perde" hidden></div>
<aside class="sayfa" id="yemek-sayfa" role="dialog" aria-modal="true" aria-labelledby="yemek-sayfa-baslik" hidden>
<div class="sayfa-ust">
<h2 id="yemek-sayfa-baslik">Yemek</h2>
<button class="yuvarlak-btn" id="sayfa-kapat" aria-label="Kapat">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M6 6l12 12M18 6L6 18" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
</button>
</div>
<label class="alan">
<span class="alan-ad">Yemek adı</span>
<input type="text" id="yemek-adi" placeholder="Örn. Mercimek çorbası" autocomplete="off" maxlength="60">
</label>
<div class="alan">
<span class="alan-ad">Malzemeler</span>
<div id="malzeme-satirlari" class="malzeme-satirlari"></div>
<button class="ekle-satir-btn" id="malzeme-ekle-btn">
<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M12 5v14M5 12h14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
Malzeme ekle
</button>
</div>
<div class="sayfa-alt">
<button class="ikincil-btn tehlike" id="yemek-sil-btn" hidden>Yemeği sil</button>
<button class="ana-btn genis" id="yemek-kaydet-btn">Kaydet</button>
</div>
</aside>
<div class="bildirim" id="bildirim" role="status" hidden></div>
<script src="uygulama.js"></script>
</body>
</html>