little rework
This commit is contained in:
+116
-141
@@ -1,25 +1,75 @@
|
||||
"use client";
|
||||
import Link from "next/link"
|
||||
import { Input } from "@/components/ui/input"
|
||||
import { Textarea } from "@/components/ui/textarea"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { JSX, SVGProps } from "react"
|
||||
|
||||
import {JSX, SVGProps, useState} from "react"
|
||||
import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"
|
||||
import { Badge } from "@/components/ui/badge"
|
||||
import Image from "next/image"
|
||||
import {Github, Linkedin, MenuIcon} from "lucide-react";
|
||||
export default function Home() {
|
||||
const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
|
||||
const skills = [
|
||||
"IT Support", "Data Analysis", "Python", "R", "SQL", "Network Architecture",
|
||||
"Network Security", "Cloud Computing", "Data Visualization", "Machine Learning",
|
||||
"Statistical Analysis", "Database Management", "Linux", "Git", "Agile Methodologies",
|
||||
"Project Management", "Business Analysis", "Critical Thinking"
|
||||
];
|
||||
|
||||
const certifications = [
|
||||
{
|
||||
name: "Google IT Support Professional Certificate",
|
||||
issuer: "Google",
|
||||
image: "/certificates/Coursera_RZ1V4RU6JP2D.png"
|
||||
},
|
||||
{
|
||||
name: "Google Data Analytics Professional Certificate",
|
||||
issuer: "Google",
|
||||
image: "/certificates/Coursera_EN181NFH7VYT.png"
|
||||
},
|
||||
{
|
||||
name: "IBM Python for Data Science, AI & Development",
|
||||
issuer: "IBM",
|
||||
image: "/certificates/Coursera_QT9WT5VCHJNU.png"
|
||||
}
|
||||
];
|
||||
return (
|
||||
<div className="bg-[#00004d] text-white font-['Segoe UI', 'FiraCode'] min-h-screen">
|
||||
<header className="py-4 px-6 flex items-center justify-between border-b border-[#4d4dff]">
|
||||
<div className="flex items-center gap-4">
|
||||
<TerminalIcon className="w-8 h-8"/>
|
||||
<TerminalIcon className="w-8 h-8" aria-hidden="true" />
|
||||
<h1 className="text-2xl font-semibold">Pietro Quintavalle</h1>
|
||||
</div>
|
||||
<nav className="flex items-center gap-6">
|
||||
{["About", "Skills", "Certifications", "Portfolio", "Contact"].map((item) => (
|
||||
<Link key={item} href={`#${item.toLowerCase()}`} className="hover:text-[#4d4dff] transition-colors">
|
||||
<nav className="hidden md:flex items-center gap-6">
|
||||
{["About", "Skills", "Portfolio", "Certifications"].map((item) => (
|
||||
<Link key={item} href={`#${item.toLowerCase()}`} className="hover:text-[#4d4dff] transition-colors p-2">
|
||||
{item}
|
||||
</Link>
|
||||
))}
|
||||
</nav>
|
||||
<button
|
||||
className="md:hidden text-white p-2"
|
||||
onClick={() => setMobileMenuOpen(!mobileMenuOpen)}
|
||||
aria-label={mobileMenuOpen ? "Close menu" : "Open menu"}
|
||||
>
|
||||
<MenuIcon className="h-6 w-6" aria-hidden="true" />
|
||||
</button>
|
||||
</header>
|
||||
|
||||
{/* Mobile menu */}
|
||||
{mobileMenuOpen && (
|
||||
<div className="md:hidden bg-[#0000b3] py-2">
|
||||
{["About", "Skills", "Certifications", "Portfolio"].map((item) => (
|
||||
<Link
|
||||
key={item}
|
||||
href={`#${item.toLowerCase()}`}
|
||||
className="block py-2 px-4 text-white hover:bg-[#4d4dff] transition-colors"
|
||||
onClick={() => setMobileMenuOpen(false)}
|
||||
>
|
||||
{item}
|
||||
</Link>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
<main className="px-6 py-12">
|
||||
<section id="about" className="mb-12">
|
||||
<h2 className="text-3xl font-semibold mb-4">About Me</h2>
|
||||
@@ -30,97 +80,35 @@ export default function Home() {
|
||||
My passion lies in leveraging technology to solve complex problems and derive meaningful insights from
|
||||
data.
|
||||
With a combination of technical skills and analytical thinking, I'm equipped to tackle challenges
|
||||
in
|
||||
both IT infrastructure and data-driven decision-making.
|
||||
in both IT infrastructure and data-driven decision-making.
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
<section id="skills" className="mb-12">
|
||||
<h2 className="text-3xl font-semibold mb-4">Skills</h2>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{[
|
||||
{
|
||||
title: "IT & Networking",
|
||||
skills: [
|
||||
"IT Support", "Troubleshooting", "Computer Networking",
|
||||
"Network Architecture", "Network Model", "Computer Architecture",
|
||||
"Network Security", "Cloud Computing"
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Data Science & Analytics",
|
||||
skills: [
|
||||
"Data Analysis", "Data Visualization", "Data Management",
|
||||
"General Statistics", "Data Science", "Business Analysis"
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Programming & Software",
|
||||
skills: [
|
||||
"Python Programming", "R Programming", "SQL",
|
||||
"Computer Programming", "Numpy", "Pandas",
|
||||
"Spreadsheet Software"
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Business & Communication",
|
||||
skills: [
|
||||
"Business Communication", "Accounting",
|
||||
"Leadership and Management", "Critical Thinking",
|
||||
"Human Computer Interaction"
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Tools & Platforms",
|
||||
skills: [
|
||||
"Tableau", "Git", "Linux", "Microsoft Office Suite"
|
||||
]
|
||||
},
|
||||
{
|
||||
title: "Methodologies",
|
||||
skills: [
|
||||
"Data-Driven Decision Making", "Agile",
|
||||
"IT Service Management", "Project Management"
|
||||
]
|
||||
},
|
||||
].map((category, index) => (
|
||||
<div key={index} className="bg-[#0000b3] rounded-md p-4">
|
||||
<h3 className="text-xl font-semibold mb-2">{category.title}</h3>
|
||||
<ul className="list-disc pl-4 space-y-2">
|
||||
{category.skills.map((skill, skillIndex) => (
|
||||
<li key={skillIndex}>{skill}</li>
|
||||
))}
|
||||
</ul>
|
||||
</div>
|
||||
))}
|
||||
<div className="flex space-x-4 mt-4">
|
||||
<Link href="https://github.com/Quinta0" passHref>
|
||||
<a aria-label="GitHub Profile">
|
||||
<Button variant="outline" size="icon" className="p-2">
|
||||
<Github className="h-6 w-6" aria-hidden="true"/>
|
||||
</Button>
|
||||
</a>
|
||||
</Link>
|
||||
<Link href="https://linkedin.com/in/pietro-quintavalle-996b96267" passHref>
|
||||
<a aria-label="LinkedIn Profile">
|
||||
<Button variant="outline" size="icon" className="p-2">
|
||||
<Linkedin className="h-6 w-6" aria-hidden="true"/>
|
||||
</Button>
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
</section>
|
||||
<section id="certifications" className="mb-12">
|
||||
<h2 className="text-3xl font-semibold mb-4">Certifications</h2>
|
||||
<div className="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
<div className="bg-[#0000b3] rounded-md p-4">
|
||||
<h3 className="text-xl font-semibold mb-2">Google IT Support Professional Certificate</h3>
|
||||
<iframe
|
||||
src="/certificates/Coursera_RZ1V4RU6JP2D.png"
|
||||
className="w-full h-96 border-none"
|
||||
title="Google IT Support Professional Certificate"
|
||||
></iframe>
|
||||
</div>
|
||||
<div className="bg-[#0000b3] rounded-md p-4">
|
||||
<h3 className="text-xl font-semibold mb-2">Google Data Analytics Professional Certificate</h3>
|
||||
<iframe
|
||||
src="/certificates/Coursera_EN181NFH7VYT.png"
|
||||
className="w-full h-96 border-none"
|
||||
title="Google Data Analytics Professional Certificate"
|
||||
></iframe>
|
||||
</div>
|
||||
<div className="bg-[#0000b3] rounded-md p-4">
|
||||
<h3 className="text-xl font-semibold mb-2">IBM Python for Data Science, AI & Development</h3>
|
||||
<iframe
|
||||
src="/certificates/Coursera_QT9WT5VCHJNU.png"
|
||||
className="w-full h-96 border-none"
|
||||
title="IBM Python for Data Science, AI & Development"
|
||||
></iframe>
|
||||
<section id="skills" className="mb-16">
|
||||
<h2 className="text-3xl font-bold mb-4">Skills</h2>
|
||||
<div className="relative overflow-hidden h-16">
|
||||
<div className="absolute flex animate-marquee">
|
||||
{[...skills, ...skills].map((skill, index) => (
|
||||
<Badge key={index} variant="secondary" className="mx-2 text-md text-center py-1 px-3">
|
||||
{skill}
|
||||
</Badge>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -132,31 +120,31 @@ export default function Home() {
|
||||
title: "password-generator",
|
||||
description: "A unique and interactive password generator built with Next.js and React. ",
|
||||
technologies: ["Nextjs", "Encryption", "Typescript"],
|
||||
githubLink: "#"
|
||||
githubLink: "https://github.com/Quinta0/password-generator"
|
||||
},
|
||||
{
|
||||
title: "Valgo",
|
||||
description: "A website for visualizing sorting algorithms for the visual learners out there.",
|
||||
technologies: ["Typescript", "React", "Algorithms"],
|
||||
githubLink: "#"
|
||||
githubLink: "https://github.com/Quinta0/valgo"
|
||||
},
|
||||
{
|
||||
title: "Gravity",
|
||||
description: "3D Gravity Simulator is a C++ program that visualizes the gravitational interactions between celestial bodies",
|
||||
technologies: ["C++", "OpenGL", "Physics", "3D", "Simulation", "Cmake", "VCPKG"],
|
||||
githubLink: "#"
|
||||
githubLink: "https://github.com/Quinta0/gravity"
|
||||
},
|
||||
{
|
||||
title: "Boston Housing Price Prediction",
|
||||
description: "A simulation of the Boston Housing Price Prediction project that involves building a machine learning model to predict housing prices. ",
|
||||
technologies: ["Python", "Machine Learning", "Data Analysis", "Data Visualization", "Jupyter Notebook", "Probability", "Statistics"],
|
||||
githubLink: "#"
|
||||
githubLink: "https://github.com/Quinta0/BostonHousing"
|
||||
},
|
||||
{
|
||||
title: "Forest Fire Simulation",
|
||||
description: "An assignment for the Probability & Statistics course at USI that aims to model the spread of forest fires over a grid representing a forest landscape.",
|
||||
technologies: ["Statistics", "Python", "Jupyter Notebook", "Simulation", "Probability"],
|
||||
githubLink: "#"
|
||||
githubLink: "https://github.com/Quinta0/ForestFire"
|
||||
},
|
||||
{
|
||||
title: "Network Monitoring Tool",
|
||||
@@ -180,6 +168,7 @@ export default function Home() {
|
||||
<Link
|
||||
href={project.githubLink}
|
||||
className="inline-flex items-center rounded-md bg-[#4d4dff] px-4 py-2 text-sm font-medium text-white shadow-sm transition-colors hover:bg-[#3b3bd9] focus:outline-none focus:ring-2 focus:ring-[#4d4dff] focus:ring-offset-2"
|
||||
aria-label={`View ${project.title} on GitHub`}
|
||||
>
|
||||
View on GitHub
|
||||
</Link>
|
||||
@@ -188,53 +177,39 @@ export default function Home() {
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
<section id="contact" className="mb-12">
|
||||
<h2 className="text-3xl font-semibold mb-4">Contact Me</h2>
|
||||
<form className="max-w-xl mx-auto">
|
||||
<div className="mb-4">
|
||||
<label htmlFor="name" className="block mb-2">Name</label>
|
||||
<Input
|
||||
type="text"
|
||||
id="name"
|
||||
name="name"
|
||||
placeholder="Enter your name"
|
||||
className="bg-[#0000b3] border-[#4d4dff] focus:border-[#7f7fff] focus:ring-[#7f7fff]"
|
||||
/>
|
||||
<section id="certifications" className="mb-16">
|
||||
<h2 className="text-3xl font-semibold mb-4">Certifications</h2>
|
||||
<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
|
||||
{certifications.map((cert, index) => (
|
||||
<Card key={index} className="overflow-hidden bg-[#0000b3] text-white">
|
||||
<Image src={cert.image} alt={cert.name} width={400} height={300}
|
||||
className="w-full object-contain"/>
|
||||
<CardHeader>
|
||||
<CardTitle>{cert.name}</CardTitle>
|
||||
<CardDescription className="text-gray-300">{cert.issuer}</CardDescription>
|
||||
</CardHeader>
|
||||
</Card>
|
||||
))}
|
||||
</div>
|
||||
<div className="mb-4">
|
||||
<label htmlFor="email" className="block mb-2">Email</label>
|
||||
<Input
|
||||
type="email"
|
||||
id="email"
|
||||
name="email"
|
||||
placeholder="Enter your email"
|
||||
className="bg-[#0000b3] border-[#4d4dff] focus:border-[#7f7fff] focus:ring-[#7f7fff]"
|
||||
/>
|
||||
</div>
|
||||
<div className="mb-4">
|
||||
<label htmlFor="message" className="block mb-2">Message</label>
|
||||
<Textarea
|
||||
id="message"
|
||||
name="message"
|
||||
rows={5}
|
||||
placeholder="Enter your message"
|
||||
className="bg-[#0000b3] border-[#4d4dff] focus:border-[#7f7fff] focus:ring-[#7f7fff]"
|
||||
/>
|
||||
</div>
|
||||
<div className="flex justify-end">
|
||||
<Button
|
||||
type="submit"
|
||||
className="inline-flex items-center rounded-md bg-[#4d4dff] px-4 py-2 text-sm font-medium text-white shadow-sm transition-colors hover:bg-[#3b3bd9] focus:outline-none focus:ring-2 focus:ring-[#4d4dff] focus:ring-offset-2"
|
||||
>
|
||||
Submit
|
||||
</Button>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</main>
|
||||
<footer className="bg-[#0000b3] py-6 px-6 text-center text-sm">
|
||||
<p>© 2024 Pietro Quintavalle. All rights reserved.</p>
|
||||
</footer>
|
||||
<style jsx>{`
|
||||
@keyframes marquee {
|
||||
0% {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
100% {
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
}
|
||||
|
||||
.animate-marquee {
|
||||
animation: marquee 30s linear infinite;
|
||||
}
|
||||
`}</style>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
import * as React from "react"
|
||||
import { cva, type VariantProps } from "class-variance-authority"
|
||||
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const badgeVariants = cva(
|
||||
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
||||
{
|
||||
variants: {
|
||||
variant: {
|
||||
default:
|
||||
"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
|
||||
secondary:
|
||||
"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
||||
destructive:
|
||||
"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
||||
outline: "text-foreground",
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
variant: "default",
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
export interface BadgeProps
|
||||
extends React.HTMLAttributes<HTMLDivElement>,
|
||||
VariantProps<typeof badgeVariants> {}
|
||||
|
||||
function Badge({ className, variant, ...props }: BadgeProps) {
|
||||
return (
|
||||
<div className={cn(badgeVariants({ variant }), className)} {...props} />
|
||||
)
|
||||
}
|
||||
|
||||
export { Badge, badgeVariants }
|
||||
@@ -0,0 +1,79 @@
|
||||
import * as React from "react"
|
||||
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
const Card = React.forwardRef<
|
||||
HTMLDivElement,
|
||||
React.HTMLAttributes<HTMLDivElement>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<div
|
||||
ref={ref}
|
||||
className={cn(
|
||||
"rounded-lg border bg-card text-card-foreground shadow-sm",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
))
|
||||
Card.displayName = "Card"
|
||||
|
||||
const CardHeader = React.forwardRef<
|
||||
HTMLDivElement,
|
||||
React.HTMLAttributes<HTMLDivElement>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<div
|
||||
ref={ref}
|
||||
className={cn("flex flex-col space-y-1.5 p-6", className)}
|
||||
{...props}
|
||||
/>
|
||||
))
|
||||
CardHeader.displayName = "CardHeader"
|
||||
|
||||
const CardTitle = React.forwardRef<
|
||||
HTMLParagraphElement,
|
||||
React.HTMLAttributes<HTMLHeadingElement>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<h3
|
||||
ref={ref}
|
||||
className={cn(
|
||||
"text-2xl font-semibold leading-none tracking-tight",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
))
|
||||
CardTitle.displayName = "CardTitle"
|
||||
|
||||
const CardDescription = React.forwardRef<
|
||||
HTMLParagraphElement,
|
||||
React.HTMLAttributes<HTMLParagraphElement>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<p
|
||||
ref={ref}
|
||||
className={cn("text-sm text-muted-foreground", className)}
|
||||
{...props}
|
||||
/>
|
||||
))
|
||||
CardDescription.displayName = "CardDescription"
|
||||
|
||||
const CardContent = React.forwardRef<
|
||||
HTMLDivElement,
|
||||
React.HTMLAttributes<HTMLDivElement>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
|
||||
))
|
||||
CardContent.displayName = "CardContent"
|
||||
|
||||
const CardFooter = React.forwardRef<
|
||||
HTMLDivElement,
|
||||
React.HTMLAttributes<HTMLDivElement>
|
||||
>(({ className, ...props }, ref) => (
|
||||
<div
|
||||
ref={ref}
|
||||
className={cn("flex items-center p-6 pt-0", className)}
|
||||
{...props}
|
||||
/>
|
||||
))
|
||||
CardFooter.displayName = "CardFooter"
|
||||
|
||||
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
|
||||
Reference in New Issue
Block a user