Skip to content

Commit dcb7c93

Browse files
Redesign the app's container in aiidalab home (#985)
This PR uses new CSS classes introduced in aiidalab/aiidalab-home#190 to redesign the app's container in the home app.
1 parent 85ceafc commit dcb7c93

File tree

4 files changed

+42
-18
lines changed

4 files changed

+42
-18
lines changed

miscellaneous/logos/history.png

8.47 KB
Loading

miscellaneous/logos/plugins.png

9.22 KB
Loading

miscellaneous/logos/workbench.png

10.4 KB
Loading

start.py

+42-18
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,45 @@
22

33

44
def get_start_widget(appbase, jupbase, notebase): # noqa: ARG001
5-
return ipw.HTML(
6-
f"""
7-
<table>
8-
<tr>
9-
<th style="text-align:center">Utils</th>
10-
<tr>
11-
<td valign="top"><ul>
12-
<li><a href="{appbase}/job_list.ipynb" target="_blank">Job History</a></li>
13-
<li><a href="{appbase}/plugin_list.ipynb" target="_blank">Plugins</a></li>
14-
</ul></td>
15-
</tr>
16-
</table>
17-
<div align="center">
18-
<a href="{appbase}/qe.ipynb" target="_blank">
19-
<img src="https://gitlab.com/QEF/q-e/raw/develop/logo.jpg" height="120px" width=243px">
20-
</a>
21-
</div>"""
22-
)
5+
return ipw.HTML(f"""
6+
<div class="app-container">
7+
<a href="https://www.quantum-espresso.org/" target="_blank">
8+
<img
9+
src="https://gitlab.com/QEF/q-e/raw/develop/logo.jpg"
10+
height="180px"
11+
width=323px">
12+
</a>
13+
<div class="features">
14+
<a
15+
class="feature"
16+
href="{appbase}/qe.ipynb"
17+
target="_blank">
18+
<img
19+
class="feature-logo"
20+
src="{appbase}/miscellaneous/logos/workbench.png"
21+
alt="New calculation" />
22+
<div class="feature-label">New calculation</div>
23+
</a>
24+
<a
25+
class="feature"
26+
href="{appbase}/job_list.ipynb"
27+
target="_blank">
28+
<img
29+
class="feature-logo"
30+
src="{appbase}/miscellaneous/logos/history.png"
31+
alt="Calculation history" />
32+
<div class="feature-label">Calculation History</div>
33+
</a>
34+
<a
35+
class="feature"
36+
href="{appbase}/plugin_list.ipynb"
37+
target="_blank">
38+
<img
39+
class="feature-logo"
40+
src="{appbase}/miscellaneous/logos/plugins.png"
41+
alt="Plugin store" />
42+
<div class="feature-label">Plugin store</div>
43+
</a>
44+
</div>
45+
</div>
46+
""")

0 commit comments

Comments
 (0)