diff --git a/invenio_theme_tuw/assets/semantic-ui/less/invenio_theme_tuw/theme.less b/invenio_theme_tuw/assets/semantic-ui/less/invenio_theme_tuw/theme.less
index 4d52b657a30688a1463c1a0ecd0478f15c753751..c1149106a69a334535c11ba5282a160d1ed35dd4 100644
--- a/invenio_theme_tuw/assets/semantic-ui/less/invenio_theme_tuw/theme.less
+++ b/invenio_theme_tuw/assets/semantic-ui/less/invenio_theme_tuw/theme.less
@@ -7,7 +7,7 @@
@import "variables.less";
-// override the navbar styling
+/* override the navbar styling */
.cover-page,
body.cover-page {
@@ -37,7 +37,7 @@ body.cover-page {
}
}
-// additions
+/* additions */
.section-title.small {
font-size: 1.5em;
@@ -68,7 +68,7 @@ span.ui.label.access-right.embargoed {
}
-// new theme
+/* new theme */
:root {
--blue1: #006699;
@@ -110,10 +110,21 @@ body {
margin: 0pt;
}
-/* font definition*/
+/* font definition */
-h1 {
+.white {
color: white;
+}
+
+.blue {
+ color: var(--blue1);
+}
+
+.grey {
+ color: var(--grey1);
+}
+
+h1 {
font-size: 32pt;
font-weight: bold;
font-family: "Arial";
@@ -121,7 +132,6 @@ h1 {
}
h2 {
- color: var(--blue1);
font-size: 24pt;
font-weight: bold;
font-family: "Arial";
@@ -129,14 +139,12 @@ h2 {
}
h3 {
- color: white;
font-size: 12pt;
font-weight: bold;
font-family: "Arial";
}
p {
- color: var(--grey1);
font-size: 12pt;
font-family: "Arial";
}
@@ -146,7 +154,7 @@ a {
font-family: "Arial";
}
-/* staging banner*/
+/* staging banner */
#staging-banner {
position: fixed;
@@ -288,7 +296,7 @@ header {
background-color: var(--blue3);
}
-/*footer*/
+/* footer */
#sitemap {
background-color: var(--blue2);
diff --git a/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/frontpage.html b/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/frontpage.html
index 93d939314c8e64bb505d7f968fbcb17184cb7c33..5f996f2b20652961c8eec44041855f2f31af0137 100644
--- a/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/frontpage.html
+++ b/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/frontpage.html
@@ -1,11 +1,11 @@
{# -*- coding: utf-8 -*-
-Copyright (C) 2019 - 2021 CERN.
-Copyright (C) 2019 - 2021 Northwestern University.
-Copyright (C) 2020 - 2021 TU Wien.
+ Copyright (C) 2019 - 2021 CERN.
+ Copyright (C) 2019 - 2021 Northwestern University.
+ Copyright (C) 2020 - 2021 TU Wien.
-Invenio is free software; you can redistribute it and/or modify it
-under the terms of the MIT License; see LICENSE file for more details.
+ Invenio is free software; you can redistribute it and/or modify it
+ under the terms of the MIT License; see LICENSE file for more details.
#}
{%- extends "invenio_theme/frontpage.html" %}
@@ -15,52 +15,58 @@ under the terms of the MIT License; see LICENSE file for more details.
{%- block page_body %}
-<section id="welcome" class="ui container">
- <h2>Welcome!</h2>
+<section id="welcome" class="ui container grey">
+ <h2 class="blue">Welcome!</h2>
<p>
TU Data is an institutional repository of TU Wien to enable storing, sharing and publishing of digital objects,
in particular research data. It facilitates the funders' requirements for open access to research data and the
FAIR principles by making research output findable, accessible, interoperable and re-usable. This service is
- developed by the <span class="bold">TU Wien Center for Research Data Management</span> and hosted by <span
- class="bold">TU.it</span>.
+ developed by the <span class="bold">TU Wien Center for Research Data Management</span> and hosted by
+ <span class="bold">TU.it</span>.
</p>
<p>
Please note that TU Data is still under development and has limited functionality. We will add more
functionality as development progresses.
</p>
</section>
+
<section id="features" class="ui four column stackable vertically padded grid container">
<h2 style="display: none;">Features</h2>
<div class="column">
<div class="feature-icon box-shaddow">
- <img src="{{ url_for('static', filename='images/upload-file.png') }}" alt="File upload icon" />
+ <a href="{{ url_for('invenio_search_ui.search') }}">
+ <img src="{{ url_for('static', filename='images/magnifying-glass.png') }}" alt="Magnifying glass icon" />
+ </a>
</div>
<div class="feature-text">
- <p>Publish research outputs openly. A landing page provides information on your digital objects. </p>
+ <p>Search datasets published by other users.</p>
</div>
</div>
-
<div class="column">
<div class="feature-icon box-shaddow">
- <img src="{{ url_for('static', filename='images/magnifying-glass.png') }}" alt="Magnifying glass icon" />
+ <a href="{{ url_for('invenio_app_rdm_records.deposit_create') }}">
+ <img src="{{ url_for('static', filename='images/upload-file.png') }}" alt="File upload icon" />
+ </a>
</div>
<div class="feature-text">
- <p>Search datasets published by other users.</p>
+ <p>Publish research outputs openly. A landing page provides information on your digital objects. </p>
</div>
</div>
-
<div class="column">
<div class="feature-icon box-shaddow">
- <img src="{{ url_for('static', filename='images/rating.png') }}" alt="Rating icon" />
+ <a href="mailto:tudata@tuwien.ac.at?subject=About TU Data...">
+ <img src="{{ url_for('static', filename='images/rating.png') }}" alt="Rating icon" />
+ </a>
</div>
<div class="feature-text">
<p>Restrict access and share data by link, e.g. for peer-review of data underlying publications.</p>
</div>
</div>
-
<div class="column">
<div class="feature-icon box-shaddow">
- <img src="{{ url_for('static', filename='images/reuse.png') }}" alt="Reuse icon" />
+ <a href="mailto:tudata@tuwien.ac.at?subject=About TU Data...">
+ <img src="{{ url_for('static', filename='images/reuse.png') }}" alt="Reuse icon" />
+ </a>
</div>
<div class="feature-text">
<p>Deposit your data to make it FAIR. The process can be automated with a use of APIs provided by TU Data.
diff --git a/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/header.html b/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/header.html
index c3149b5b7ce5ace53cfad6f29de19d635469ea0e..7af2138499445b5a99fb71b8b274d34fc7c426c2 100644
--- a/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/header.html
+++ b/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/header.html
@@ -1,10 +1,11 @@
{# -*- coding: utf-8 -*-
-This file is part of Invenio.
-Copyright (C) 2015-2018 CERN.
+ This file is part of Invenio.
+ Copyright (C) 2015 - 2021 CERN.
+ Copyright (C) 2020 - 2021 TU Wien.
-Invenio is free software; you can redistribute it and/or modify it
-under the terms of the MIT License; see LICENSE file for more details.
+ Invenio is free software; you can redistribute it and/or modify it
+ under the terms of the MIT License; see LICENSE file for more details.
#}
@@ -27,14 +28,13 @@ under the terms of the MIT License; see LICENSE file for more details.
<a class="item" href="{{ item.url }}">{{ item.text|safe }}</a></li>
{%- endfor %}
<a href="{{ url_for_security('login', next=request.path) }}" class="ui button" style="color:grey">
- <i class="sign-in icon"></i>
- Log in</a>
+ <i class="sign-in icon"></i> Log in
+ </a>
</div>
</div>
-
<div id="searchbar">
- <h1>TU Data</h1>
+ <h1 class="white">{{ config.THEME_SITENAME }}</h1>
<form action="/search" class="ui form">
<div class="ui fluid big action input">
<input type="text" name="q" class="form-control" placeholder="Type and press enter to search">
diff --git a/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/page.html b/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/page.html
index ad205e8fecc96963b66f7e94fad28a5350d7ff1e..ee278806b148d4e71762eb4fe13524519529db2b 100644
--- a/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/page.html
+++ b/invenio_theme_tuw/templates/semantic-ui/invenio_theme_tuw/page.html
@@ -1,15 +1,13 @@
{# -*- coding: utf-8 -*-
-Copyright (C) 2015 - 2021 CERN.
-Copyright (C) 2020 - 2021 TU Wien.
+ Copyright (C) 2015 - 2021 CERN.
+ Copyright (C) 2020 - 2021 TU Wien.
-Invenio is free software; you can redistribute it and/or modify it
-under the terms of the MIT License; see LICENSE file for more details.
+ Invenio is free software; you can redistribute it and/or modify it
+ under the terms of the MIT License; see LICENSE file for more details.
#}
<!DOCTYPE html>
-<html{% if html_css_classes %} class="{{ html_css_classes|join(' ') }}" {% endif %}
- lang="{{ current_i18n.locale.language|safe }}" dir="{{ current_i18n.locale.text_direction }}">
-
+<html {%- if html_css_classes -%}class="{{ html_css_classes|join(' ') }}"{%- endif -%} lang="{{ current_i18n.locale.language|safe }}" dir="{{ current_i18n.locale.text_direction }}">
<head>
{%- block head %}
{%- block head_meta %}
@@ -83,10 +81,10 @@ under the terms of the MIT License; see LICENSE file for more details.
{%- endblock head %}
</head>
- <body ng-csp {% if body_css_classes %} class="{{ body_css_classes|join(' ') }}" {% endif %}{% if g.ln %}
- lang="{{ g.ln.split('_', 1)[0]|safe }}" {% if rtl_direction %} {{ rtl_direction|safe }}{% endif %}{% endif %}
+ <body {%- if body_css_classes -%} class="{{ body_css_classes|join(' ') }}" {%- endif -%}
+ {%- if g.ln -%} lang="{{ g.ln.split('_', 1)[0]|safe }}" {%- if rtl_direction -%}{{ rtl_direction|safe }} {%- endif -%}{%- endif -%}
itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target=".scrollspy-target">
- {% if config.THEME_TUW_DISPLAY_STAGING_WARNING %}
+ {%- if config.THEME_TUW_DISPLAY_STAGING_WARNING -%}
<div id="staging-banner">
<p>
Warning - You are currently working on our <span class="bold">test environment</span>. Any data upload to this
@@ -94,7 +92,7 @@ under the terms of the MIT License; see LICENSE file for more details.
href="https://researchdata.tuwien.ac.at">https://researchdata.tuwien.ac.at</a>
</p>
</div>
- {% endif %}
+ {%- endif -%}
{%- block body %}
{%- block browserupgrade %}
<!--[if lt IE 8]>
@@ -119,5 +117,4 @@ under the terms of the MIT License; see LICENSE file for more details.
{%- endblock %}
{%- endblock body %}
</body>
-
- </html>
\ No newline at end of file
+</html>