-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Your Name
committed
Dec 11, 2024
1 parent
c43791e
commit 7522dad
Showing
3 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -19,6 +19,8 @@ We can use cards to lay the table out neater. | |
|
||
## Cards, Buttons and Forms. | ||
|
||
![Screenshot](../screenshot-more-components.png) | ||
|
||
```rust | ||
use crate::{layout::{Layout, SideBar}, render}; | ||
use daisy_rsx::*; | ||
|
@@ -32,9 +34,9 @@ pub fn index(users: Vec<User>) -> String { | |
title: "Users Table", | ||
selected_item: SideBar::Users, | ||
BlankSlate { | ||
heading: "Looks like you don't have any API keys", | ||
heading: "Welcome To Your Application", | ||
visual: favicon_svg.name, | ||
description: "API Keys allow you to access our programming interface", | ||
description: "This is just the beginning", | ||
} | ||
Card { | ||
class: "card-bordered mt-12 has-data-table", | ||
|
@@ -77,14 +79,15 @@ pub fn index(users: Vec<User>) -> String { | |
title: "Add User" | ||
} | ||
CardBody { | ||
class: "p-3", | ||
form { | ||
class: "flex flex-col", | ||
action: "/new_user", | ||
method: "POST", | ||
|
||
Input { | ||
input_type: InputType::Email, | ||
placeholder: "Production API Key", | ||
placeholder: "e.g. [email protected]", | ||
help_text: "Please enter an email address", | ||
required: true, | ||
label: "Email", | ||
|
Binary file added
BIN
+148 KB
rust-on-nails.com/content/docs/full-stack-web/screenshot-more-components.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.