|
1 | 1 | import { Paragraph } from "../../Components/Paragraph"; |
2 | 2 |
|
3 | | -import LevelsSS from "../../assets/PGAS24_LevelsSS.png"; |
4 | | -import MainMenuSS from "../../assets/PGAS24_MainMenuSS.png"; |
5 | | -import PowerupSS from "../../assets/PGAS24_PowerupSS.png"; |
6 | | -import WarningSS from "../../assets/PGAS24_WarningSS.png"; |
| 3 | +import LevelsSS from "@assets/PGAS24_LevelsSS.png"; |
| 4 | +import MainMenuSS from "@assets/PGAS24_MainMenuSS.png"; |
| 5 | +import PowerupSS from "@assets/PGAS24_PowerupSS.png"; |
| 6 | +import WarningSS from "@assets/PGAS24_WarningSS.png"; |
7 | 7 |
|
8 | 8 | export default function PGASGame(){ |
9 | | - function getImageUrl(file: string) { |
10 | | - // note that this does not include files in subdirectories |
11 | | - return new URL(`${file}`, import.meta.url).href |
12 | | - } |
13 | | - |
14 | 9 | return <div className="relative grid place-items-center"> |
15 | 10 | <article className="my-4 p-2 w-full max-w-sm md:max-w-2xl"> |
16 | 11 | <h1 className="text-4xl">PGAS-Game</h1> |
@@ -40,10 +35,10 @@ export default function PGASGame(){ |
40 | 35 |
|
41 | 36 | <h2 className="text-xl">Images</h2> |
42 | 37 | <div className="grid gap-1 grid-cols-1 md:grid-cols-2"> |
43 | | - <img src={getImageUrl(LevelsSS)} alt="LevelSS.png"/> |
44 | | - <img src={getImageUrl(MainMenuSS)} alt="MainMenuSS.png"/> |
45 | | - <img src={getImageUrl(PowerupSS)} alt="PowerupSS.png"/> |
46 | | - <img src={getImageUrl(WarningSS)} alt="WarningSS.png"/> |
| 38 | + <img src={LevelsSS} alt="LevelSS.png"/> |
| 39 | + <img src={MainMenuSS} alt="MainMenuSS.png"/> |
| 40 | + <img src={PowerupSS} alt="PowerupSS.png"/> |
| 41 | + <img src={WarningSS} alt="WarningSS.png"/> |
47 | 42 | </div> |
48 | 43 | </article> |
49 | 44 | </div> |
|
0 commit comments