Skip to content

Commit

Permalink
Final
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Dec 11, 2024
1 parent c43791e commit 7522dad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub fn Layout(title: String, children: Element, selected_item: SideBar) -> Eleme
ol {
class: "flex flex-wrap items-center gap-1.5 break-words text-sm sm:gap-2.5",
li {
class: "items-center gap-1.5 hidden md:block",
class: "ml-3 items-center gap-1.5 hidden md:block",
"Your Application"
}
li {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7522dad

Please sign in to comment.