Skip to content

Commit

Permalink
add recipes + update css
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilDaiguille committed Nov 10, 2024
1 parent 6ffa7a1 commit 12e9374
Show file tree
Hide file tree
Showing 16 changed files with 426 additions and 53 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Deploy Jekyll with GitHub Pages dependencies preinstalled
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
branches: ['master']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -18,7 +18,7 @@ permissions:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: false

jobs:
Expand Down
4 changes: 2 additions & 2 deletions a-propos-de-nous/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ <h3>Partage</h3>
<h2>Notre Équipe</h2>
<div class="team-grid">
<article class="team-member">
<img src="../assets/images/profil/marie.webp" alt="Chef Marie Dubois" class="member-photo" loading="lazy" />
<img src="../assets/images/profil/marie.webp" alt="Chef Marie Dubois" class="member-photo" loading="lazy" width="351" height="197" />
<h3>Marie Dubois</h3>
<p>Chef Cuisinière &amp; Fondatrice</p>
</article>

<article class="team-member">
<img src="../assets/images/profil/pierre.webp" alt="Pierre Martin" class="member-photo" loading="lazy" />
<img src="../assets/images/profil/pierre.webp" alt="Pierre Martin" class="member-photo" loading="lazy" width="351" height="197" />
<h3>Pierre Martin</h3>
<p>Expert Culinaire &amp; Rédacteur</p>
</article>
Expand Down
2 changes: 1 addition & 1 deletion assets/css/app.css

Large diffs are not rendered by default.

55 changes: 46 additions & 9 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
src: url('../fonts/Montserrat-VariableFont_wght.woff2') format('woff2');
font-display: swap;
}

html {
font-size: 62.5%;
scroll-behavior: smooth;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

h1,
Expand Down Expand Up @@ -95,14 +99,17 @@ header h1 {
border-radius: 5px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease;

@media (max-width: 480px) {
padding: 1rem;
}

img {
width: 4.8rem;
height: 4.8rem;
}
}

header {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
Expand All @@ -112,30 +119,36 @@ header {
max-width: 130rem;
margin: 0 auto;
}

header .navbar {
display: flex;
justify-content: center;
align-items: center;

padding: 1rem 2rem;

@media (max-width: 480px) {
padding: 1rem;
}

ul {
display: flex;
gap: 2rem;

li {
a {
font-size: 1.6rem;
font-weight: 600;
transition: color 0.3s ease;

&:hover {
color: #0b4824;
}
}
}
}
}

/* Main Content */
main {
padding: 2rem;
Expand All @@ -153,7 +166,7 @@ main {
}

.hero-banner img {
height: 40rem;
height: 45rem;
object-position: center;
}

Expand Down Expand Up @@ -227,7 +240,7 @@ h3 {
/* Recipe Cards */
.recipes-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(40rem, 1fr));
grid-template-columns: repeat(auto-fit, minmax(39rem, 1fr));
gap: 1rem;
margin-top: 2rem;
justify-items: center;
Expand All @@ -237,27 +250,40 @@ h3 {

.recipe-card {
position: relative;
display: flex;
margin: 0;
padding: 2rem;
background-color: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
width: 100%;
border: 1px solid #e0e0e0;

@media (max-width: 768px) {
max-width: 35rem;
}

h3 {
text-align: center;
font-size: 1.8rem;
margin: 1rem auto;
}

p {
font-size: 1.6rem;
padding: 1rem;
flex-grow: 1;
}

a {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
figure {
img {
aspect-ratio: 16/9;
border-radius: 8px;
}
}
Expand All @@ -267,9 +293,15 @@ h3 {
.recipe-meta {
display: flex;
justify-content: space-between;
margin-top: 1.5rem;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
font-size: 1.4rem;
color: #666;
padding: 1rem 2rem;
background: #ececec;
border: 1px solid #ccc;
border-radius: 0.25rem;
}

/* Tips Section */
Expand Down Expand Up @@ -314,6 +346,7 @@ footer p {
border-radius: 5px;
font-size: 1.4rem;
}

footer a {
color: #005724;
}
Expand Down Expand Up @@ -377,13 +410,15 @@ footer a {
.separator {
color: #666;
}

.hero-banner-flex {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(39rem, 1fr));
gap: 2rem;
align-items: center;
justify-content: center;
}

.recipe-article {
background: white;
border-radius: 10px;
Expand Down Expand Up @@ -417,12 +452,6 @@ footer a {
font-size: 1.6rem;
}

.recipe-meta {
padding: 2rem;
background: #f8f8f8;
border-bottom: 1px solid #eee;
}

.recipe-info {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -601,6 +630,7 @@ footer a {
font-size: 1.4rem;
}
}

/* Section FAQ principale */
.faq-section {
margin: 3rem auto;
Expand Down Expand Up @@ -690,6 +720,7 @@ footer a {
opacity: 0;
transform: translateY(-10px);
}

to {
opacity: 1;
transform: translateY(0);
Expand Down Expand Up @@ -824,13 +855,15 @@ footer a {
border-left: 8px solid #007bff;
border-radius: 8px;
}

.article-content figure img {
border-radius: 8px;
width: 100%;
height: auto;
object-fit: cover;
margin-bottom: 1.5rem;
}

/* Titres */
.article-content h2 {
font-size: 2.4rem;
Expand Down Expand Up @@ -933,14 +966,17 @@ footer a {
height: 100vh;
font-size: 2rem;
color: #333;

h1 {
font-size: 6rem;
color: #333;
}

p {
font-size: 4rem;
color: #666;
}

a {
background-color: #177940;
font-weight: bold;
Expand All @@ -950,6 +986,7 @@ footer a {
display: inline-block;
border-radius: 5px;
margin-top: 2rem;

:hover {
background-color: #135f33;
}
Expand Down
Binary file added assets/images/bao-buns-vegan.webp
Binary file not shown.
Loading

0 comments on commit 12e9374

Please sign in to comment.