Skip to content

Commit

Permalink
added image and popups
Browse files Browse the repository at this point in the history
  • Loading branch information
cityhubla committed May 7, 2024
1 parent f0726b2 commit 5a63414
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Binary file added src/images/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
import "../styles/global.css";
import { Image } from 'astro:assets';
import coverImage from '../images/cover.png'
---

<html lang="en">
Expand Down Expand Up @@ -38,6 +40,7 @@ import "../styles/global.css";
<body>
<div id="credit">
<div id="title">
<img class="image" src={coverImage.src} alt="A bird sitting on a nest of eggs.">
<p class="headline">2024 Arts Datathon</p>
<p class="secondary mb-4">LACOUNTY CIVIC ART COLLECTION</p>
</div>
Expand All @@ -52,7 +55,7 @@ import "../styles/global.css";
Registrar
</p>
<p>
<a href="https://www.meetup.com/maptimela/"
<a href="https://www.meetup.com/maptimela/" target="_blank"
>Made by Nina Kin and Omar Ureta of MaptimeLA</a
>
</p>
Expand All @@ -67,6 +70,9 @@ import "../styles/global.css";
</html>

<style>
.image {
width: 25%;
}
body {
font-family: "Comfortaa", sans-serif;
}
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ function createMarkers(data) {

data.forEach(item => {
let marker = L.marker([item.Latitude, item.Longitude]);
console.log(item)
marker.addTo(markerLayer);
marker.bindPopup(`<b>${item["Title"]}</b><br>By: ${item.ArtistName}<br>Medium: ${item.Medium}<br><br>${item["Location Name"]}<br>${item.AddressStreet}<br>${item.AddressCity}`).openPopup();
});
map.addLayer(markerLayer);
}
Expand Down

0 comments on commit 5a63414

Please sign in to comment.