Skip to content

Commit 0fa1b7a

Browse files
add blurbs to blogs
1 parent bc0c38f commit 0fa1b7a

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

scripts/createBlogHelpers.js

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const newBlog = () => `
5757
const getBlogObj = (title, file, link) => `
5858
{
5959
title: '${title}',
60+
blurb: 'Put here what you want to show up on the blog list page. This should be a short description of the blog post, usually in the blog thoughts section as well.'
6061
author: 'Ethan Bonsignori',
6162
category: 'Technology',
6263
createdAt: '${getBlogDate()}',

src/assets/blogPosts.js

+11-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { PLACEHOLDER_SPLASH_URL } from '../../scripts/createBlogHelpers';
88
const posts = [
99
{
1010
title: 'My Developer Story',
11+
blurb:
12+
'I wanted to share a small but important ongoing piece of my story. My process of becoming a developer, the help I had along the way, and my outlook going forward. I tried to write this post as more of an entertaining story than a technical piece about code. I plan to publish more technical blog posts soon—stay tuned.',
1113
author: 'Ethan Bonsignori',
1214
category: 'Life',
1315
createdAt: 'March 3, 2021',
@@ -17,6 +19,8 @@ const posts = [
1719
},
1820
{
1921
title: 'Looking Back at Past Portfolios',
22+
blurb:
23+
"I take a moment to document some of my past portfolio sites since I've created a few and they become rather obsolete once I replace the previous one. I put a lot of work into these sites and I didn't want them to fade into nothingness. Here you can find some of my thoughts on my previous portfolios as well as images and links to those sites.",
2024
author: 'Ethan Bonsignori',
2125
category: 'Technology',
2226
createdAt: 'March 2, 2021',
@@ -25,8 +29,9 @@ const posts = [
2529
splash: PLACEHOLDER_SPLASH_URL,
2630
},
2731
{
28-
title:
29-
'Uploading Cropped Profile Images to Digital Ocean Spaces Part 1: Frontend',
32+
title: 'Uploading Cropped Profile Images to Digital Ocean Spaces',
33+
blurb:
34+
"A work in progress tutorial that turned out to be too big of a scope to fit in one guide. It aims to show how to upload and crop a user's profile picture and store it in Digital Ocean Spaces.",
3035
author: 'Ethan Bonsignori',
3136
category: 'Technology',
3237
createdAt: 'March 17, 2021',
@@ -37,6 +42,8 @@ const posts = [
3742
{
3843
title:
3944
'Setting up Automatic Firebase Hosting Deploys with Environment Secrets',
45+
blurb:
46+
'A quick guide on automating deployments for a Firebase Hosting project using GitHub Actions and how to access Environment Variables in your project.',
4047
author: 'Ethan Bonsignori',
4148
category: 'Technology',
4249
createdAt: 'March 7, 2024',
@@ -47,6 +54,8 @@ const posts = [
4754
},
4855
{
4956
title: 'Dockerizing a Python FastAPI App',
57+
blurb:
58+
'A guide on how to Dockerize a Python FastAPI application. I wrote this guide to help you get started with creating and running a Docker image of your FastAPI application following the steps I used to Dockerize my recent FastAPI project, UserVote',
5059
author: 'Ethan Bonsignori',
5160
category: 'Technology',
5261
createdAt: 'March 10, 2024',

src/assets/posts/3-uploadingcropp1.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414

1515
<div style='text-align: center; font-style: italic; margin: 30px 0;'>
16-
A work in progress tutorial that turned out to be too wide of a scope to finish. It aims to show how to upload and crop a user's profile picture and store it in Digital Ocean Spaces.
16+
A work in progress tutorial that turned out to be too big of a scope to fit in one guide. It aims to show how to upload and crop a user's profile picture and store it in Digital Ocean Spaces.
1717
</div>
1818

1919
## Contents

src/components/pages/BlogList.js

+12
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ const BlogList = ({ darkMode, toggleTheme }) => {
4242
<BlogPostHeader>
4343
<BlogLink to={blog.blogLink}>{blog.title}</BlogLink>
4444
</BlogPostHeader>
45+
<BlogBlurb>{blog.blurb}</BlogBlurb>
4546
<BlogDetails>
4647
<BlogCategory>{blog.category}</BlogCategory>
4748
<span>{blog.createdAt}</span>
@@ -106,6 +107,7 @@ const BlogPostHeader = styled.div`
106107

107108
const BlogLink = styled(Link)`
108109
text-decoration: none;
110+
font-weight: bold;
109111
`;
110112

111113
const BlogDetails = styled.div`
@@ -114,6 +116,16 @@ const BlogDetails = styled.div`
114116
margin-top: 2em;
115117
`;
116118

119+
const BlogBlurb = styled.div`
120+
margin: 0.5em 0;
121+
overflow: hidden;
122+
text-overflow: ellipsis;
123+
display: -webkit-box;
124+
-webkit-line-clamp: 2;
125+
-webkit-box-orient: vertical;
126+
line-height: 1.5em;
127+
`;
128+
117129
const BlogCategory = styled.div`
118130
background-color: ${({ theme }) => theme.color.activeTab};
119131
border-radius: 1em;

0 commit comments

Comments
 (0)