Skip to content

Commit

Permalink
refactor: add picture of the uses page
Browse files Browse the repository at this point in the history
  • Loading branch information
thedaviddias committed Jun 11, 2023
1 parent ded1369 commit 3939bce
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 11 deletions.
4 changes: 2 additions & 2 deletions locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
},
"h1": "Mes Notes",
"sections": {
"empty": "Pas de publications disponibles pour le moment.",
"empty": "Pas de notes disponibles pour le moment.",
"latest-notes": "Dernières Notes",
"search": "Recherchez par mot clé",
"search_placeholder": "Tapez un mot pour faire une recherche"
Expand Down Expand Up @@ -257,7 +257,7 @@
"currently": "En train de lire",
"next": "À lire prochainement",
"sections": {
"viewAll": "→ Voir mon profil"
"viewAll": "→ Voir mon profil sur Goodreads"
}
},
"youtube": {
Expand Down
Binary file added public/images/uses/desk-david-dias.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion public/rss/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>The David Dias | Front-End Developer, podcaster &amp; content creator</title>
<link>https://thedaviddias.dev</link>
<description>Hey, I'm David Dias! Front-End Developer based in Toronto/Canada. I love talking about code, technology, expatriation and life.</description>
<lastBuildDate>Sun, 11 Jun 2023 15:34:22 GMT</lastBuildDate>
<lastBuildDate>Sun, 11 Jun 2023 16:18:18 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>en</language>
Expand Down
2 changes: 1 addition & 1 deletion public/rss/fr/feed.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>The David Dias | Développeur Front-End, podcasteur &amp; créateur de contenu</title>
<link>https://thedaviddias.dev</link>
<description>Salut toi! Je m'appele David Dias. Je suis développeur Front-End, podcasteur, créateur de contenu numérique passioné pour résoudre les problèmes digitaux et humains! J'aime rencontrer de nouvelles personnes, bâtir des communautées et parler de tech, d'expatriation et de web.</description>
<lastBuildDate>Sun, 11 Jun 2023 15:34:22 GMT</lastBuildDate>
<lastBuildDate>Sun, 11 Jun 2023 16:18:18 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>fr</language>
Expand Down
4 changes: 2 additions & 2 deletions src/components/BlogPost/BlogPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const BlogPost: React.FC<BlogPostProps> = ({ post, isCategoryPage }) => {
href={`${t('category.path')}/${slugify(post.frontMatter.categories[0], {
lower: true,
})}`}
className="block pb-2 !font-semibold text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100 uppercase text-x"
className="inline-block pb-2 !font-semibold text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100 uppercase text-x"
>
<span className="sr-only">Category: </span>
{post.frontMatter.categories[0]}
Expand All @@ -36,7 +36,7 @@ export const BlogPost: React.FC<BlogPostProps> = ({ post, isCategoryPage }) => {
)}
<H2 as="h3">
<CustomLink
className="dark:!text-gray-100 block tracking-tight"
className="dark:!text-gray-100 inline-block tracking-tight"
href={`/articles/${post.slug}`}
>
{post.frontMatter.title}
Expand Down
7 changes: 4 additions & 3 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const FooterMenuLinks = () => {
return (
<div>
<h3 className="small-title">{t('layout.footer.general')}</h3>
<ul className="mt-3 space-y-3">
<ul className="mt-3 space-y-1">
{FOOTER_MENU_LINKS(t).map(({ path, label }) => (
<li key={label}>
<CustomLink href={path} className="dark:!text-white">
Expand All @@ -31,7 +31,7 @@ const FooterExtraLinks = () => {
return (
<div>
<h3 className="small-title">{t('layout.footer.extra')}</h3>
<ul className="mt-3 space-y-3">
<ul className="mt-3 space-y-1">
{EXTRA_LINKS(t).map(({ path, label, locale }) => (
<li key={label}>
<CustomLink href={path} className="dark:!text-white" locale={locale}>
Expand All @@ -50,7 +50,7 @@ const FooterSocialLinks = () => {
return (
<div>
<h3 className="small-title">{t('layout.footer.social')}</h3>
<ul className="mt-3 space-y-3">
<ul className="mt-3 space-y-1">
{SOCIAL_LINKS.map(({ label, link }) => (
<li key={label}>
<CustomLink href={link} className="dark:!text-white">
Expand Down Expand Up @@ -79,6 +79,7 @@ export const Footer = () => {
alt=""
aria-hidden="true"
fill
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
/>
</div>
<footer
Expand Down
4 changes: 2 additions & 2 deletions src/pages/articles/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ const BlogPostPage: NextPage<BlogPostPageProps> = ({
<CustomLink
key={category}
href={`${t('category.path')}/${slugify(category, { lower: true })}`}
className="mb-1 text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100 uppercase text-x !font-semibold transition-colors duration-200"
className="mb-1 text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-100 uppercase text-x md:text-lg !font-semibold transition-colors duration-200"
>
{category}
</CustomLink>
Expand All @@ -236,7 +236,7 @@ const BlogPostPage: NextPage<BlogPostPageProps> = ({
{title}
</span>
<span className="sr-only"></span>
<div className="font-body text-base sm:text-xl text-gray-600 dark:text-gray-300 mt-3 mb-6 tracking-wide font-light">
<div className="font-body text-base sm:text-lg text-gray-600 dark:text-gray-300 mt-3 mb-6 tracking-wide font-light">
{description}
</div>
</H1>
Expand Down
14 changes: 14 additions & 0 deletions src/pages/uses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { getPostBySlug } from '@/utils/get-articles-posts'
import { readData } from '@/utils/read-data'

import { UsesType } from '@/types'
import Image from 'next/image'

type UsesProps = {
categories: string[]
Expand Down Expand Up @@ -51,6 +52,19 @@ const Uses: NextPage<UsesProps> = ({ categories, tools, frontMatter, source }) =
>
<PageHeader title={titlePage} description={descriptionPage} />

<Image
className="inline-block h-auto max-w-xl"
src="/images/uses/desk-david-dias.jpg"
width={960}
height={540}
alt="Photo of my desk setup with pink and warm yellow Philips Hue lights. My white desk is composed with 2 screens with a colorful screen background. Two white speakers in each side of the desk. A gray keyboard and a black mouse on a black pad. A microphone on a black arm attached to the right side of the desk."
priority={true}
style={{
maxWidth: '100%',
height: 'auto',
}}
/>

<MDXRemote {...source} components={MDXComponents} lazy />

{categories?.map((category) => (
Expand Down

1 comment on commit 3939bce

@vercel
Copy link

@vercel vercel bot commented on 3939bce Jun 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.