Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
159 changes: 159 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
body {
margin: 0;
font-family: Quicksand, serif;
}

.main-title {
width: 100%;
padding: 35px;
margin: 0;
text-align: left;
font-size: 50px;
}

.main-title .logo {
width: 160px;
height: auto;
margin-right: 15px;
}

.main-title .bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.3;
object-fit: cover;
z-index: -1;
}

h1 {
font-size: 35px;
padding: 10px;
border-radius: 15px;
color: rgb(168, 53, 0);
font-weight: bold;
}

.container {
display: flex;
height: 100vh;
}

.sidebar {
width: 400px;
padding: 20px;
background: linear-gradient(to bottom, #fff 40%, #d0d0d0);
overflow-y: auto;
height: 100vh;
order: 2;
}

#map {
flex-grow: 1;
height: 100vh;
width: auto;
background:rgba(238, 238, 238, 0.4);
order: 1;
}

h3 {
font-size: 25px;
background-color: #f0f0f0;
padding: 10px;
border-radius: 5px;
color: rgb(243, 165, 48);
}

.searchbox {
width: 60%;
height: 35px;
padding: 10px;
border: 2px solid #a7a49d;
border-radius: 10px;
font-size: 14px;
box-sizing: border-box;
}


.filterbutton {
padding: 8px 12px;
font-size: 14px;
background-color: #d87300;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}

.filterbutton:hover {
background-color: #df8b3d;
}

.filterbutton-reset{
padding: 8px 12px;
font-size: 14px;
border: none;
background-color: #e0e0e0;
border-radius: 4px;
cursor: pointer;
}

.filterbutton-reset:hover{
background-color: #afafaf;
}

input[type="checkbox"] {
transform: scale(1.5);
margin-right: 10px;
border-radius: 10px;
cursor: pointer;
height: 10px;
}

.reset-button {
padding: 8px 12px;
font-size: 14px;
background-color: #e6852a;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}

.reset-button:hover {
background-color: #ffa569;
}

.meal-types label {
display: block;
margin-bottom: 5px;
}

.days-open label {
display: block;
margin-bottom: 5px;
}

.site-list {
margin-top: 20px;
}

.site-item {
margin-bottom: 5px;
padding: 5px;
border-radius: 8px;
background-color: #e0e0e0;
transition: background-color 0.3s;
}

.site-item:hover {
background-color: #fffbd3;
}

.site-address {
font-size: 18px;
font-weight: bold;
color: #000;
}
9,449 changes: 9,449 additions & 0 deletions data/phs_landcare.geojson

Large diffs are not rendered by default.

86 changes: 86 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<!DOCTYPE html>

<html lang="en">
<head>
<meta charset="UTF-8">
<title>LandCare Program Explorer</title>
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/index.css">
<script defer src="js/main.js"></script>
</head>

<body>

<h1 class="main-title">
LandCare Program Explorer
<img src = "pic/title-1.jpg" alt = "bg" class = "bg">
</h1>
<div class = "container">
<div class = "sidebar">
<div class = "zip-filter">
<h3>Search by ZIP Code</h3>
<input type = "text" class = "searchbox" id = "zipInput" placeholder = "Please enter a ZIP Code">
<button class = "filterbutton" id = "zipFilterButton">Search</button>
<button class = "filterbutton-reset" id = "resetZipButton">Reset</button>
</div>
<div class = "address-filter">
<input type = "text" class = "searchbox" id="addressInput" placeholder = "Please enter the address">
<button class = "filterbutton" id = "addressFilterButton">Search</button>
<button class = "filterbutton-reset" id = "resetAddressButton">Reset</button>
</div>

<div class = "program">
<h3>Program</h3>
<div>
<label>
<input type = "checkbox" value = "PLC" class = "program-checkbox" >PLC
</label>
</div>

<div>
<label>
<input type = "checkbox" value = "CLC" class = "program-checkbox" >CLC
</label>
</div>
<div>
<label>
<input type = "checkbox" value = "MO" class = "program-checkbox" >MO
</label>
</div>
</div>

<div class = "Stabilized">
<h3>Stabilized or not</h3>
<div>
<label>
<input type = "checkbox" value = "YES" class = "stabilized-checkbox"> Yes
</label>
</div>
<div>
<label>
<input type = "checkbox" value = "NO" class = "stabilized-checkbox"> No
</label>
</div>
</div>

<div class="site-list">

</div>


</div>

<div id = "map"></div>


</div>

</body>

</html>
Loading