-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete redesign of the app's banner. The `welcome` section is split into `about` and `guide` sections with links to the online documentation. Everything is packaged in an `AppWrapper` MVC component.
- Loading branch information
1 parent
5a07534
commit 9b36e8a
Showing
9 changed files
with
378 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from __future__ import annotations | ||
|
||
import ipywidgets as ipw | ||
|
||
|
||
class InfoBox(ipw.VBox): | ||
"""A view for `InfoBox`.""" | ||
|
||
def __init__(self, **kwargs): | ||
"""`InfoBox` constructor.""" | ||
super().__init__(**kwargs) | ||
self.add_class("info-box") | ||
if "custom-css" in kwargs: | ||
self.add_class(kwargs.pop("custom-css")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<div class="about"> | ||
<p> | ||
The <a href="https://www.quantum-espresso.org/" target="_blank">Quantum ESPRESSO</a> app | ||
(or QE app for short) is a graphical front end for calculating materials properties using | ||
Quantum ESPRESSO (QE). Each property is calculated by workflows powered by the | ||
<a href="https://www.aiida.net/" target="_bland"> AiiDA engine</a>, and maintained in the | ||
<a href="https://aiida-quantumespresso.readthedocs.io/en/latest/" target="_blank">Quantum ESPRESSO plugin</a> | ||
for AiiDA. | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,59 @@ | ||
.output_subarea { | ||
max-width: none !important; | ||
} | ||
} | ||
|
||
.app-header { | ||
margin-bottom: 1em; | ||
} | ||
|
||
.logo { | ||
text-align: center; | ||
} | ||
|
||
#subtitle { | ||
text-align: center; | ||
font-style: italic; | ||
} | ||
|
||
.info-toggles { | ||
margin: 0 auto; | ||
} | ||
.info-toggles button { | ||
width: 100px; | ||
margin: 1em 0.5em; | ||
} | ||
.info-toggles button:focus { | ||
outline: none !important; | ||
} | ||
|
||
.info-box { | ||
display: none; | ||
margin: 2px; | ||
padding: 1em; | ||
border: 3px solid orangered; | ||
background-color: #ffedcc; | ||
border-radius: 1em; | ||
-webkit-border-radius: 1em; | ||
-moz-border-radius: 1em; | ||
-ms-border-radius: 1em; | ||
-o-border-radius: 1em; | ||
} | ||
.info-box p { | ||
line-height: 24px; | ||
} | ||
|
||
.guide ol { | ||
list-style: none; | ||
} | ||
.guide p:not(:last-of-type) { | ||
margin-bottom: 0.5em; | ||
} | ||
|
||
#loading { | ||
text-align: center; | ||
font-size: large; | ||
} | ||
|
||
footer { | ||
text-align: right; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,64 @@ | ||
.output_subarea { | ||
max-width: none !important; | ||
} | ||
|
||
.app-header { | ||
margin-bottom: 1em; | ||
} | ||
.logo { | ||
text-align: center; | ||
} | ||
|
||
#subtitle { | ||
text-align: center; | ||
font-style: italic; | ||
} | ||
|
||
.info-toggles { | ||
margin: 0 auto; | ||
|
||
button { | ||
width: 100px; | ||
margin: 1em 0.5em; | ||
|
||
&:focus { | ||
outline: none !important; | ||
} | ||
} | ||
} | ||
|
||
.info-box { | ||
display: none; | ||
margin: 2px; | ||
padding: 1em; | ||
border: 3px solid orangered; | ||
background-color: #ffedcc; | ||
border-radius: 1em; | ||
-webkit-border-radius: 1em; | ||
-moz-border-radius: 1em; | ||
-ms-border-radius: 1em; | ||
-o-border-radius: 1em; | ||
|
||
p { | ||
line-height: 24px; | ||
} | ||
} | ||
|
||
.guide { | ||
ol { | ||
list-style: none; | ||
} | ||
|
||
p:not(:last-of-type) { | ||
margin-bottom: 0.5em; | ||
} | ||
} | ||
|
||
#loading { | ||
text-align: center; | ||
font-size: large; | ||
} | ||
|
||
footer { | ||
text-align: right; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<div class="guide"> | ||
<p> | ||
The QE app allows you to calculate properties in a simple 4-step process: | ||
</p> | ||
|
||
<ol> | ||
<li> | ||
🔍 <strong>Step 1:</strong> Select the structure you want to run. | ||
</li> | ||
<li> | ||
⚙️ <strong>Step 2:</strong> Select the properties you are interested in. | ||
</li> | ||
<li> | ||
💻 <strong>Step 3:</strong> Choose the computational resources you want to run on. | ||
</li> | ||
<li> | ||
🚀 <strong>Step 4:</strong> Submit your workflow. | ||
</li> | ||
</ol> | ||
|
||
<p> | ||
New users can go straight to the first step and select their structure. | ||
</p> | ||
|
||
<p> | ||
Completed workflows can be selected at the top of the app. | ||
</p> | ||
|
||
<p> | ||
You can also check out the | ||
<a href="https://aiidalab-qe.readthedocs.io/tutorials/basic.html" target="_blank">basic</a> tutorial to get started | ||
with the Quantum ESPRESSO app, or try out the | ||
<a href="https://aiidalab-qe.readthedocs.io/tutorials/advanced.html" target="_blank">advanced</a> tutorial to learn | ||
additional features offered by the app. | ||
</p> | ||
|
||
<p> | ||
For a more in-depth dive into the app's features, please refer to the | ||
<a href="https://aiidalab-qe.readthedocs.io/howto/index.html" target="_blank">how-to guides</a>. | ||
</p> | ||
</p> | ||
</div> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.