v0.12.1 Use new component in App, AboutMe and Footer sections instead of anchor tag
This commit is contained in:
parent
e7c59b77bb
commit
ad7079ef38
4 changed files with 11 additions and 7 deletions
|
|
@ -3,13 +3,14 @@ import React, { useEffect, useState, useSyncExternalStore } from "react";
|
|||
import Header from "./components/header/Header";
|
||||
import Footer from "./components/footer/Footer";
|
||||
import Hero from "./components/hero/Hero";
|
||||
import InfoSection from "./components/info/InfoSection";
|
||||
import Separator from "./components/separater/Separater";
|
||||
import Projects from "./components/projects/Projects";
|
||||
import AboutMe from "./components/aboutMe/AboutMe";
|
||||
import Publications from "./components/publications/Publications";
|
||||
import Contact from "./components/contact/Contact";
|
||||
|
||||
import InfoSection from "./shared/components/info/InfoSection";
|
||||
|
||||
import styles from "./App.module.css";
|
||||
|
||||
function App() {
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ import React from "react";
|
|||
import styles from "./AboutMe.module.css";
|
||||
import { FaGithub, FaLinkedin, FaTwitter } from "react-icons/fa";
|
||||
|
||||
import ResumeDownloader from "../../shared/components/resumeDownloader/ResumeDownloader";
|
||||
|
||||
function AboutMe({ data }) {
|
||||
const scrollToContact = () => {
|
||||
const contactSection = document.getElementById("contact");
|
||||
|
|
@ -64,9 +66,7 @@ function AboutMe({ data }) {
|
|||
</div>
|
||||
</div>
|
||||
<div className={styles.bottomSection}>
|
||||
<a href={personalInfo.resumelink} target="_blank" rel="noopener noreferrer" className={styles.resumeLink}>
|
||||
Download Resume (PDF)
|
||||
</a>
|
||||
<ResumeDownloader resumeLink={personalInfo.resumelink} />
|
||||
<button onClick={scrollToContact} className={styles.contactLink}>
|
||||
Contact Me
|
||||
</button>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ import React, { useEffect, useRef, useState } from "react";
|
|||
import styles from "./Footer.module.css";
|
||||
import logo from "/assets/logos/logo.png";
|
||||
|
||||
import ResumeDownloader from "../../shared/components/resumeDownloader/ResumeDownloader";
|
||||
|
||||
function Footer({ data }) {
|
||||
const [isVisible, setIsVisible] = useState(false);
|
||||
const footerRef = useRef(null);
|
||||
|
|
@ -57,9 +59,10 @@ function Footer({ data }) {
|
|||
</div>
|
||||
</div>
|
||||
<div className={styles.bottomSection}>
|
||||
<a href={personalInfo.resumelink} target="_blank" rel="noopener noreferrer" className={styles.resumeLink}>
|
||||
{/* <a href={personalInfo.resumelink} target="_blank" rel="noopener noreferrer" className={styles.resumeLink}>
|
||||
Download Resume (PDF)
|
||||
</a>
|
||||
</a> */}
|
||||
<ResumeDownloader resumeLink={personalInfo.resumelink} />
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
0.11.7
|
||||
0.12.1
|
||||
Loading…
Add table
Add a link
Reference in a new issue