Skip to content

Commit 2b7d58c

Browse files
update default color
1 parent d98a158 commit 2b7d58c

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

my-portfolio/src/components/About.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function About() {
2929
>
3030
I’m <span className="font-semibold">Jingrui Feng</span>, an Information Technology and Web Science graduate
3131
from Rensselaer Polytechnic Institute, currently based in <span className="font-semibold">Jersey City, NJ</span>.
32-
My interests lie in full-stack development, scalable software design, and systems optimization.
32+
I’m passionate about full-stack development and designing efficient, maintainable software solutions that deliver great user experiences.
3333
</motion.p>
3434

3535
<motion.p

my-portfolio/src/components/Navbar.jsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,9 @@ import { AnimatePresence, motion } from "framer-motion";
44

55
export default function NavBar() {
66
const [active, setActive] = useState("");
7-
const [theme, setTheme] = useState(
8-
() =>
9-
localStorage.getItem("theme") ||
10-
(window.matchMedia("(prefers-color-scheme: dark)").matches
11-
? "dark"
12-
: "light")
13-
);
7+
// Default to light mode first; remember user’s last choice
8+
const [theme, setTheme] = useState(() => localStorage.getItem("theme") || "light");
9+
1410

1511
// observe which section is active
1612
useEffect(() => {

my-portfolio/src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ html {
55
scroll-behavior: smooth;
66
transition: background-color 0.3s ease, color 0.3s ease;
77
}
8+
html, body {
9+
transition: background-color 0.3s ease, color 0.3s ease;
10+
}
11+

0 commit comments

Comments
 (0)