Skip to content

Commit 85f828c

Browse files
committed
Need to move images to public to be accessed dynamically and easily...
1 parent 2c934b8 commit 85f828c

File tree

215 files changed

+4
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+4
-4
lines changed

apps/web/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/png" href="/assets/icon.png" />
5+
<link rel="icon" type="image/png" href="/icon.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>CMU Maps</title>
88
</head>
File renamed without changes.

apps/web/src/components/info-cards/BuildingCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const BuildingCard = ({ map: _map }: Props) => {
3737
}
3838

3939
const renderBuildingImage = () => {
40-
const url = `/assets/location_images/building_room_images/${building.code}/${building.code}.jpg`;
40+
const url = `/location_images/building_room_images/${building.code}/${building.code}.jpg`;
4141

4242
return <InfoCardImage url={url} alt={`${building.name} Image`} />;
4343
};

apps/web/src/components/info-cards/RoomCard.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ const RoomCard = () => {
4444
const buildingCode = room.floor.buildingCode;
4545

4646
// the default image is the building image
47-
const url = `/assets/location_images/building_room_images/${buildingCode}/${buildingCode}.jpg`;
47+
const url = `/location_images/building_room_images/${buildingCode}/${buildingCode}.jpg`;
4848
// // but get the room image if it exists
4949
// if (
5050
// availableRoomImages &&
5151
// availableRoomImages[buildingCode].includes(room.name + ".jpg")
5252
// ) {
53-
// url = `/assets/location_images/building_room_images/${buildingCode}/${room.name}.jpg`;
53+
// url = `/location_images/building_room_images/${buildingCode}/${room.name}.jpg`;
5454
// }
5555
return <InfoCardImage url={url} alt={roomName} />;
5656
};

0 commit comments

Comments
 (0)