Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: hide date in feat posts + small stuffs #193

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,423 changes: 1,789 additions & 2,634 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,28 @@
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"format": "biome check --apply src/ scripts/",
"format": "biome check --write src/ scripts/",
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "^0.7.0",
"@astrojs/mdx": "^3.0.0",
"@astrojs/preact": "^3.3.0",
"@astrojs/rss": "^4.0.6",
"@astrojs/sitemap": "^3.1.4",
"@astrojs/check": "^0.8.1",
"@astrojs/mdx": "^3.1.2",
"@astrojs/preact": "^3.5.0",
"@astrojs/rss": "^4.0.7",
"@astrojs/sitemap": "^3.1.6",
"@astrojs/tailwind": "^5.1.0",
"@notionhq/client": "^2.2.14",
"@tailwindcss/typography": "^0.5.10",
"@vercel/og": "^0.6.2",
"astro": "^4.8.6",
"astro": "^4.11.5",
"astro-expressive-code": "^0.32.4",
"notion-to-md": "^3.1.1",
"preact": "^10.19.5",
"tailwindcss": "^3.4.1",
"typescript": "^5.3.3"
},
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@biomejs/biome": "1.8.3",
"prettier": "^3.2.5"
}
}
11 changes: 7 additions & 4 deletions src/components/BlogCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ type Props = {
post: CollectionEntry<'blog'>
class?: string
firstBigger?: boolean
showDate?: boolean
}

const { post, firstBigger = true } = Astro.props
const { post, firstBigger = true, showDate = true } = Astro.props
---

<a
Expand All @@ -37,9 +38,11 @@ const { post, firstBigger = true } = Astro.props
}
<div class="p-4">
<header class="text-xl text-gray-700 dark:text-gray-100">
<p class="text-gray-400 dark:text-gray-100 text-sm">
<FormattedDate date={post.data.date} />
</p>
{showDate && (
<p class="text-gray-400 dark:text-gray-100 text-sm">
<FormattedDate date={post.data.date} />
</p>
)}
<span class="inline">
<span
class="from-blue-100 to-blue-100 text-dark dark:bg-none font-semibold
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/Email.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'preact'

const Email = props => (
<svg
role="img"
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/Github.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'preact'

const Github = props => (
<svg
role="img"
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/Linkedin.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'preact'

const Linkedin = props => (
<svg
role="img"
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/Pdf.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'preact'

const Pdf = props => (
<svg
role="img"
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/Printer.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'preact'

const Printer = props => (
<svg
role="img"
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/Twitter.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'preact'

const Twitter = props => (
<svg
role="img"
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/TwitterIcon.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'preact'

const Twitter = props => (
<svg
role="img"
Expand Down
2 changes: 0 additions & 2 deletions src/components/icons/web.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'preact'

const Web = props => (
<svg
role="img"
Expand Down
4 changes: 2 additions & 2 deletions src/content/cv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const cvData = {
activities: [
'Migrated a web application to Typescript/React',
'Improved performance index (50 to 90 lighthouse score)',
'Led the migration of the main application from a REST-style to GraphQL',
'Led the migration from a REST-style to GraphQL',
],
},
{
Expand Down Expand Up @@ -173,7 +173,7 @@ export const cvData = {
],

interests: `
Canyoning (I guide group), hiking, cooking, travelling (Asia, Europe),
Canyoning (I guide group), running (100km/month), hiking, cooking, travelling (Asia, Europe),
video games (Age of Empire II).
`,
}
8 changes: 4 additions & 4 deletions src/content/pages/about/about.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ applications. I was also involved in hiring at most of the organisations I work
candidates and helping HR make decisions.

After 2 years as an expat in Dublin, I became a digital nomad. I started working and living where
the WiFi and the sun are (Europe and Southeast Asia). I'm now based in Paris and I still work
remotely.
the WiFi and the sun are (Europe and Southeast Asia). I'm now based in Paris and I work remotely
within an international team.

<Info title="🙋 Working or considering working with me?">
You might be interested in reading my <a href="/readme">Personal User Manual (personal readme)</a>
Expand All @@ -41,8 +41,8 @@ industry. I'm focusing on:

- ✈️ **Travel**. Often.
- 👨‍🍳 **Cook**. [I love to cook](/recipes) food from all over the world. From Italian Pizza to Indian
dal. Some of my recipes are online
- 🧗🏻 **Sport**. I mostly Run, hike and cycle. I'm also a canyoning guide!
dal. Some of my recipes are online.
- 🧗🏻 **Sport**. I run (+100km/month), hike and cycle. I'm also a canyoning guide!
- 🍺 Appreciate a Gin or a **pint of beer** (IPA/NEIPA).
- 🕹 **Play video games**. Especially Age of Empires 2, a 20 y.o. game!
- 📘 **Learn new things**. As a **lifelong learner**, I can't imagine one day without learning
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ expectations._
see me with different backgrounds during remote meetings. I find myself more productive working
from different places (co-working space, cafe, library...).
- **Direct vs. Indirect communication**: Some people do their best to avoid disagreements and prefer
a more indirect form of communication. **I don't.** I like "healthy disagreements" and I think
they are a normal part of relating to others.
a more indirect form of communication. **I don't.** I believe "healthy disagreements" are a normal
part of relating to others.
- **Emails**. I'm not good at checking my emails. If I'm too slow to respond, please reach me on
Slack.
- **Meetings**. I like when they are timeboxed and organised beforehand. That means, I appreciate
Expand Down
2 changes: 1 addition & 1 deletion src/content/pages/speaking/MyTalks.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { type JSX } from 'preact'
import type { JSX } from 'preact'

import { presentations, talks, trainingsAndWorkshops } from '../../talks'

Expand Down
1 change: 0 additions & 1 deletion src/content/pages/uses/uses.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ My main browser is [Brave](https://brave.com/). I also use the following extensi
for Accessibility audits
- [LastPass](https://chrome.google.com/webstore/detail/lastpass-free-password-ma/hdokiejnpimakedhajhdlcegeplioahd)
for password management
- [Pocket (Save to Pocket)](https://chrome.google.com/webstore/detail/save-to-pocket/niloccemoadcdkdjlinkgdfekeahmflj)

## Terminal & Command Line Apps

Expand Down
5 changes: 1 addition & 4 deletions src/layouts/BlogPost.astro
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,7 @@ const formattedTranslations = formatBlogTranslation(translations)
{translations.map((translation, i) => {
return (
<Fragment key={`translation-${i}`}>
<a href={translation.link} class="underline">
{translation.language}
</a>
{i < translations.length - 1 ? ', ' : ''}
<a href={translation.link} class="underline">{translation.language}</a>{i < translations.length - 1 ? ', ' : ''}
</Fragment>
)
})}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const SELECTED_TAGS = [
<div class="not-prose grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
{
highlightedPosts.map(post => (
<BlogCard post={post} firstBigger={false} />
<BlogCard post={post} firstBigger={false} showDate={false} />
))
}
</div>
Expand Down