Spaces:
Sleeping
Sleeping
File size: 5,975 Bytes
1e932e0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
{%extends 'base.html'%}
{% load static %}
{%block title%} Create New Topic {%endblock%}
{% block content %}
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://unpkg.com/[email protected]/bundle/read-excel-file.min.js"></script>
<!--{{ map.header.render|safe }}-->
<!-- Add Bootstrap CSS link -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom Styles -->
</head>
<body>
<style>
/* Navbar Styles */
.navbar {
background-color: #4CAF50; /* Green color for the navbar */
color: #fff;
}
.navbar-brand {
font-weight: bold;
}
.navbar-toggler-icon {
background-color: #fff;
}
.navbar-nav .nav-link {
color: #fff;
}
/* Container Styles */
.container {
margin-top: 20px;
}
/* Form Styles */
.form-group {
margin-bottom: 20px;
}
/* Button Styles */
.btn-primary {
background-color: #FF5722; /* Orange color for the primary button */
border-color: #FF5722;
border-radius: 8px; /* Rounded corners */
transition: all 0.3s ease; /* Smooth transition on hover */
}
.btn-primary:hover {
background-color: #E64A19; /* Darker orange color on hover */
border-color: #E64A19;
transform: scale(1.05); /* Slightly enlarge on hover */
}
/* Footer Styles */
.footer {
background-color: #333; /* Dark background color for the footer */
color: #fff;
padding: 20px 0;
}
/* Modal Styles */
.modal-title {
color: #4CAF50; /* Green color for modal title */
}
.modal-footer {
background-color: #333; /* Dark background color for modal footer */
color: #fff;
}
/* Centered Button */
.centered-button {
text-align: center;
}
/* Background Image */
body {
background-color: #FCF3CF; /* Light blue color as a fallback */
background-image: url('template/image.jpeg'); /* Replace 'template/image.jpeg' with the actual image filename */
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
/* Style for the ChoiceField */
.custom-select {
color: white; /* Set the text color to white */
background-color: #FF5722; /* Set the background color to orange as an example */
/* Add other styling as needed */
}
</style>
<div class="container">
<div class="row">
<div class="col-md-12">
<form method="post">
<h3 style="color: black;">Select a Google Earth Engine Dataset</h3>
{% csrf_token %}
<div class="form-group">
{% include 'includes/form.html' %}
</div>
<div class="centered-button">
<button type="submit" class="btn btn-primary">Visualize</button>
</div>
<p style="color: white;">
<a href="{{url}}" target="_blank">Link to see the dataset description</a>
</p>
</div>
</form>
<div class="col-md-12">
{{ map|safe }}
</div>
</div>
</div>
<br><br><br>
<footer class="footer">
<div class="container">
<p class="text-center">
This module is created from Google Earth Engine data, for more information visit
<a href="https://earthengine.google.com/" target="_blank">https://earthengine.google.com/</a>
</p>
</div>
</footer>
<!-- Modal de información -->
<div class="modal fade" id="infoModal" tabindex="-1" role="dialog" aria-labelledby="infoModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="infoModalLabel">Caña Panelera y Azucarera</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<p>
This application is available for visualization.
</p>
</div>
<div class="modal-footer">
<p>Work team:</p>
<p><strong>NCBC Member</strong></p>
<p><strong>NCBC Member</strong></p>
</div>
</div>
</div>
</div>
<!-- Add Bootstrap JS and jQuery -->
{% comment %} <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script> {% endcomment %}
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script>
document.getElementById('info').addEventListener("click", function() {
$('#infoModal').modal('show');
});
</script>
{% endblock %} |