add directory assets

This commit is contained in:
Amirhossein Mahmoodi
2024-08-05 13:37:19 +03:30
parent 3e318d559e
commit f4c1a1687c
6 changed files with 6 additions and 5 deletions

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@@ -1,10 +1,9 @@
import { useRef } from "react"; import { useRef } from "react";
import { Marker, useMapEvents } from "react-leaflet"; import { Marker, useMapEvents } from "react-leaflet";
import LocationMarker from "@/assets/images/locationMarker.png";
const prefix = process.env.NODE_ENV === "production" ? "/v3" : "";
const locationMarker = L.icon({ const locationMarker = L.icon({
iconUrl: prefix + "/images/locationMarker.png", iconUrl: LocationMarker.src,
iconSize: [50, 50], iconSize: [50, 50],
iconAnchor: [25, 50], iconAnchor: [25, 50],
}); });

View File

@@ -1,6 +1,7 @@
"use client"; "use client";
import { Stack, Typography } from "@mui/material"; import { Stack, Typography } from "@mui/material";
import Image from "next/image"; import Image from "next/image";
import RmsLogo from "@/assets/images/rmsLogo.png";
const HeaderBottom = () => { const HeaderBottom = () => {
return ( return (
@@ -14,7 +15,7 @@ const HeaderBottom = () => {
alignItems={"center"} alignItems={"center"}
direction={"row"} direction={"row"}
> >
<Image alt="" priority src={"/images/rmsLogo.png"} width={65} height={71} /> <Image alt="" priority src={RmsLogo.src} width={65} height={71} />
<Stack alignItems={"center"} spacing={1}> <Stack alignItems={"center"} spacing={1}>
<Typography variant="h5" sx={{ color: (theme) => theme.palette.primary2.contrastText }}> <Typography variant="h5" sx={{ color: (theme) => theme.palette.primary2.contrastText }}>
سامانه جامع راهداری سامانه جامع راهداری

View File

@@ -1,10 +1,11 @@
import { Stack } from "@mui/material"; import { Stack } from "@mui/material";
import Image from "next/image"; import Image from "next/image";
import HeaderLogo from "@/assets/images/headerLogo.png";
const HeaderTop = () => { const HeaderTop = () => {
return ( return (
<Stack sx={{ p: 2 }}> <Stack sx={{ p: 2 }}>
<Image alt="" priority src={"/images/headerLogo.png"} width={190} height={44} /> <Image alt="" priority src={HeaderLogo.src} width={190} height={44} />
</Stack> </Stack>
); );
}; };