Implemented primary section consisting of key information, including collapsible skill cards.

This commit is contained in:
Joshua Ashton
2024-12-23 17:55:07 -07:00
parent 14c348af18
commit e35491b733
15 changed files with 610 additions and 37 deletions
+45 -17
View File
@@ -1,22 +1,50 @@
import React, { useRef, useState } from "react";
import VerticalSlider from "./components/VerticalSlider";
import "./styles.css";
import Primary from "./Primary";
import Skills from "./Skills";
import Projects from "./Projects";
import Contact from "./Contact";
import About from "./About";
import ProjectCard from "./components/ProjectCard";
import "./main.css";
/**
* TODO: Read in data from a plain text file for easier editing in the future.
*/
export default function App() {
const data = [
{
title: "Test Header",
description: "A description of some length. Lorem ipsum this shit.",
color: "purple",
image: "/images/landscape.jpg",
alt: "A pretty background.",
},
{
title: "Another one",
description: "A description of some length. Lorem ipsum this shit.",
color: "purple",
image: "/images/landscape.jpg",
alt: "A pretty background.",
},
const cards = [<ProjectCard />, <ProjectCard />, <ProjectCard />];
const skills = {
languages: ["Java", "JavaScript", "Go", "Dart", "Python", "C#"],
tools: [
"Git & GitHub",
"Docker & Kubernetes",
"Flutter",
"React",
"Linux",
"Microsoft Intune",
],
other: [
"Written Communication",
"Conflict Resolution",
"Project Management",
"Event Planning",
"Electronics Repair",
"Soldering",
],
};
const slides = [
<Primary
primaryText="Hi, I'm Josh Ashton."
secondaryText="Junior full-stack developer."
callToAction="Here's my resume."
image="/images/profile.jpg"
skills={skills}
/>,
<Projects cards={cards} />,
<Contact />,
<About />,
];
return <VerticalSlider slideData={data} />;
return <VerticalSlider slides={slides} />;
}