diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..fcbb1ea --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "compilets.autoStart": false +} \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css index 936eaa8..3420b22 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -42,6 +42,11 @@ a { text-decoration: none; } +.screen-container { + width: 100%; + height: 100%; +} + .charged-button { position: relative; display: inline-flex; diff --git a/src/app/page.tsx b/src/app/page.tsx index 84d8933..4251503 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -5,8 +5,9 @@ import Image from "next/image"; import styles from "./page.module.css"; import ChargedButton from "@/components/ChargedButton"; import MapView from "@/components/MapView"; +import WelcomeScreen from "@/components/screens/WelcomeScreen"; -export default function Home() { +export default function Main() { const [doTest, setDoTest] = useState(false); return ( @@ -22,6 +23,7 @@ export default function Home() { setDoTest(true); }}>test {doTest && } + ); diff --git a/src/components/MapView.tsx b/src/components/MapView.tsx index 5ac6e01..a65db11 100644 --- a/src/components/MapView.tsx +++ b/src/components/MapView.tsx @@ -3,7 +3,7 @@ import React, { useEffect, useRef, useState, useCallback } from 'react'; import * as maplibregl from 'maplibre-gl'; import 'maplibre-gl/dist/maplibre-gl.css'; -import styles from './MapView.module.css'; +import styles from '../css/MapView.module.css'; export interface PlaceMarker { id: string; diff --git a/src/components/screens/WelcomeScreen.tsx b/src/components/screens/WelcomeScreen.tsx index e69de29..19794b5 100644 --- a/src/components/screens/WelcomeScreen.tsx +++ b/src/components/screens/WelcomeScreen.tsx @@ -0,0 +1,10 @@ +import styles from "../../css/WelcomeScreen.module.css"; + +export default function WelcomeScreen() { + console.log(styles); + return( +
+ +
+ ) +} \ No newline at end of file diff --git a/src/components/MapView.module.css b/src/css/MapView.module.css similarity index 100% rename from src/components/MapView.module.css rename to src/css/MapView.module.css diff --git a/src/css/WelcomeScreen.module.css b/src/css/WelcomeScreen.module.css new file mode 100644 index 0000000..e69de29