Skip to content

Commit 1d862bb

Browse files
committed
Support Light and Dark mode
1 parent fb7b8eb commit 1d862bb

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

src/components/Home/Home2.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect } from "react";
2-
import { Container, Row, Col, Modal, Button } from "react-bootstrap";
2+
import { Container, Row, Col, Modal } from "react-bootstrap";
33
import Tilt from "react-parallax-tilt";
44
import { AiFillGithub, AiOutlineDownload } from "react-icons/ai";
55
import { SiBilibili } from "react-icons/si";
@@ -86,8 +86,7 @@ function Home2() {
8686
href={cvFile}
8787
target="_blank"
8888
rel="noopener noreferrer"
89-
className="floating-nav-ghost-btn"
90-
style={{ maxWidth: '200px' }}
89+
className="download-cv-button"
9190
>
9291
<AiOutlineDownload />
9392
<span>Download CV</span>

src/components/Resume/ResumeNew.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect, useCallback, useRef, useMemo } from "react";
2-
import { Container, Row, Button, Spinner, ProgressBar } from "react-bootstrap";
2+
import { Container, Row, Spinner, ProgressBar } from "react-bootstrap";
33
import { AiOutlineDownload } from "react-icons/ai";
44
import { Document, Page, pdfjs } from "react-pdf";
55
import pdf from "../../Assets/cv/Yuting_Zhou_CV.pdf";
@@ -43,8 +43,7 @@ const DownloadButton = () => (
4343
href={pdf}
4444
target="_blank"
4545
rel="noopener noreferrer"
46-
className="floating-nav-ghost-btn"
47-
style={{ maxWidth: '200px' }}
46+
className="download-cv-button"
4847
>
4948
<AiOutlineDownload />
5049
<span>Download CV</span>

src/css/style.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3356,11 +3356,12 @@ body.homepage .home-about-section {
33563356
backdrop-filter: blur(10px);
33573357
-webkit-backdrop-filter: blur(10px);
33583358
border: 1px solid var(--border-medium) !important;
3359-
padding: 11px 34px !important;
3359+
padding: 12px 36px !important;
33603360
border-radius: var(--button-radius-pill) !important;
33613361
font-size: 1.15rem !important;
33623362
font-weight: 600 !important;
33633363
letter-spacing: 0.5px !important;
3364+
text-decoration: none !important;
33643365
transition: var(--button-transition) !important;
33653366
box-shadow: var(--shadow-drop-md) !important;
33663367
}
@@ -3370,6 +3371,8 @@ body.homepage .home-about-section {
33703371
box-shadow: var(--shadow-drop-lg) !important;
33713372
backdrop-filter: blur(12px);
33723373
-webkit-backdrop-filter: blur(12px);
3374+
text-decoration: none !important;
3375+
color: var(--button-pill-text) !important;
33733376
}
33743377

33753378
.download-cv-button:active {
@@ -3378,7 +3381,7 @@ body.homepage .home-about-section {
33783381
}
33793382

33803383
.download-cv-button svg {
3381-
font-size: 1.5em !important; /* Adjust icon size */
3384+
font-size: 1.4em !important; /* Adjust icon size */
33823385
margin-right: 8px;
33833386
}
33843387

@@ -3390,7 +3393,7 @@ body.homepage .home-about-section {
33903393
}
33913394

33923395
.download-cv-button svg {
3393-
font-size: 1.4em !important;
3396+
font-size: 1.3em !important;
33943397
}
33953398
}
33963399

0 commit comments

Comments
 (0)