Updated page style & added drop love button

This commit is contained in:
2024-09-03 19:36:34 +02:00
parent f357cd97fb
commit 8c5423887b
4 changed files with 49 additions and 11 deletions
+3
View File
@@ -11,7 +11,10 @@
}
body {
--navSize: 60px;
position: relative;
display: grid;
grid-template-rows: calc(100svh - var(--navSize)) var(--navSize);
width: 100svw;
height: 100svh;
background-color: #d94253;
+6
View File
@@ -15,6 +15,7 @@ import { useData } from './hooks/useData';
// ------------------------------------------------- Assets & Styles ---------------------------------------------------
import './styles.scss';
import 'mapbox-gl/dist/mapbox-gl.css';
import HeartIcon from '@/assets/HeartIcon';
// ---------------------------------------------------------------------------------------------------------------------
const Home = () => {
@@ -57,6 +58,11 @@ const Home = () => {
preserveDrawingBuffer
></Map>
</DeckGL>
<button className='dropLove'>
<HeartIcon />
Placer un love
</button>
</div>
);
};
+18 -2
View File
@@ -1,7 +1,23 @@
.mapContainer {
position: relative;
width: 100svw;
height: 100svh;
& > .dropLove {
z-index: 1;
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
display: grid;
grid-template-columns: 20px 1fr;
gap: 10px;
align-items: center;
padding: 10px 30px;
border: none;
border-radius: 300px;
background-color: #d94253;
color: #ffffff;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
}
.appMessage {