mirror of
https://github.com/Llloooggg/WhereToGo.git
synced 2026-03-06 04:36:22 +03:00
Карта подогнана под навбар
This commit is contained in:
3
wheretogo/static/common/css/base.css
Normal file
3
wheretogo/static/common/css/base.css
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
.navbar {
|
||||||
|
height: 7%;
|
||||||
|
}
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#map {
|
#map {
|
||||||
height: 100%;
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||||
width: 100%;
|
height: 93%;
|
||||||
|
width: 70%;
|
||||||
}
|
}
|
||||||
@@ -4,7 +4,7 @@ const osm = L.tileLayer(url, { attribution: copy });
|
|||||||
const map = L.map("map", { layers: [osm], minZoom: 5 });
|
const map = L.map("map", { layers: [osm], minZoom: 5 });
|
||||||
map.
|
map.
|
||||||
locate()
|
locate()
|
||||||
.on("locationfound", (e) => map.setView(e.latlng, 8))
|
.on("locationfound", (e) => map.setView(e.latlng, 12))
|
||||||
.on("locationerror", () => map.setView([0, 0], 5));
|
.on("locationerror", () => map.setView([0, 0], 5));
|
||||||
|
|
||||||
async function loadFacilities() {
|
async function loadFacilities() {
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
|
||||||
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
|
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{% static 'common/css/base.css' %}" />
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|||||||
Reference in New Issue
Block a user