Files
novem/src/screen/setup_wizard/welcome_step.rs

48 lines
1.2 KiB
Rust
Raw Normal View History

2026-04-22 22:12:39 +01:00
use gpui::{FontWeight, ParentElement, Styled, div};
use crate::{
app,
component::{button::button, text::text},
};
struct WelcomeStep {
on_next: Option<FnOnce>,
}
pub(crate) fn new<E>(cx: &gpui::Context<E>) -> impl gpui::IntoElement {
let theme = app::current_theme(cx);
div()
.flex()
.flex_col()
.size_full()
.items_start()
.justify_center()
.child(
div()
.flex()
.flex_col()
.flex_1()
.justify_center()
.w_full()
.p_8()
.child(
text(
"Welcome to Novem!\nThis wizard will guide you through setting up Novem.\n",
cx,
)
.opacity(0.8),
)
.child(text("Press 'Next' to begin setup.", cx).font_weight(FontWeight(500.))),
)
.child(
div()
.flex()
.flex_row()
.justify_end()
.w_full()
.p_4()
.pt_0()
.child(button("next", cx).label("Next")),
)
}