Skip to content

Commit

Permalink
add first featured blog! nonono review
Browse files Browse the repository at this point in the history
  • Loading branch information
asl3 committed Mar 7, 2024
1 parent 3a4bffd commit 2c8d1d6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
11 changes: 0 additions & 11 deletions content/featured/Coming Soon/index.md

This file was deleted.

Binary file removed content/featured/Coming Soon/placeholder.jpeg
Binary file not shown.
File renamed without changes
11 changes: 11 additions & 0 deletions content/featured/nonono/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
date: '1'
title: 'NONONO? More like YESYESYES'
cover: './nonono_cover.jpg'
github: ''
external: 'https://mandymade.digitalpress.blog/nonono/'
keywords:
- food
---

Tamago bacon yakitori and saucy ramen broth were the stars.
Binary file added content/featured/nonono/nonono_cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions src/components/sections/featured.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const StyledProject = styled.li`
padding: 25px 25px 20px;
}
}
.project-tech-list {
.project-keywords-list {
justify-content: flex-end;
@media (max-width: 768px) {
Expand Down Expand Up @@ -181,7 +181,7 @@ const StyledProject = styled.li`
}
}
.project-tech-list {
.project-keywords-list {
display: flex;
flex-wrap: wrap;
position: relative;
Expand Down Expand Up @@ -319,7 +319,7 @@ const Featured = () => {
gatsbyImageData(width: 700, placeholder: BLURRED, formats: [AUTO, WEBP, AVIF])
}
}
tech
keywords
github
external
cta
Expand Down Expand Up @@ -348,21 +348,21 @@ const Featured = () => {
return (
<section id="projects">
<h2 className="numbered-heading" ref={revealTitle}>
Blog Posts
Featured Blog Posts
</h2>

<StyledProjectsGrid>
{featuredProjects &&
featuredProjects.map(({ node }, i) => {
const { frontmatter, html } = node;
const { external, title, tech, github, cover, cta } = frontmatter;
const { external, title, keywords, github, cover, cta } = frontmatter;
const image = getImage(cover);

return (
<StyledProject key={i} ref={el => (revealProjects.current[i] = el)}>
<div className="project-content">
<div>
<p className="project-overline">Featured Blog</p>
<p className="project-overline">Restaurant review</p>

<h3 className="project-title">
<a href={external}>{title}</a>
Expand All @@ -373,10 +373,10 @@ const Featured = () => {
dangerouslySetInnerHTML={{ __html: html }}
/>

{tech.length && (
<ul className="project-tech-list">
{tech.map((tech, i) => (
<li key={i}>{tech}</li>
{keywords.length && (
<ul className="project-keywords-list">
{keywords.map((keywords, i) => (
<li key={i}>{keywords}</li>
))}
</ul>
)}
Expand Down

0 comments on commit 2c8d1d6

Please sign in to comment.