From dfac676f38f8d15443d4042a9962e5468642ca25 Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Fri, 29 Dec 2023 17:20:43 -0600 Subject: [PATCH] move list components to components dir --- components/SocialLinks/SocialLink.js | 9 ++++ components/SocialLinks/SocialLinks.js | 11 +++++ components/SocialLinks/index.js | 2 + components/UsefulLinks/UsefulLink.js | 13 ++++++ components/UsefulLinks/UsefulLinks.js | 13 ++++++ components/UsefulLinks/index.js | 2 + pages/index.js | 59 ++++----------------------- 7 files changed, 57 insertions(+), 52 deletions(-) create mode 100644 components/SocialLinks/SocialLink.js create mode 100644 components/SocialLinks/SocialLinks.js create mode 100644 components/SocialLinks/index.js create mode 100644 components/UsefulLinks/UsefulLink.js create mode 100644 components/UsefulLinks/UsefulLinks.js create mode 100644 components/UsefulLinks/index.js diff --git a/components/SocialLinks/SocialLink.js b/components/SocialLinks/SocialLink.js new file mode 100644 index 0000000..fda7943 --- /dev/null +++ b/components/SocialLinks/SocialLink.js @@ -0,0 +1,9 @@ +export function SocialLink({ SvgElement, link = "#" }) { + return ( +
  • + + {SvgElement} + +
  • + ) +} diff --git a/components/SocialLinks/SocialLinks.js b/components/SocialLinks/SocialLinks.js new file mode 100644 index 0000000..ee945a9 --- /dev/null +++ b/components/SocialLinks/SocialLinks.js @@ -0,0 +1,11 @@ +export function SocialLinksList() { + return ( + + ) +} diff --git a/components/SocialLinks/index.js b/components/SocialLinks/index.js new file mode 100644 index 0000000..660f19f --- /dev/null +++ b/components/SocialLinks/index.js @@ -0,0 +1,2 @@ +export * from "./SocialLink.js" +export * from "./SocialLinks.js" diff --git a/components/UsefulLinks/UsefulLink.js b/components/UsefulLinks/UsefulLink.js new file mode 100644 index 0000000..b783488 --- /dev/null +++ b/components/UsefulLinks/UsefulLink.js @@ -0,0 +1,13 @@ +import ExternalLinkIcon from "../ExternalLinkIcon.js"; + +export function UsefulLink({ title, link }) { + return ( + +
  • +
    {title}
    +
    + +
  • +
    + ) +} diff --git a/components/UsefulLinks/UsefulLinks.js b/components/UsefulLinks/UsefulLinks.js new file mode 100644 index 0000000..b165d8f --- /dev/null +++ b/components/UsefulLinks/UsefulLinks.js @@ -0,0 +1,13 @@ +import { UsefulLink } from "./UsefulLink" + +export function UsefulLinksList() { + return ( + + ) +} diff --git a/components/UsefulLinks/index.js b/components/UsefulLinks/index.js new file mode 100644 index 0000000..e0ebdb6 --- /dev/null +++ b/components/UsefulLinks/index.js @@ -0,0 +1,2 @@ +export * from './UsefulLink.js' +export * from './UsefulLinks.js' diff --git a/pages/index.js b/pages/index.js index 5ce0062..c3856da 100644 --- a/pages/index.js +++ b/pages/index.js @@ -2,53 +2,8 @@ import Job from "../components/Job"; import Skill from "../components/Skill"; import Project from "../components/Project"; import Head from "next/head"; -import ExternalLinkIcon from "../components/ExternalLinkIcon"; - -function UsefulLink({ title, link }) { - return ( - -
  • -
    {title}
    -
    - -
  • -
    - ) -} - -function UsefulLinksList() { - return ( - - ) -} - -function SocialLink({ SvgElement, link = "#" }) { - return ( -
  • - - {SvgElement} - -
  • - ) -} - -function SocialLinksList() { - return ( - - ) -} +import { UsefulLinksList } from '../components/UsefulLinks' +import { SocialLinksList } from '../components/SocialLinks/SocialLinks.js' export default function Landing({ jobs, skills, projects }) { return ( @@ -57,21 +12,21 @@ export default function Landing({ jobs, skills, projects }) { -
    -