Files
Cookbook/backend/views/index.ejs
2025-06-09 22:32:25 +02:00

131 lines
2.4 KiB
Plaintext
Raw 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="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cookbook</title>
<!-- San Francisco System Font -->
<style>
html {
font-family: -apple-system, BlinkMacSystemFont, "San Francisco",
"Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
</style>
</head>
<body>
<main class="container">
<header>
<h1>Cookbook</h1>
<div class="button-group">
<button onclick="syncRecipes()">🔄 Sync Recipes</button>
<a href="/add" class="secondary-button"> Add Recipe</a>
</div>
</header>
<section id="recipes" class="recipes-list"></section>
</main>
</body>
</html>
<style>
/* Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #f5f5f7;
color: #1d1d1f;
font-size: 16px;
line-height: 1.5;
padding: 2rem;
display: flex;
justify-content: center;
min-height: 100vh;
}
/* Main container */
.container {
width: 100%;
max-width: 800px;
background-color: #fff;
border-radius: 20px;
padding: 2rem;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
/* Header */
header {
display: flex;
flex-direction: column;
gap: 1.5rem;
margin-bottom: 2rem;
text-align: center;
}
h1 {
font-size: 2rem;
font-weight: 600;
}
/* Button group */
.button-group {
display: flex;
justify-content: center;
gap: 1rem;
flex-wrap: wrap;
}
button,
.secondary-button {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 12px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
text-decoration: none;
display: inline-block;
text-align: center;
}
/* Primary button */
button {
background-color: #007aff;
color: #fff;
}
button:hover {
background-color: #005ecb;
}
/* Secondary button (styled link) */
.secondary-button {
background-color: #e5e5ea;
color: #1d1d1f;
}
.secondary-button:hover {
background-color: #d1d1d6;
}
/* Recipe list */
.recipes-list {
display: flex;
flex-direction: column;
gap: 1rem;
}
/* Placeholder for recipe cards (can be enhanced later) */
.recipe-card {
padding: 1rem;
border-radius: 16px;
background-color: #f9f9fa;
border: 1px solid #e0e0e0;
}
</style>