Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
henhuy committed Oct 1, 2024
1 parent 00f17cd commit 43d2391
Show file tree
Hide file tree
Showing 8 changed files with 81 additions and 50 deletions.
2 changes: 1 addition & 1 deletion sedos_dashboard/static/css/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ $spacing-xl: 2rem;
$spacing-2xl: 3rem;
$spacing-3xl: 4rem;

$breakpoint-lg: 992px;
$breakpoint-lg: 992px;
2 changes: 1 addition & 1 deletion sedos_dashboard/static/css/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
color: $color-link-dark;
}
}
}
}
2 changes: 1 addition & 1 deletion sedos_dashboard/static/css/components/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
background-color: $color-white;
border-bottom: 1px solid $color-border;
padding: 0 $spacing-xl;
}
}
2 changes: 1 addition & 1 deletion sedos_dashboard/static/css/layout/_general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ body {

input:invalid {
border: 2px dashed red;
}
}
2 changes: 1 addition & 1 deletion sedos_dashboard/static/css/layout/_homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@
padding: 2rem 0;
}
}
}
}
2 changes: 1 addition & 1 deletion sedos_dashboard/static/css/project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
@import 'components/buttons';
@import 'components/nav';
@import 'layout/general';
@import 'layout/homepage';
@import 'layout/homepage';
11 changes: 8 additions & 3 deletions sedos_dashboard/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
{% compress css %}
<link rel="stylesheet" type="text/x-scss" href="{% static "vendors/bootstrap/scss/bootstrap.scss" %}" />
<link rel="stylesheet" type="text/css" href="{% static "vendors/fomantic-ui/semantic.min.css" %}" />
<link type="text/x-scss" href="{% static 'css/project.scss' %}" rel="stylesheet" />
<link type="text/x-scss"
href="{% static 'css/project.scss' %}"
rel="stylesheet" />
{% endcompress %}
{% endblock css %}
<!-- Le javascript
Expand All @@ -40,7 +42,10 @@
<div class="mb-1">
<nav class="navbar navbar-expand-md navbar-light">
<div class="container">
<img src="{% static 'images/Header_Projekt_Sedos.jpg' %}" alt="Sedos logo" width="127" height="51">
<img src="{% static 'images/Header_Projekt_Sedos.jpg' %}"
alt="Sedos logo"
width="127"
height="51" />
<div class="container-fluid">
<button class="navbar-toggler navbar-toggler-right"
type="button"
Expand All @@ -58,7 +63,7 @@
{% if request.user.is_authenticated %}
<li class="nav-item">
<a class="nav-link"
href="{% url 'users:detail' request.user.username %}">{% translate "My Profile" %}</a>
href="{% url 'users:detail' request.user.username %}">{% translate "My Profile" %}</a>
</li>
<li class="nav-item">
{# URL provided by django-allauth/account/urls.py #}
Expand Down
108 changes: 67 additions & 41 deletions sedos_dashboard/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,42 @@ <h2 class="hp__intro-title">Why this GUI?</h2>
To improve the transparency and reproducibility of the open source structure this GUI provides.
a few basic functionalities to explore the derived modeling base:
</span>
<ol>
<ul>
<li>Looking into the input data and the underlying model structure of our reference energy system.</li>
<li>Looking into possible model results when applying the model data with different scenarios.</li>
</ul>
</label>
</section>
<section>
<h2 class="hp__intro-title">Looking for more info?</h2>
<span class="hp__intro-text">
See more details on SEDOS in the docs:
</span>
<a href="https://sedos-project.github.io/.github/" class="mt-4 button button--link" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"/>
<path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"/>
<span class="hp__intro-text">See more details on SEDOS in the docs:</span>
<a href="https://sedos-project.github.io/.github/"
class="mt-4 button button--link"
target="_blank">
<svg xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-box-arrow-up-right"
viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5" />
<path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z" />
</svg>
<span class="ps-2">
See documentation
</span>
<span class="ps-2">See documentation</span>
</a>
</section>
</section>
<section class="hp__content">
<section class="hp__section">
<h2 class="hp__section-title">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="6" cy="6" rx="6" ry="6" transform="rotate(-180 6 6)" fill="#338DCC" fill-opacity="0.8"/>
<ellipse cx="12" cy="12" rx="6" ry="6" transform="rotate(-180 12 12)" fill="#C3D1EC" fill-opacity="0.8"/>
<ellipse cx="18" cy="18" rx="6" ry="6" transform="rotate(-180 18 18)" fill="#CDA533" fill-opacity="0.8"/>
<svg width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg">
<ellipse cx="6" cy="6" rx="6" ry="6" transform="rotate(-180 6 6)" fill="#338DCC" fill-opacity="0.8" />
<ellipse cx="12" cy="12" rx="6" ry="6" transform="rotate(-180 12 12)" fill="#C3D1EC" fill-opacity="0.8" />
<ellipse cx="18" cy="18" rx="6" ry="6" transform="rotate(-180 18 18)" fill="#CDA533" fill-opacity="0.8" />
</svg>
<span class="ps-2">Explore the Model Structure</span>
</h2>
Expand All @@ -65,23 +72,32 @@ <h2 class="hp__section-title">
<button class="btn button button--primary" type="submit" name="aggregations">Aggregation Graph</button>
</div>
</form>
<a href="https://sedos-project.github.io/.github/results/" class="button button--link" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"/>
<path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"/>
<a href="https://sedos-project.github.io/.github/results/"
class="button button--link"
target="_blank">
<svg xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-box-arrow-up-right"
viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5" />
<path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z" />
</svg>
<span class="ps-2">
Exemplary Graphs
</span>
<span class="ps-2">Exemplary Graphs</span>
</a>
</section>
<section class="hp__section">
<h2 class="hp__section-title">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<ellipse cx="16" cy="18" rx="6" ry="6" transform="rotate(-180 16 18)" fill="#338DCC" fill-opacity="0.8"/>
<ellipse cx="16" cy="6" rx="6" ry="6" transform="rotate(-180 16 6)" fill="#C3D1EC" fill-opacity="0.8"/>
<ellipse cx="9" cy="6" rx="6" ry="6" transform="rotate(-180 9 6)" fill="#CDA533" fill-opacity="0.8"/>
</svg>
<svg width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
xmlns="http://www.w3.org/2000/svg">
<ellipse cx="16" cy="18" rx="6" ry="6" transform="rotate(-180 16 18)" fill="#338DCC" fill-opacity="0.8" />
<ellipse cx="16" cy="6" rx="6" ry="6" transform="rotate(-180 16 6)" fill="#C3D1EC" fill-opacity="0.8" />
<ellipse cx="9" cy="6" rx="6" ry="6" transform="rotate(-180 9 6)" fill="#CDA533" fill-opacity="0.8" />
</svg>
<span class="ps-2">Explore the Model results</span>
</h2>
<form>
Expand All @@ -95,14 +111,19 @@ <h2 class="hp__section-title">
<button class="btn button button--primary" type="submit" name="diagrams">Explore Diagrams</button>
</div>
</form>
<a href="https://sedos-project.github.io/.github/results/" class="button button--link" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"/>
<path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"/>
<a href="https://sedos-project.github.io/.github/results/"
class="button button--link"
target="_blank">
<svg xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-box-arrow-up-right"
viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5" />
<path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z" />
</svg>
<span class="ps-2">
Exemplary Result Diagrams
</span>
<span class="ps-2">Exemplary Result Diagrams</span>
</a>
<div class="mt-3 mb-2">
<label for="customTextBox">
Expand All @@ -114,14 +135,19 @@ <h2 class="hp__section-title">
</ol>
</label>
</div>
<a href="https://sedos-project.github.io/.github/scenarios/" class="button button--link" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-box-arrow-up-right" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5"/>
<path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z"/>
<a href="https://sedos-project.github.io/.github/scenarios/"
class="button button--link"
target="_blank">
<svg xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
fill="currentColor"
class="bi bi-box-arrow-up-right"
viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5" />
<path fill-rule="evenodd" d="M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0z" />
</svg>
<span class="ps-2">
See more details on the scenarios
</span>
<span class="ps-2">See more details on the scenarios</span>
</a>
</section>
</section>
Expand Down

0 comments on commit 43d2391

Please sign in to comment.