-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added yml for next build and fixed contact page
- Loading branch information
Showing
13 changed files
with
120 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Deploy to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: ["next"] | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
|
||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./out | ||
|
||
deploy: | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import type { NextConfig } from "next"; | ||
// import type { NextConfig } from "next"; | ||
|
||
const nextConfig: NextConfig = { | ||
/* config options here */ | ||
const nextConfig = { | ||
output: "export", | ||
reactStrictMode: true, | ||
images: { | ||
unoptimized: true, | ||
}, | ||
}; | ||
|
||
export default nextConfig; | ||
module.exports = nextConfig; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,8 @@ | |
|
||
import { useState } from "react"; | ||
import { motion } from "framer-motion"; | ||
import { Card } from "../shared/Card"; | ||
import { Button } from "../shared/Button"; | ||
import { validateEmail } from "../../lib/utils"; | ||
import { FaCoffee } from "react-icons/fa"; | ||
|
||
const Contact = () => { | ||
const [formData, setFormData] = useState({ | ||
|
@@ -25,11 +23,11 @@ const Contact = () => { | |
|
||
setIsSubmitting(true); | ||
try { | ||
// Add your form submission logic here | ||
await new Promise((resolve) => setTimeout(resolve, 1000)); // Simulate API call | ||
setStatus("success"); | ||
setFormData({ name: "", email: "", message: "" }); | ||
} catch (error) { | ||
console.error("Form submission error:", error); // Added error logging | ||
setStatus("error"); | ||
} | ||
setIsSubmitting(false); | ||
|
@@ -49,7 +47,7 @@ const Contact = () => { | |
</p> | ||
</motion.div> | ||
|
||
<div className="grid grid-cols-2 gap-24 mx-auto"> | ||
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 md:gap-24 mx-auto"> | ||
{/* Contact Form */} | ||
<motion.div | ||
initial={{ opacity: 0, x: -20 }} | ||
|
@@ -163,14 +161,14 @@ const Contact = () => { | |
flex flex-col items-center justify-center" | ||
> | ||
<h3 className="text-4xl font-bold mb-4 text-white"> | ||
Let's Grab a Coffee! ☕ | ||
Let's Grab a Coffee! ☕ | ||
</h3> | ||
|
||
<p className="text-xl text-gray-300 mb-6"> | ||
Hey there! Let’s skip the endless email threads and chat over | ||
Hey there! Let's skip the endless email threads and chat over | ||
coffee instead. I know a spot where the brews are strong, the | ||
vibes are great, and—if we're lucky—your bugs might just debug | ||
themselves. | ||
vibes are great, and—if we're lucky—your bugs might just | ||
debug themselves. | ||
<span className="block mt-2 text-purple-300"> | ||
(No promises on the bugs, but the coffee? 100% bug-free. 😉) | ||
</span> | ||
|
@@ -181,7 +179,7 @@ const Contact = () => { | |
size="lg" | ||
onClick={() => | ||
window.open( | ||
"mailto:[email protected]?subject=Let’s%20Talk%20Tech%20Over%20Coffee" | ||
"mailto:[email protected]?subject=Let's%20Talk%20Tech%20Over%20Coffee" | ||
) | ||
} | ||
className="bg-purple-600 hover:bg-purple-700 transform hover:scale-105 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters