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
63 changes: 63 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,66 @@
body {
margin: 20px;
}

/* SDG Comparison Module Styles */
#comparison-output {
margin-top: 30px;
padding: 20px;
border: 1px solid #ddd;
border-radius: 8px;
background-color: #f9f9f9;
}

#comparison-output h3 {
color: #2c3e50;
margin-bottom: 10px;
}

#comparison-output p {
color: #666;
margin-bottom: 15px;
}

#comparison-output label {
display: block;
margin-top: 15px;
margin-bottom: 5px;
font-weight: bold;
color: #333;
}

#comparison-result {
font-family: 'Courier New', monospace;
font-size: 12px;
background-color: #fff;
border: 1px solid #ccc;
}

#comparison-output .btn {
margin-right: 10px;
margin-top: 10px;
}

#comparison-output .btn-primary {
background-color: #0073e6;
border-color: #0073e6;
color: white;
margin-bottom: 15px;
}

#comparison-output .btn-primary:hover {
background-color: #005bb5;
border-color: #005bb5;
}

#output {
margin-top: 20px;
padding: 15px;
border: 1px solid #ddd;
border-radius: 8px;
}

#output label {
font-weight: bold;
color: #333;
}
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<!-- Render the form -->
<script src="js/generateFormComponents.js"></script>
<script src="js/formDataToJson.js"></script>
<script src="js/sdgComparisonModule.js"></script>
<script type="text/javascript">
createFormComponents()
.then((components) => {
Expand Down Expand Up @@ -63,5 +64,15 @@
<button type="button" class="btn btn-outline" href="#" onclick="downloadFile(event)">Download</button>
<button type="button" class="btn btn-outline" href="#" onclick="emailFile(event)">Email</button>
</div>

<div id="comparison-output">
<h3>SDG Comparison Analysis</h3>
<p>Compare your project metadata against official UN SDG indicators to evaluate your project's impact on development goals.</p>
<button type="button" class="btn btn-primary" onclick="triggerComparison()">Generate SDG Comparison</button>
<label for="comparison-result">Comparison Result (JSON)</label>
<textarea class="form-control" rows="15" id="comparison-result" readonly placeholder="Click 'Generate SDG Comparison' to analyze your project against official UN SDG indicators..."></textarea>
<button type="button" class="btn btn-outline" href="#" onclick="copyComparisonToClipboard(event)">Copy Comparison</button>
<button type="button" class="btn btn-outline" href="#" onclick="downloadComparisonFile(event)">Download Comparison</button>
</div>
</body>
</html>
Loading