-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nicegui): add first content to 'home'
- Loading branch information
Showing
3 changed files
with
37 additions
and
6 deletions.
There are no files selected for viewing
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.
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,10 +1,41 @@ | ||
from nicegui import ui | ||
import os | ||
from utils.helper import get_project_root | ||
|
||
|
||
def content() -> None: | ||
project_root = os.environ['NICEGUI_DIR'] | ||
ui.label("Work in progress...").classes("text-h6") | ||
ui.image(project_root + "/pages/assets/work-in-progress.png").classes( | ||
"w-[200%]" | ||
) | ||
project_root = get_project_root() | ||
with ui.row().classes("w-full"): | ||
with ui.card().classes("h-full"): | ||
with ui.row().classes("no-wrap"): | ||
with ui.link(target="/ansible"): | ||
ui.image(source=f"{project_root}/pages/assets/ansible.png").classes( | ||
"w-32" | ||
) | ||
|
||
with ui.card().classes("h-full"): | ||
with ui.row().classes("no-wrap"): | ||
with ui.link(target="/registry"): | ||
ui.image( | ||
source=f"{project_root}/pages/assets/registry.png" | ||
).classes("w-32") | ||
|
||
with ui.row().classes("w-full"): | ||
with ui.card().classes("h-full"): | ||
with ui.row().classes("no-wrap"): | ||
ui.markdown( | ||
content=""" | ||
### Welcome to Universal Blue Forge | ||
Ublue-OS Forge is your self-hosted OS forge for custom images. | ||
To get started have a look at the latest [documentation](https://github.com/ublue-os/forge/blob/main/docs/index.md). | ||
For feedback and discussion join the [Discourse Forum](https://universal-blue.discourse.group/). | ||
Found a bug, feel free to file an [issue](https://github.com/ublue-os/forge/issues). | ||
Thanks and enjoy! | ||
""" | ||
).classes("text-base") | ||
with ui.row(): | ||
ui.space |