Skip to content

Commit

Permalink
added icsc configuration file, images and created custom home for icsc (
Browse files Browse the repository at this point in the history
  • Loading branch information
ettore-infn authored Dec 12, 2024
1 parent 189f95f commit 7618fbe
Show file tree
Hide file tree
Showing 11 changed files with 100 additions and 0 deletions.
Binary file added app/home/static/images/icsc/ecosister-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/home/static/images/icsc/icsc-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/home/static/images/icsc/icsc-logo-lg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/home/static/images/icsc/icsc-logo-md.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/home/static/images/icsc/icsc-logo-sm.ico
Binary file not shown.
Binary file added app/home/static/images/icsc/icsc-logo-sm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/home/static/images/icsc/terabit-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
81 changes: 81 additions & 0 deletions app/home/templates/icsc/home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{% extends "base.html" %}

{% block content %}

<div class = "jumbotron jumbotron-fluid jumbotron-custom">
<div class="buttonContainer">
<a class="btn btn-dark btn-lg" role="button" href="{{ url_for("iam.login") }}">Please login, or register &raquo;</a>
</div>
<div class="container" style="padding: 5em 2em; display: flex; flex-direction: column; justify-content: center;">
<h1 class="display-4" style="text-align: center; margin-top: 4em;"><strong>Welcome to the ICSC Dashboard!</strong></h1>
<div class="imgContainer">
<div class="imgElem" style="background-image: url(/static/home/images/icsc/icsc-logo-lg.png);"></div>
<div class="imgElem" style="background-image: url(/static/home/images/icsc/ecosister-logo.png);"></div>
<div class="imgElem" style="background-image: url(/static/home/images/icsc/terabit-logo.png);"></div>
<!-- <img src="/static/home/images/icsc/icsc-logo-lg.png" alt="ICSC Logo" class="imgElem">
<img src="/static/home/images/icsc/ecosister-logo.png" alt="Ecosister Logo" class="imgElem">
<img src="/static/home/images/icsc/terabit-logo.png" alt="Terabit Logo" class="imgElem"> -->
</div>
</div>
</div>

<style>
.jumbotron-custom {
height: 100vh;
margin: 0;
overflow: hidden;
color: #333;
font-weight: bold;
font-family: 'Thasadith', sans-serif;
background-image: url(/static/home/images/icsc/icsc-bg.png);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}

.imgContainer {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
align-items: center;
}

.imgElem {
width: 20em;
height: 7em;
box-shadow: -2px 2px 10px -3px #00000033;
border-radius: 25px;
padding: 20px;
margin: 1em 0;
background: white;
background-position: center;
background-repeat: no-repeat;
background-size: 16em;
}

.buttonContainer {
width: 100%;
display: flex;
justify-content: flex-end;
padding-right: 3em;
}

</style>

<script type="text/javascript">

if (!localStorage.DoNotShowGettingStartedMessageAgain || localStorage.DoNotShowGettingStartedMessageAgain != "true") {
$(window).on('load',() => {
$('#gettingStarted').modal('show');
});

$('#gettingStartedCheckbox').click(() => {
if ($('#gettingStartedCheckbox').attr('checked', true)) {
localStorage.DoNotShowGettingStartedMessageAgain = "true";
}
});
}

</script>

{% endblock %}
19 changes: 19 additions & 0 deletions config/icsc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#### LOOK AND FEEL SETTINGS
WELCOME_MESSAGE = "Welcome to the ICSC Dashboard!"
NAVBAR_BRAND_TEXT = "Dashboard"
NAVBAR_BRAND_ICON = "/static/home/images/icsc/icsc-logo-md.png"
FAVICON_PATH = "/static/home/images/icsc/icsc-logo-sm.ico"
HELP_PAGE_URL = "https://servicedesk.infn.it"
BRAND_COLOR_1 = "#bdb1b5"
BRAND_COLOR_2 = "#0010a0"

FEATURE_REQUIRE_USER_SSH_PUBKEY = "yes"
FEATURE_PORTS_REQUEST = "yes"
FEATURE_ACCESS_REQUEST = "no"

### Template Paths
HOME_TEMPLATE = "icsc/home.html"
FOOTER_TEMPLATE = "icsc/footer.html"

### Links
PRIVACY_POLICY_URL = "/"

0 comments on commit 7618fbe

Please sign in to comment.