Initial portfolio site
This commit is contained in:
4
Dockerfile
Normal file
4
Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM nginx:alpine
|
||||
COPY . /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
56
README.md
Normal file
56
README.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# Donovan Kelly - Portfolio
|
||||
|
||||
A clean, responsive portfolio site.
|
||||
|
||||
## Structure
|
||||
|
||||
```
|
||||
donovan-portfolio/
|
||||
├── index.html
|
||||
├── css/
|
||||
│ └── style.css
|
||||
├── js/
|
||||
│ └── main.js
|
||||
├── assets/
|
||||
│ └── (images, favicon, etc.)
|
||||
└── README.md
|
||||
```
|
||||
|
||||
## Setup
|
||||
|
||||
### Contact Form
|
||||
The contact form uses [Formspree](https://formspree.io/) for handling submissions on static hosting.
|
||||
|
||||
1. Create a free account at formspree.io
|
||||
2. Create a new form and copy the form ID
|
||||
3. Replace `YOUR_FORM_ID` in `index.html` with your actual form ID:
|
||||
```html
|
||||
<form action="https://formspree.io/f/YOUR_FORM_ID" method="POST">
|
||||
```
|
||||
|
||||
### Social Links
|
||||
Update the GitHub link in `index.html` if you have one:
|
||||
```html
|
||||
<a href="https://github.com/YOUR_USERNAME" ...>
|
||||
```
|
||||
|
||||
## Deployment
|
||||
|
||||
### Static Hosting (Netlify, Vercel, GitHub Pages)
|
||||
Just upload/push the folder - no build step required.
|
||||
|
||||
### Docker
|
||||
```dockerfile
|
||||
FROM nginx:alpine
|
||||
COPY . /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
```
|
||||
|
||||
### Dokploy
|
||||
Upload as static site or use the Docker method above.
|
||||
|
||||
## Customization
|
||||
|
||||
- **Colors**: Edit CSS variables in `css/style.css` under `:root`
|
||||
- **Content**: Edit `index.html` directly
|
||||
- **Add projects**: Copy a `.project-card` block and modify
|
||||
466
css/style.css
Normal file
466
css/style.css
Normal file
@@ -0,0 +1,466 @@
|
||||
/* Reset & Base */
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
:root {
|
||||
--color-bg: #fafafa;
|
||||
--color-surface: #ffffff;
|
||||
--color-text: #1a1a1a;
|
||||
--color-text-muted: #666666;
|
||||
--color-primary: #2563eb;
|
||||
--color-primary-hover: #1d4ed8;
|
||||
--color-border: #e5e5e5;
|
||||
--color-accent: #f0f4ff;
|
||||
--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
--container-width: 1100px;
|
||||
--spacing-xs: 0.5rem;
|
||||
--spacing-sm: 1rem;
|
||||
--spacing-md: 1.5rem;
|
||||
--spacing-lg: 2rem;
|
||||
--spacing-xl: 3rem;
|
||||
--spacing-xxl: 5rem;
|
||||
--radius-sm: 4px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
--shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
|
||||
--shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
|
||||
--transition: 150ms ease;
|
||||
}
|
||||
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: var(--font-family);
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
color: var(--color-text);
|
||||
background-color: var(--color-bg);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
max-width: var(--container-width);
|
||||
margin: 0 auto;
|
||||
padding: 0 var(--spacing-md);
|
||||
}
|
||||
|
||||
/* Typography */
|
||||
h1, h2, h3, h4 {
|
||||
font-weight: 600;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
h1 { font-size: 3rem; }
|
||||
h2 { font-size: 2rem; }
|
||||
h3 { font-size: 1.25rem; }
|
||||
|
||||
p {
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-primary);
|
||||
text-decoration: none;
|
||||
transition: color var(--transition);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--color-primary-hover);
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
.nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: blur(10px);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.nav-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
max-width: var(--container-width);
|
||||
margin: 0 auto;
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
}
|
||||
|
||||
.nav-logo {
|
||||
font-size: 1.25rem;
|
||||
font-weight: 700;
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.nav-logo:hover {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
list-style: none;
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
color: var(--color-text-muted);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
transition: color var(--transition);
|
||||
}
|
||||
|
||||
.nav-links a:hover {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
.btn {
|
||||
display: inline-block;
|
||||
padding: 0.75rem 1.5rem;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
transition: all var(--transition);
|
||||
border: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: var(--color-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: var(--color-primary-hover);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: transparent;
|
||||
color: var(--color-text);
|
||||
border: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
border-color: var(--color-text);
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
/* Hero */
|
||||
.hero {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: var(--spacing-xxl) var(--spacing-md);
|
||||
text-align: center;
|
||||
background: linear-gradient(180deg, var(--color-accent) 0%, var(--color-bg) 100%);
|
||||
}
|
||||
|
||||
.hero-content {
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.hero h1 {
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.hero-subtitle {
|
||||
font-size: 1.25rem;
|
||||
color: var(--color-primary);
|
||||
font-weight: 500;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.hero-description {
|
||||
font-size: 1.1rem;
|
||||
color: var(--color-text-muted);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.hero-cta {
|
||||
display: flex;
|
||||
gap: var(--spacing-sm);
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
/* Sections */
|
||||
.section {
|
||||
padding: var(--spacing-xxl) 0;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
margin-bottom: var(--spacing-xl);
|
||||
text-align: center;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.section-title::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 50px;
|
||||
height: 3px;
|
||||
background: var(--color-primary);
|
||||
margin: var(--spacing-sm) auto 0;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/* About */
|
||||
.about {
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.about-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--spacing-xl);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.about-text p {
|
||||
color: var(--color-text-muted);
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.about-text strong {
|
||||
color: var(--color-text);
|
||||
}
|
||||
|
||||
.about-skills h3 {
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.skills-grid {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.skill-tag {
|
||||
display: inline-block;
|
||||
padding: 0.4rem 0.8rem;
|
||||
background: var(--color-accent);
|
||||
color: var(--color-primary);
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
/* Projects */
|
||||
.projects-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.project-card {
|
||||
background: var(--color-surface);
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: var(--spacing-lg);
|
||||
transition: box-shadow var(--transition), transform var(--transition);
|
||||
}
|
||||
|
||||
.project-card:hover {
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.project-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.project-header h3 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.project-status {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
color: #16a34a;
|
||||
background: #dcfce7;
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
.project-date {
|
||||
font-size: 0.8rem;
|
||||
color: var(--color-text-muted);
|
||||
}
|
||||
|
||||
.project-role {
|
||||
font-size: 0.9rem;
|
||||
color: var(--color-primary);
|
||||
font-weight: 500;
|
||||
margin-bottom: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.project-description {
|
||||
color: var(--color-text-muted);
|
||||
font-size: 0.95rem;
|
||||
margin-bottom: var(--spacing-md);
|
||||
}
|
||||
|
||||
.project-tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.project-tags span {
|
||||
font-size: 0.75rem;
|
||||
padding: 0.25rem 0.5rem;
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text-muted);
|
||||
border-radius: var(--radius-sm);
|
||||
}
|
||||
|
||||
/* Contact */
|
||||
.contact {
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
.contact-content {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1.5fr;
|
||||
gap: var(--spacing-xl);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.contact-info p {
|
||||
color: var(--color-text-muted);
|
||||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.social-links {
|
||||
display: flex;
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.social-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-bg);
|
||||
color: var(--color-text-muted);
|
||||
transition: all var(--transition);
|
||||
}
|
||||
|
||||
.social-link:hover {
|
||||
background: var(--color-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.contact-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.form-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--spacing-xs);
|
||||
}
|
||||
|
||||
.form-group label {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.form-group input,
|
||||
.form-group textarea {
|
||||
padding: 0.75rem 1rem;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-md);
|
||||
font-family: inherit;
|
||||
font-size: 1rem;
|
||||
transition: border-color var(--transition), box-shadow var(--transition);
|
||||
}
|
||||
|
||||
.form-group input:focus,
|
||||
.form-group textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--color-primary);
|
||||
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
|
||||
}
|
||||
|
||||
.form-group textarea {
|
||||
resize: vertical;
|
||||
min-height: 120px;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
.footer {
|
||||
padding: var(--spacing-lg) 0;
|
||||
text-align: center;
|
||||
border-top: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.footer p {
|
||||
color: var(--color-text-muted);
|
||||
font-size: 0.9rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Responsive */
|
||||
@media (max-width: 768px) {
|
||||
h1 { font-size: 2.25rem; }
|
||||
h2 { font-size: 1.75rem; }
|
||||
|
||||
.nav-links {
|
||||
gap: var(--spacing-md);
|
||||
}
|
||||
|
||||
.about-content,
|
||||
.contact-content {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.projects-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.hero {
|
||||
padding-top: calc(var(--spacing-xxl) + 60px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
h1 { font-size: 1.875rem; }
|
||||
|
||||
.nav-links {
|
||||
gap: var(--spacing-sm);
|
||||
}
|
||||
|
||||
.nav-links a {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.hero-cta {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.hero-cta .btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
159
index.html
Normal file
159
index.html
Normal file
@@ -0,0 +1,159 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Donovan Kelly | CTO & Software Engineer</title>
|
||||
<meta name="description" content="Portfolio of Donovan Kelly - CTO at Arcanum Technology, building cutting-edge authentication systems and autonomous robotics.">
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<nav class="nav">
|
||||
<div class="nav-container">
|
||||
<a href="#" class="nav-logo">DK</a>
|
||||
<ul class="nav-links">
|
||||
<li><a href="#about">About</a></li>
|
||||
<li><a href="#projects">Projects</a></li>
|
||||
<li><a href="#contact">Contact</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<header class="hero">
|
||||
<div class="hero-content">
|
||||
<h1>Donovan Kelly</h1>
|
||||
<p class="hero-subtitle">CTO & Software Engineer</p>
|
||||
<p class="hero-description">Building secure authentication systems and autonomous robotics at the intersection of software and hardware.</p>
|
||||
<div class="hero-cta">
|
||||
<a href="#projects" class="btn btn-primary">View Projects</a>
|
||||
<a href="#contact" class="btn btn-secondary">Get in Touch</a>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section id="about" class="section about">
|
||||
<div class="container">
|
||||
<h2 class="section-title">About</h2>
|
||||
<div class="about-content">
|
||||
<div class="about-text">
|
||||
<p>I'm the CTO of <strong>Arcanum Technology LLC</strong>, where I lead the development of <strong>nKode</strong> — a cutting-edge multi-factor authentication system designed to make security seamless and robust.</p>
|
||||
<p>My background spans embedded systems, robotics, and full-stack development. I've built everything from autonomous robots using ROS and computer vision to secure authentication infrastructure.</p>
|
||||
<p>I'm passionate about solving hard problems at the edge of what's possible — whether that's making machines navigate the real world or protecting digital identities.</p>
|
||||
</div>
|
||||
<div class="about-skills">
|
||||
<h3>Skills & Technologies</h3>
|
||||
<div class="skills-grid">
|
||||
<span class="skill-tag">Python</span>
|
||||
<span class="skill-tag">C/C++</span>
|
||||
<span class="skill-tag">ROS</span>
|
||||
<span class="skill-tag">Computer Vision</span>
|
||||
<span class="skill-tag">SLAM</span>
|
||||
<span class="skill-tag">Embedded Systems</span>
|
||||
<span class="skill-tag">Authentication</span>
|
||||
<span class="skill-tag">Security</span>
|
||||
<span class="skill-tag">Full-Stack</span>
|
||||
<span class="skill-tag">Leadership</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="projects" class="section projects">
|
||||
<div class="container">
|
||||
<h2 class="section-title">Projects</h2>
|
||||
<div class="projects-grid">
|
||||
<article class="project-card">
|
||||
<div class="project-header">
|
||||
<h3>nKode</h3>
|
||||
<span class="project-status">Current</span>
|
||||
</div>
|
||||
<p class="project-role">CTO, Arcanum Technology LLC</p>
|
||||
<p class="project-description">A cutting-edge multi-factor authentication system designed for modern security needs. Leading architecture, development, and team strategy.</p>
|
||||
<div class="project-tags">
|
||||
<span>Authentication</span>
|
||||
<span>Security</span>
|
||||
<span>MFA</span>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="project-card">
|
||||
<div class="project-header">
|
||||
<h3>F.R.A.N.C.</h3>
|
||||
<span class="project-date">2018 - Present</span>
|
||||
</div>
|
||||
<p class="project-role">Software Lead</p>
|
||||
<p class="project-description">Forest Roaming Autonomous Nature Creator — an autonomous seed-planting robot. Developed software using ROS for simultaneous localization and mapping (SLAM) with Xbox Kinect and LiDAR sensors.</p>
|
||||
<div class="project-tags">
|
||||
<span>ROS</span>
|
||||
<span>SLAM</span>
|
||||
<span>LiDAR</span>
|
||||
<span>Computer Vision</span>
|
||||
<span>Robotics</span>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="project-card">
|
||||
<div class="project-header">
|
||||
<h3>Slug Slinger</h3>
|
||||
<span class="project-date">Sep - Dec 2018</span>
|
||||
</div>
|
||||
<p class="project-role">Software Lead</p>
|
||||
<p class="project-description">Autonomous combat robot capable of navigating a 16ft × 8ft arena, locating enemy robots, and firing projectiles up to 16ft. Built from scratch on a PIC32 microcontroller with full custom software stack.</p>
|
||||
<div class="project-tags">
|
||||
<span>PIC32</span>
|
||||
<span>Embedded C</span>
|
||||
<span>Autonomous Navigation</span>
|
||||
<span>Robotics</span>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="contact" class="section contact">
|
||||
<div class="container">
|
||||
<h2 class="section-title">Get in Touch</h2>
|
||||
<div class="contact-content">
|
||||
<div class="contact-info">
|
||||
<p>Interested in working together or have a question? Drop me a message.</p>
|
||||
<div class="social-links">
|
||||
<a href="https://www.linkedin.com/in/donovan-kelly-0a231387/" target="_blank" rel="noopener" class="social-link" aria-label="LinkedIn">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>
|
||||
</a>
|
||||
<a href="https://github.com/" target="_blank" rel="noopener" class="social-link" aria-label="GitHub">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<form class="contact-form" action="https://formspree.io/f/YOUR_FORM_ID" method="POST">
|
||||
<div class="form-group">
|
||||
<label for="name">Name</label>
|
||||
<input type="text" id="name" name="name" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="email">Email</label>
|
||||
<input type="email" id="email" name="email" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="message">Message</label>
|
||||
<textarea id="message" name="message" rows="5" required></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Send Message</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<p>© 2026 Donovan Kelly. All rights reserved.</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
72
js/main.js
Normal file
72
js/main.js
Normal file
@@ -0,0 +1,72 @@
|
||||
// Smooth scroll for anchor links
|
||||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||||
anchor.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
const target = document.querySelector(this.getAttribute('href'));
|
||||
if (target) {
|
||||
const navHeight = document.querySelector('.nav').offsetHeight;
|
||||
const targetPosition = target.getBoundingClientRect().top + window.pageYOffset - navHeight;
|
||||
window.scrollTo({
|
||||
top: targetPosition,
|
||||
behavior: 'smooth'
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Nav background on scroll
|
||||
const nav = document.querySelector('.nav');
|
||||
let lastScroll = 0;
|
||||
|
||||
window.addEventListener('scroll', () => {
|
||||
const currentScroll = window.pageYOffset;
|
||||
|
||||
if (currentScroll > 100) {
|
||||
nav.style.boxShadow = '0 1px 3px rgba(0,0,0,0.1)';
|
||||
} else {
|
||||
nav.style.boxShadow = 'none';
|
||||
}
|
||||
|
||||
lastScroll = currentScroll;
|
||||
});
|
||||
|
||||
// Form submission handling
|
||||
const form = document.querySelector('.contact-form');
|
||||
if (form) {
|
||||
form.addEventListener('submit', async (e) => {
|
||||
const submitBtn = form.querySelector('button[type="submit"]');
|
||||
const originalText = submitBtn.textContent;
|
||||
|
||||
// Show loading state
|
||||
submitBtn.textContent = 'Sending...';
|
||||
submitBtn.disabled = true;
|
||||
|
||||
// If using Formspree, let it handle normally
|
||||
// This is just for UX feedback
|
||||
setTimeout(() => {
|
||||
submitBtn.textContent = originalText;
|
||||
submitBtn.disabled = false;
|
||||
}, 3000);
|
||||
});
|
||||
}
|
||||
|
||||
// Intersection Observer for fade-in animations
|
||||
const observerOptions = {
|
||||
root: null,
|
||||
rootMargin: '0px',
|
||||
threshold: 0.1
|
||||
};
|
||||
|
||||
const observer = new IntersectionObserver((entries) => {
|
||||
entries.forEach(entry => {
|
||||
if (entry.isIntersecting) {
|
||||
entry.target.classList.add('visible');
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, observerOptions);
|
||||
|
||||
// Observe elements (if you want fade-in effects, add .fade-in class to elements)
|
||||
document.querySelectorAll('.fade-in').forEach(el => {
|
||||
observer.observe(el);
|
||||
});
|
||||
Reference in New Issue
Block a user