From c81ebede3abdd9b64250427be9195988679ae293 Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Sun, 31 Dec 2023 21:10:16 -0600 Subject: [PATCH] change a bunch of styles --- components/Border.tsx | 7 ++++++ components/ExternalLinkIcon.js | 6 ++--- components/ListItem.tsx | 13 ++++++----- components/SocialLinks/SocialLink.js | 4 ++-- components/SocialLinks/SocialLinks.js | 8 +++---- components/UsefulLinks/UsefulLinks.js | 19 ++++++++-------- pages/index.tsx | 32 +++++++++++++-------------- 7 files changed, 47 insertions(+), 42 deletions(-) create mode 100644 components/Border.tsx diff --git a/components/Border.tsx b/components/Border.tsx new file mode 100644 index 0000000..94c66f1 --- /dev/null +++ b/components/Border.tsx @@ -0,0 +1,7 @@ +import type { HTMLAttributes } from "react"; + +export function Border({ className }: { className?: HTMLAttributes['className'] }) { + return ( +
+ ) +} diff --git a/components/ExternalLinkIcon.js b/components/ExternalLinkIcon.js index f8ce777..6b4f532 100644 --- a/components/ExternalLinkIcon.js +++ b/components/ExternalLinkIcon.js @@ -1,11 +1,11 @@ export default function ExternalLinkIcon() { return ( - <> +
+ stroke="currentColor" className="w-4 h-4 cursor-pointer "> - +
) } diff --git a/components/ListItem.tsx b/components/ListItem.tsx index 1e3be28..93040e0 100644 --- a/components/ListItem.tsx +++ b/components/ListItem.tsx @@ -1,3 +1,4 @@ +import { Border } from "./Border"; import ExternalLinkIcon from "./ExternalLinkIcon"; export interface ListItemProps { @@ -8,14 +9,14 @@ export interface ListItemProps { export default function ListItem({ label, date, url }: ListItemProps) { return ( -
-

{label}

-
+
+ +

{label}

+
+
{!!date && {date}} - - - +
) diff --git a/components/SocialLinks/SocialLink.js b/components/SocialLinks/SocialLink.js index 334ee24..d023f30 100644 --- a/components/SocialLinks/SocialLink.js +++ b/components/SocialLinks/SocialLink.js @@ -1,9 +1,9 @@ export function SocialLink({ SvgElement, link = "#" }) { return ( -
  • +
    {SvgElement} -
  • +
    ) } diff --git a/components/SocialLinks/SocialLinks.js b/components/SocialLinks/SocialLinks.js index 1921ae6..3aa1fde 100644 --- a/components/SocialLinks/SocialLinks.js +++ b/components/SocialLinks/SocialLinks.js @@ -1,14 +1,14 @@ import { SocialLink } from "./SocialLink" export function SocialLinksList() { - const width = 24 + const width = 36 return ( - + ) } diff --git a/components/UsefulLinks/UsefulLinks.js b/components/UsefulLinks/UsefulLinks.js index 892adc5..5aca2ad 100644 --- a/components/UsefulLinks/UsefulLinks.js +++ b/components/UsefulLinks/UsefulLinks.js @@ -3,16 +3,15 @@ import { UsefulLink } from "./UsefulLink" export function UsefulLinksList() { return ( -