updated frontend feel
This commit is contained in:
32
src/_layouts/home.njk
Normal file
32
src/_layouts/home.njk
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{{ title }}</title>
|
||||||
|
<link rel="stylesheet" href="/css/style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<div class="Header">
|
||||||
|
<h1>Great Johnson Family Recipe Index</h1>
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/">Home</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="container">
|
||||||
|
{{ content | safe }}
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<div class="container">
|
||||||
|
<p>© 2026 Family Recipes</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
{{ title }}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Home
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ content | safe }}
|
|
||||||
@@ -1,9 +1,53 @@
|
|||||||
{{ title }}
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
Home
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>{{ title }} - Family Recipes</title>
|
||||||
|
<link rel="stylesheet" href="/css/style.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header class="site-nav-header">
|
||||||
|
<div class="Header">
|
||||||
|
<h1><a href="/">Family Recipes</a></h1>
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/">Home</a></li>
|
||||||
|
<li><a href="/recipies/">Recipes</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main class="container">
|
||||||
|
<article class="recipe-card-page">
|
||||||
|
<div class="recipe-header">
|
||||||
|
<div class="recipe-title-section">
|
||||||
|
<h1 class="recipe-title">{{ title | upper }}</h1>
|
||||||
|
{% if author %}
|
||||||
|
<p class="recipe-author">From the kitchen of: <em>{{ author }}</em></p>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
{% if image %}
|
||||||
|
<div class="recipe-illustration">
|
||||||
|
<img src="{{ image }}" alt="{{ title }}">
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<hr class="recipe-divider">
|
||||||
|
|
||||||
|
<div class="recipe-body">
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
|
</div>
|
||||||
|
</article>
|
||||||
|
</main>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
<div class="container">
|
||||||
|
<p>© 2026 Family Recipes</p>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,232 @@
|
|||||||
|
/* Warm, cozy recipe card theme */
|
||||||
:root {
|
:root {
|
||||||
--primary-color: #d97706;
|
--primary-color: #b45309; /* Warm amber / terracotta */
|
||||||
--bg: #fffbd8;
|
--primary-hover: #883905;
|
||||||
--secondary-color: #fef3c7;
|
--bg-color: #f7f4ee; /* Soft warm linen background */
|
||||||
--font-family: system-ui, -apple-system, sans-serif;
|
--card-bg: #ffffff; /* Crisp paper white */
|
||||||
|
--text-color: #292524; /* Soft warm charcoal */
|
||||||
|
--border-color: #e7e0d3; /* Gentle warm border */
|
||||||
|
--font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
|
||||||
|
--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: var(--font-sans);
|
||||||
|
background-color: var(--bg-color);
|
||||||
|
color: var(--text-color);
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
line-height: 1.65;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Container */
|
||||||
|
.container {
|
||||||
|
max-width: 820px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header & Navigation */
|
||||||
|
header {
|
||||||
|
background-color: #ffffff;
|
||||||
|
border-bottom: 1px solid var(--border-color);
|
||||||
|
padding: 1.1rem 0;
|
||||||
|
margin-bottom: 2.5rem;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 100;
|
||||||
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
|
||||||
|
}
|
||||||
|
|
||||||
|
.Header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
max-width: 820px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-family: var(--font-serif);
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 a {
|
||||||
|
color: var(--primary-color);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
display: flex;
|
||||||
|
list-style: none;
|
||||||
|
gap: 1.75rem;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
color: var(--text-color);
|
||||||
|
text-decoration: none;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
transition: color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a:hover {
|
||||||
|
color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Content Area */
|
||||||
|
main, .Content {
|
||||||
|
min-height: 65vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Footer */
|
||||||
|
footer, .Footer {
|
||||||
|
border-top: 1px solid var(--border-color);
|
||||||
|
margin-top: 4rem;
|
||||||
|
padding: 2.5rem 0;
|
||||||
|
text-align: center;
|
||||||
|
color: #78716c;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
background-color: #faf8f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Recipe Cards Grid */
|
||||||
|
.recipe-grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
||||||
|
gap: 1.5rem;
|
||||||
|
margin-top: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-card {
|
||||||
|
background-color: var(--card-bg);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 1.5rem;
|
||||||
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-card:hover {
|
||||||
|
transform: translateY(-3px);
|
||||||
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-card h3 {
|
||||||
|
font-family: var(--font-serif);
|
||||||
|
font-size: 1.25rem;
|
||||||
|
margin: 0 0 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-card h3 a {
|
||||||
|
color: #1c1917;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-card h3 a:hover {
|
||||||
|
color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Classic Printed Recipe Page Layout */
|
||||||
|
.recipe-card-page {
|
||||||
|
background-color: #ffffff;
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
|
border-radius: 12px;
|
||||||
|
padding: 3rem 2.5rem;
|
||||||
|
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-title-section {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-title {
|
||||||
|
font-family: var(--font-serif);
|
||||||
|
font-size: 2.1rem;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.03em;
|
||||||
|
margin: 0 0 0.4rem 0;
|
||||||
|
color: #1c1917;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-author {
|
||||||
|
font-size: 1rem;
|
||||||
|
color: #78716c;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-author em {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-illustration {
|
||||||
|
width: 100px;
|
||||||
|
height: 100px;
|
||||||
|
border: 1px dashed #d6cebe;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 6px;
|
||||||
|
background: #faf8f5;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-illustration img {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-divider {
|
||||||
|
border: none;
|
||||||
|
border-top: 2px solid var(--border-color);
|
||||||
|
margin: 1.5rem 0 2.25rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-body h2,
|
||||||
|
.recipe-body h3 {
|
||||||
|
font-family: var(--font-serif);
|
||||||
|
font-size: 1.15rem;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 0.06em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-top: 1.75rem;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
color: var(--primary-color);
|
||||||
|
border-bottom: 1px solid #f2ece1;
|
||||||
|
padding-bottom: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-body ul {
|
||||||
|
padding-left: 1.25rem;
|
||||||
|
margin-bottom: 1.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-body li {
|
||||||
|
margin-bottom: 0.4rem;
|
||||||
|
color: #44403c;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recipe-body p {
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
color: #292524;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
24
src/index.md
24
src/index.md
@@ -1,17 +1,19 @@
|
|||||||
---
|
---
|
||||||
layout: note.njk
|
layout: home.njk
|
||||||
title: My First Note
|
title: Homepage
|
||||||
---
|
---
|
||||||
# Welcome to my notes!
|
# Great Johnshon Family Recipies
|
||||||
|
|
||||||
This is a basic Eleventy setup. Any Markdown file you place in the `src` folder will automatically be converted to a page.
|
An index of family recipes collected over generations.
|
||||||
|
|
||||||
* It supports lists
|
<div class="recipe-grid">
|
||||||
* **Bold text**
|
|
||||||
* [Links](https://11ty.dev)
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
{% for recipe in collections.recipe %}
|
{% for recipe in collections.recipe %}
|
||||||
<li><a href="{{ recipe.url }}">{{ recipe.data.title }}</a></li>
|
<article class="recipe-card">
|
||||||
|
<h3><a href="{{ recipe.url }}">{{ recipe.data.title }}</a></h3>
|
||||||
|
{% if recipe.data.author %}
|
||||||
|
<p class="recipe-author">From the kitchen of: <em>{{ recipe.data.author }}</em></p>
|
||||||
|
{% endif %}
|
||||||
|
</article>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user