Skip to content

Commit

Permalink
Redesign app container used in aiidalab home
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Dec 17, 2024
1 parent 72c4819 commit 760e802
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 18 deletions.
Binary file added miscellaneous/logos/history.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 miscellaneous/logos/plugins.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 miscellaneous/logos/workbench.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 37 additions & 18 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,40 @@


def get_start_widget(appbase, jupbase, notebase): # noqa: ARG001
return ipw.HTML(
f"""
<table>
<tr>
<th style="text-align:center">Utils</th>
<tr>
<td valign="top"><ul>
<li><a href="{appbase}/job_list.ipynb" target="_blank">Job History</a></li>
<li><a href="{appbase}/plugin_list.ipynb" target="_blank">Plugins</a></li>
</ul></td>
</tr>
</table>
<div align="center">
<a href="{appbase}/qe.ipynb" target="_blank">
<img src="https://gitlab.com/QEF/q-e/raw/develop/logo.jpg" height="120px" width=243px">
</a>
</div>"""
)
return ipw.HTML(f"""
<div class="app-container">
<img src="https://gitlab.com/QEF/q-e/raw/develop/logo.jpg" height="180px" width=323px">
<div class="features">
<a
class="feature"
href="{appbase}/qe.ipynb"
target="_blank">
<img
class="feature-logo"
src="{appbase}/miscellaneous/logos/workbench.png"
alt="New calculation" />
<div class="feature-label">New calculation</div>
</a>
<a
class="feature"
href="{appbase}/job_list.ipynb"
target="_blank">
<img
class="feature-logo"
src="{appbase}/miscellaneous/logos/history.png"
alt="Calculation history" />
<div class="feature-label">Calculation History</div>
</a>
<a
class="feature"
href="{appbase}/plugin_list.ipynb"
target="_blank">
<img
class="feature-logo"
src="{appbase}/miscellaneous/logos/plugins.png"
alt="Plugin store" />
<div class="feature-label">Plugin store</div>
</a>
</div>
</div>
""")

0 comments on commit 760e802

Please sign in to comment.