Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace images with SVG icons #35

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ yarn-error.log*

# typescript
*.tsbuildinfo
next-env.d.ts
next-env.d.ts
yarn.lock
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"next": "14.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7"
"react-icons": "^5.3.0",
"tailwind-merge": "^2.5.2"
},
"devDependencies": {
"@types/node": "^20.16.5",
Expand Down
78 changes: 26 additions & 52 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import { useState, useEffect } from "react";
import { motion, AnimatePresence } from "framer-motion";
import { motion } from "framer-motion";
import Link from "next/link";
import Email from "@/components/email";
import DotsBackground from "@/components/DotsBackground";
import styles from "@/styles/Home.module.css";
import Image from "next/image";
import {
SiDevdotto,
SiGithub,
SiInstagram,
SiLinkedin,
SiX,
} from "react-icons/si";

export default function Home() {
const [selectedTab, setSelectedTab] = useState("Homepage");
Expand Down Expand Up @@ -112,70 +118,38 @@ export default function Home() {
</div>
<div className={styles.menu2}>
<a href="https://www.instagram.com/jasper.mayone/">
<Image
src="/images/instagram.webp"
alt="X Logo"
width={20}
height={20}
style={{ borderRadius: "15%" }}
/>
<SiInstagram width={20} height={20} />
</a>
<a href="https://x.com/jaspermayone">
<Image
src="/images/x.png"
alt="X Logo"
width={20}
height={20}
style={{ borderRadius: "15%" }}
/>
<SiX width={20} height={20} />
</a>
<a href="https://github.com/jaspermayone/">
<Image
src="/images/github.png"
alt="Github Logo"
width={20}
height={20}
style={{ borderRadius: "15%" }}
/>
<SiGithub width={20} height={20} />
</a>
<a href="https://www.linkedin.com/in/jaspermayone/">
<Image
src="/images/linkedin.png"
alt="Linkedin Logo"
width={20}
height={20}
style={{ borderRadius: "15%" }}
/>
<SiLinkedin width={20} height={20} />
</a>
<a href="https://dev.to/jaspermayone">
<Image
src="/images/devto.png"
alt="Dev.to Logo"
width={20}
height={20}
style={{ borderRadius: "15%" }}
/>
<SiDevdotto width={20} height={20} />
</a>
</div>
</div>
</div>

<div className={styles.contentBox}>
<AnimatePresence mode="wait">
<motion.div
key={selectedTab}
variants={fadeVariants}
initial="hidden"
animate="visible"
exit="exit"
transition={{
opacity: { duration: 0.5 },
filter: { duration: 0.5 },
}}
>
{renderContent()}
</motion.div>
</AnimatePresence>
<motion.div
key={selectedTab}
variants={fadeVariants}
initial="hidden"
animate="visible"
exit="exit"
transition={{
opacity: { duration: 0.5 },
filter: { duration: 0.5 },
}}
>
{renderContent()}
</motion.div>
</div>
</div>
</motion.div>
Expand Down
Loading
Loading