Skip to content

Commit

Permalink
feat: add bottom sheet in map
Browse files Browse the repository at this point in the history
  • Loading branch information
2paperstar committed Feb 15, 2024
1 parent 833f328 commit 21367be
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions src/pages/Map.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useEffect, useRef } from 'react';
import Header from './component/Header';
import SearchMenu from './component/SearchMenu';
import Map from 'ol/Map';
import View from 'ol/View';
import TileLayer from 'ol/layer/Tile';
import OSM from 'ol/source/OSM';
import { PROJECTIONS } from 'ol/proj/epsg4326';
import 'ol/ol.css';
import { PROJECTIONS } from 'ol/proj/epsg4326';
import OSM from 'ol/source/OSM';
import { useEffect, useRef } from 'react';
import Header from './component/Header';
import SearchMenu from './component/SearchMenu';

const MapPage = () => {
const mapRef = useRef(
Expand All @@ -31,13 +31,33 @@ const MapPage = () => {
return () => {
map.dispose();
};
});
}, []);

return (
<div className="flex flex-col h-screen">
<Header back alarm review />
<SearchMenu />
<div className="flex-1 w-ful" ref={wrapperEl} />
<div className="">
<div className="h-[calc(100vh-4rem)] flex flex-col">
<div className="z-10 bg-white sticky top-0">
<Header back alarm review />
<SearchMenu />
</div>
<div className="bg-gray-200 flex-1" ref={wrapperEl} />
</div>
<div className="bg-white rounded-2xl min-h-screen -translate-y-4">
<div className="h-4 place-items-center grid">
<div className="h rounded w-16 h-2 bg-gray-300" />
</div>
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nihil sit
velit nulla alias perferendis quas aspernatur vero cupiditate, provident
esse obcaecati nobis deserunt minima modi et vel praesentium rem iure,
atque maxime. Inventore eius eligendi sint autem, dolorum nobis ipsam
accusamus maiores quas odit in deserunt! Deserunt reprehenderit nobis
at, aliquam animi vero ullam voluptates ex reiciendis inventore laborum
numquam vitae natus corporis quis sed nostrum, voluptatibus possimus
dolor consequatur eum soluta culpa provident. Deserunt facere alias at
modi? Molestiae nobis, quibusdam fugit omnis esse debitis quas modi
neque eum eaque! Earum itaque ea ex voluptas reprehenderit nihil quia
numquam.
</div>
</div>
);
};
Expand Down

0 comments on commit 21367be

Please sign in to comment.