Skip to content

Commit fd94e46

Browse files
committed
Update location link and email style in footer
1 parent b9a1e8f commit fd94e46

3 files changed

Lines changed: 30 additions & 4 deletions

File tree

src/components/MainFrame/Footer.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
22
import { Container, Row, Col, Modal } from "react-bootstrap";
33
import { AiFillGithub } from "react-icons/ai";
44
import { SiBilibili } from "react-icons/si";
5-
import { FaLinkedinIn, FaWeixin } from "react-icons/fa";
5+
import { FaLinkedinIn, FaWeixin, FaEnvelope } from "react-icons/fa";
66
import wechatQrCode from "../../Assets/about/social/Wechat.jpg";
77

88
const Footer = () => {
@@ -39,8 +39,9 @@ const Footer = () => {
3939
<Container fluid className="footer">
4040
<Row className="align-items-center justify-content-center">
4141
<Col md={4} className="footer-copyright d-flex align-items-center justify-content-center">
42-
<a href="mailto:zyt680129@gmail.com" className="email-link">
43-
<h3>Email: zyt680129@gmail.com</h3>
42+
<a href="mailto:zyt680129@gmail.com" className="email-link footer-email">
43+
<FaEnvelope className="footer-email__icon" aria-hidden="true" />
44+
<span className="footer-email__text">zyt680129@gmail.com</span>
4445
</a>
4546
</Col>
4647
<Col md={4} className="footer-copyright d-flex align-items-center justify-content-center">

src/components/MainFrame/Navbar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ function NavBar({ triggerPreloader }) {
424424
<div className="floating-nav-contact-group">
425425
<a
426426
className="floating-nav-contact-item"
427-
href="https://www.google.com/maps/search/?api=1&query=Rutgers%20University%E2%80%93New%20Brunswick"
427+
href="https://www.cs.rutgers.edu/"
428428
target="_blank"
429429
rel="noopener noreferrer"
430430
>

src/css/style.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1681,6 +1681,31 @@ body.homepage .home-about-section {
16811681
text-decoration: none;
16821682
}
16831683

1684+
.email-link:hover .footer-email__icon,
1685+
.email-link:hover .footer-email__text {
1686+
color: var(--navbar-color-brand);
1687+
}
1688+
1689+
.footer-email {
1690+
display: inline-flex;
1691+
align-items: center;
1692+
gap: 0.5rem;
1693+
}
1694+
1695+
.footer-email__icon {
1696+
font-size: 1.25rem;
1697+
flex-shrink: 0;
1698+
color: inherit;
1699+
transition: color 0.2s ease;
1700+
}
1701+
1702+
.footer-email__text {
1703+
font-size: 1rem;
1704+
font-weight: 500;
1705+
color: inherit;
1706+
transition: color 0.2s ease;
1707+
}
1708+
16841709
.blockquote-footer {
16851710
color: var(--color-blockquote-footer) !important;
16861711
}

0 commit comments

Comments
 (0)