Skip to content

Commit

Permalink
svg ke png
Browse files Browse the repository at this point in the history
  • Loading branch information
yuusha25 committed Dec 10, 2024
1 parent a9ea87d commit 471d33e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
14 changes: 6 additions & 8 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { useState, useEffect } from "react";
import { Link, useNavigate, useLocation } from "react-router-dom";
import menu from "../assets/menu.png";

import logo from "../assets/logo-fix.png";
import pipe from "../assets/pipe.png";
import account from "../assets/account.png";
const Header = () => {
const [isScrolled, setIsScrolled] = useState(false);
const [isMenuOpen, setIsMenuOpen] = useState(false);
Expand Down Expand Up @@ -94,11 +96,7 @@ const Header = () => {
style={{ zIndex: 10 }}
>
<div className="flex items-center space-x-8">
<img
src="./src/assets/logo-fix.png"
alt="logo"
className="h-10 lg:h-12 w-auto max-w-[240px]"
/>
<img src={logo} alt="logo" className="h-10 lg:h-12 w-auto max-w-[240px]"/>
</div>

{/* Desktop Menu */}
Expand All @@ -110,14 +108,14 @@ const Header = () => {
Playback
</Link>

<img src="./src/assets/pipe.png" alt="separator" className="h-6" />
<img src={pipe} alt="separator" className="h-6" />

{userId ? (
<div className="flex">
<button type="button" onClick={toggleDropdown}>
<span className="text-[#365486] font-medium flex items-center">
<img
src="src/assets/account.png"
src={account}
width="16px"
className="mr-1"
alt="Account Icon"
Expand Down
6 changes: 4 additions & 2 deletions src/components/PlayBack/ImageViewModeToggle.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React from "react";
import list from "../../assets/list.png";
import grid from "../../assets/grid.png";

const ImageViewModeToggle = ({ viewMode, onViewModeChange }) => {
return (
Expand All @@ -9,15 +11,15 @@ const ImageViewModeToggle = ({ viewMode, onViewModeChange }) => {
viewMode === "list" ? "bg-[#2a4675]" : "bg-[#e0e0e0]"
}`}
>
<img src="./src/assets/list.png" alt="List View" width="30" />
<img src={list} alt="List View" width="30" />
</button>
<button
onClick={() => onViewModeChange("grid")}
className={`p-2 rounded-md ${
viewMode === "grid" ? "bg-[#2a4675]" : "bg-[#e0e0e0]"
}`}
>
<img src="./src/assets/grid.png" alt="Grid View" width="30" />
<img src={grid} alt="Grid View" width="30" />
</button>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions src/components/SignIn/SignInForm.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from "react";
import { useNavigate } from "react-router-dom";
import { Link } from "react-router-dom";

import Gmail from "../../assets/Gmail.png";
const SignIn = () => {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
Expand Down Expand Up @@ -93,7 +93,7 @@ const SignIn = () => {
className="mt-4 inline-flex items-center justify-center w-full p-3 bg-gray-100 hover:bg-gray-200 text-gray-600 rounded-md text-base font-normal transition duration-200"
>
<img
src="./src/assets/Gmail.png"
src={Gmail}
alt="Google logo"
className="w-6 h-6 mr-2"
/>
Expand Down
3 changes: 2 additions & 1 deletion src/components/SignUp/SignUpForm.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState } from "react";
import { Link, useNavigate } from "react-router-dom";
import Gmail from "../../assets/Gmail.png";

const SignUp = () => {
const navigate = useNavigate();
Expand Down Expand Up @@ -119,7 +120,7 @@ const SignUp = () => {
className="mt-4 flex items-center justify-center w-full py-2 bg-gray-100 rounded text-gray-600 hover:bg-gray-200 transition duration-200"
>
<img
src="./src/assets/Gmail.png"
src={Gmail}
alt="Google logo"
className="w-5 h-5 mr-2"
/>
Expand Down

0 comments on commit 471d33e

Please sign in to comment.