فهرست منبع

add new section

Falko Schindler 2 سال پیش
والد
کامیت
1cfcf86d10
1فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 11 0
      main.py

+ 11 - 0
main.py

@@ -92,6 +92,17 @@ async def index_page(client: Client):
     with ui.row().classes('w-full q-pa-md'):
         reference.create_intro()
 
+    with ui.row() \
+            .classes('w-full items-center gap-28 px-32 py-16 no-wrap') \
+            .style(f'background: {ACCENT_COLOR}'):
+        with ui.column().classes('gap-4'):
+            ui.markdown('Go to the API reference to see a ton of live examples') \
+                .style('font-size: 220%; color: white; line-height: 0.9; font-weight: 500')
+            ui.label('The whole content of https://nicegui.io/ is implemented with NiceGUI itself.') \
+                .style('font-size: 150%; color: white')
+        ui.link('API reference', '/reference') \
+            .classes('rounded-full px-12 py-2 text-xl text-bold bg-white')
+
 
 @ui.page('/reference')
 def reference_page():