Skip to content

Commit

Permalink
add Landing page mode images
Browse files Browse the repository at this point in the history
  • Loading branch information
HalynaRiabokonenko committed Mar 2, 2024
1 parent 59ad05b commit 77e5205
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
Binary file added my-app/public/images/main-img-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added my-app/public/images/main-img-dark1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added my-app/public/images/main-img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions my-app/src/Components/LandingPage/LandingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {ReactElement, useState, useEffect, useContext } from "react";
import { ReactElement, useState, useEffect, useContext } from "react";
import styles from "./LandingPage.module.css";
import { ThemeContext } from "../../providers/theme.tsx";
import { LandingPageProps } from "./LandingPage.types";

export const LandingPage = ({ quotes }:LandingPageProps):ReactElement => {
export const LandingPage = ({ quotes }: LandingPageProps): ReactElement => {
const [quote, setQuote] = useState<string>(quotes[0]);

const { theme } = useContext(ThemeContext);
Expand All @@ -30,10 +30,11 @@ export const LandingPage = ({ quotes }:LandingPageProps):ReactElement => {
</p>
</div>
<div className={styles["info__image-container"]}>
<img
className={styles["info__img"]}
src="../public/images/studio.png"
></img>
{theme === "light" ? (
<img className={styles["info__img"]} src="../public/images/main-img.png" />
) : (
<img className={styles["info__img"]} src="../public/images/main-img-dark1.png" />
)}
</div>
</div>
</div>
Expand Down
5 changes: 0 additions & 5 deletions my-app/src/Components/Portfolio/Portfolio.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
height: 150px;
border-radius: 25px;
transition: 0.5s all ease-in-out;
border: 0.3px solid var(--box-light-color-dark);
}

.portfolio__photo:hover {
Expand All @@ -81,7 +80,3 @@
background: var(--box-light-color-dark);
color: var(--main-text-color-dark);
}

.dark .portfolio__photo {
border: 0.3px solid white;
}

0 comments on commit 77e5205

Please sign in to comment.