1use gpui::{div, white, Div, ParentElement, Render, Styled, View, VisualContext, WindowContext};
2
3pub struct TextStory;
4
5impl TextStory {
6 pub fn view(cx: &mut WindowContext) -> View<Self> {
7 cx.build_view(|cx| Self)
8 }
9}
10
11impl Render for TextStory {
12 type Element = Div<Self>;
13
14 fn render(&mut self, cx: &mut gpui::ViewContext<Self>) -> Self::Element {
15 div().size_full().bg(white()).child(concat!(
16 "The quick brown fox jumps over the lazy dog. ",
17 "Meanwhile, the lazy dog decided it was time for a change. ",
18 "He started daily workout routines, ate healthier and became the fastest dog in town.",
19 ))
20 }
21}