Skip to content

Commit

Permalink
Use different about us image for mobile/desktop
Browse files Browse the repository at this point in the history
  • Loading branch information
KojoBailey committed Nov 29, 2024
1 parent 4be23a5 commit 56d3d26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import "./styles/index.css";
import logo from "./assets/images/Logo.png";
import logo_JP from "./assets/images/Logo_JP.png"
import wonder_of_u from "./assets/images/Wonder_of_U.png";
import banner from "./assets/images/Long Banner.png";
import banner from "./assets/images/Banner.png";
import banner_long from "./assets/images/Long Banner.png";
import { GetFlag } from "./assets/flags.js";

const UseDebounce = (callback, delay) => {
Expand Down Expand Up @@ -165,7 +166,8 @@ function Home({lang}) {
<div id="about-us" className="about-us">
<div className="about-us-content">
<h1>{GrabText("headings", "about")}</h1>
<img className="banner" src={banner}></img>
<img className="banner only-mobile" src={banner}></img>
<img className="banner no-mobile" src={banner_long}></img>
<Markdown className="markdown">{GrabText("content", "about")}</Markdown>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ p {
}

@media only screen and (min-width: 768px) {
.only-mobile {
display: none;
}

h1:before, h1:after {
font-family: "Starz";
content: "F";
Expand Down

0 comments on commit 56d3d26

Please sign in to comment.