Skip to content

Commit

Permalink
refactor: css improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
thedaviddias committed Jun 11, 2023
1 parent d739e0f commit 5dd3fab
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 41 deletions.
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 16:40:36 GMT</lastBuildDate>
<lastBuildDate>Sun, 11 Jun 2023 16:52:22 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 16:40:36 GMT</lastBuildDate>
<lastBuildDate>Sun, 11 Jun 2023 16:52:22 GMT</lastBuildDate>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<generator>https://github.com/jpmonette/feed</generator>
<language>fr</language>
Expand Down
8 changes: 4 additions & 4 deletions src/components/LatestGithubSection/LatestGithubSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ export const LatestGithubSection: React.FC<LatestGithubSectionProps> = ({ projec
const { t } = useTranslation('common')

return (
<section className="border-none mb-10">
<header>
<section className="border-none mb-5 md:mb-10">
<header className="mb-5">
<H5 as="h2">{t('projects.sections.latest-projects')}</H5>
</header>
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 my-3 max-w-5xl">
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 max-w-5xl">
{projects?.map((project, i) => (
<GithubProject key={i} project={project} />
))}
</div>
{projects.length ? (
<footer className="text-right">
<footer className="mt-5 text-right">
<CustomLink href="/projects">{t('projects.sections.viewAll')}</CustomLink>
</footer>
) : null}
Expand Down
40 changes: 21 additions & 19 deletions src/components/LatestNotesSection/LatestNotesSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,28 @@ export const LatestNotesSection: React.FC<LatestNotesSection> = ({ notes }) => {
const { t } = useTranslation('common')

return (
<section className="grid grid-cols-1 gap-y-5 md:gap-y-5 border-none mb-5 md:mb-10">
<header>
<H5 as="h2">{t('notes.sections.latest-notes')}</H5>
</header>
<div className="grid grid-cols-1 lg:col-span-2">
{!notes.length ? (
<p>{t('notes.sections.empty')}</p>
) : (
<>
{notes?.map((note) => (
<Notes key={note.frontMatter.title} note={note} />
))}
</>
)}
<section className="border-none mb-5 md:mb-10">
<div className="grid grid-cols-1 ">
<header className="mb-5">
<H5 as="h2">{t('notes.sections.latest-notes')}</H5>
</header>
<div className="grid grid-cols-1 lg:col-span-2">
{!notes.length ? (
<p>{t('notes.sections.empty')}</p>
) : (
<>
{notes?.map((note) => (
<Notes key={note.frontMatter.title} note={note} />
))}
</>
)}
</div>
{notes.length ? (
<footer className="text-right">
<CustomLink href="/articles">{t('notes.sections.viewAll')}</CustomLink>
</footer>
) : null}
</div>
{notes.length ? (
<footer className="text-right">
<CustomLink href="/articles">{t('notes.sections.viewAll')}</CustomLink>
</footer>
) : null}
</section>
)
}
24 changes: 13 additions & 11 deletions src/components/LatestPostsSection/LatestPostsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,20 @@ export const LatestPostsSection: React.FC<LatestPostsSection> = ({ articles }) =
const { t } = useTranslation('common')

return (
<section className="grid grid-cols-1 gap-y-5 md:gap-y-10 border-none mb-10">
<header>
<H5 as="h2">{t('articles.sections.latest-posts')}</H5>
</header>
<div className="grid grid-cols-1 lg:col-span-2">
{articles.map((article) => (
<BlogPost key={article.frontMatter.title} post={article} />
))}
<section className="border-none mb-5 md:mb-10">
<div className="grid grid-cols-1">
<header className="mb-5">
<H5 as="h2">{t('articles.sections.latest-posts')}</H5>
</header>
<div className="grid grid-cols-1 lg:col-span-2">
{articles.map((article) => (
<BlogPost key={article.frontMatter.title} post={article} />
))}
</div>
<footer className="text-right">
<CustomLink href="/articles">{t('articles.sections.viewAll')}</CustomLink>
</footer>
</div>
<footer className="text-right">
<CustomLink href="/articles">{t('articles.sections.viewAll')}</CustomLink>
</footer>
</section>
)
}
4 changes: 2 additions & 2 deletions src/components/LatestYoutubeVideos/LatestYoutubeVideos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const LatestYoutubeVideos = () => {
const videos = data?.videos

return (
<section className="border-none mb-10">
<header>
<section className="border-none mb-5 md:mb-10">
<header className="mb-5">
<H5 as="h2">{t('youtube.sections.latest_videos')}</H5>
</header>
<div className="grid grid-cols-1 gap-4 md:grid-cols-3 my-3 max-w-5xl">
Expand Down
2 changes: 1 addition & 1 deletion src/components/Notes/Notes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const Notes: React.FC<NotesProps> = ({ note }) => {
<>
<article className="pt-2 pb-2 border-t border-gray-200 dark:border-gray-700 relative">
<div className="flex flex-col lg:flex-row gap-y-5 lg:gap-x-5">
<div className="max-w-[30rem] w-full">
<div className="max-w-[37rem] w-full">
<H4 as="h3">
<CustomLink
className="dark:!text-gray-100 block tracking-tight"
Expand Down
2 changes: 0 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ const Home: NextPage<HomeProps> = ({ articles, notes, ghProjects, fallback }) =>
{process.env.NODE_ENV === 'production' && !mobile() && <PodcastSection />}

{process.env.NODE_ENV === 'production' && <LatestYoutubeVideos />}

{/* <Dashboard /> */}
</main>
</Container>
</SWRConfig>
Expand Down

2 comments on commit 5dd3fab

@vercel
Copy link

@vercel vercel bot commented on 5dd3fab Jun 11, 2023

Choose a reason for hiding this comment

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

@github-actions
Copy link

Choose a reason for hiding this comment

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

Deploy preview for thedaviddiasdev ready!

✅ Preview
https://thedaviddiasdev-1ewm7ldnv-thedaviddias1.vercel.app

Built with commit 5dd3fab.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.