mirror of
https://github.com/ublue-os/forge.git
synced 2025-04-18 20:43:43 +03:00
feat(nicegui): add first content to 'home'
This commit is contained in:
parent
f67774443f
commit
ed3f58ed93
BIN
anvil/nicegui/pages/assets/ansible.png
Normal file
BIN
anvil/nicegui/pages/assets/ansible.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
anvil/nicegui/pages/assets/registry.png
Normal file
BIN
anvil/nicegui/pages/assets/registry.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
|
@ -1,10 +1,41 @@
|
||||||
from nicegui import ui
|
from nicegui import ui
|
||||||
import os
|
from utils.helper import get_project_root
|
||||||
|
|
||||||
|
|
||||||
def content() -> None:
|
def content() -> None:
|
||||||
project_root = os.environ['NICEGUI_DIR']
|
project_root = get_project_root()
|
||||||
ui.label("Work in progress...").classes("text-h6")
|
with ui.row().classes("w-full"):
|
||||||
ui.image(project_root + "/pages/assets/work-in-progress.png").classes(
|
with ui.card().classes("h-full"):
|
||||||
"w-[200%]"
|
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
|
||||||
|
|
Loading…
Reference in a new issue