Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 2922e9d

Browse files
committed
improvements
1 parent 2b08220 commit 2922e9d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Current Projects:
1818
| [E-Commerce](./ecommerce-site) | LiveView | @jkelleyrtp |
1919
| [WiFi Scanner](./wifi-scanner) | Desktop | @jkelleyrtp |
2020
| [Weather App (WIP](./weatherapp) | Web | @jkelleyrtp |
21-
| [Dog Search Engine](./dog-app) | Web/Desktop | @jkelleyrtp |
21+
| [Dog App](./dog-app) | Desktop | @jkelleyrtp |
2222

2323

2424
## TODOMVC (Desktop, Web)
@@ -42,5 +42,5 @@ Current Projects:
4242
## Weather App (Liveview) [WIP]
4343
[![Weather App](./)](./weatherapp)
4444

45-
## Dog Search Engine (Web) [WIP]
46-
[![Dog Search Engine](./)](./dog-app)
45+
## Dog App (Desktop)
46+
[![Dog App](./dog-app/dog-app.png)](./dog-app)

dog-app/dog-app.png

239 KB
Loading

dog-app/src/main.rs

+6-5
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ fn app(cx: Scope) -> Element {
4242
}
4343
}
4444
}
45-
div { class: "px-2 flex",
46-
div { class: "grow w-full h-full",
45+
div { class: "px-2 flex gap-2",
46+
div { class: "grow w-full",
4747
if let Some(Ok(breeds)) = fut.value() {
4848
let current_search = search_input.get();
4949
rsx!{
@@ -78,8 +78,9 @@ fn app(cx: Scope) -> Element {
7878
if let Some(selected_breed) = selected_breed.get() {
7979
rsx!(
8080
div {
81-
class: "w-1/2",
81+
class: "fixed bottom-0 right-0 m-10 shadow-lg",
8282
img {
83+
class: "w-80 h-80 rounded-lg",
8384
src: "{selected_breed}"
8485
}
8586
}
@@ -96,8 +97,8 @@ fn Card<'a>(cx: Scope, title: String, list: Vec<String>, onclick: EventHandler<'
9697
render!(
9798
div {
9899
onclick: |_| onclick.call(()),
99-
class: "my-2 bg-gray-100 w-full rounded-sm p-2",
100-
h3 { class: "text-2xl", "{title}" }
100+
class: "my-2 bg-gray-100 w-full rounded-lg p-4 hover:bg-gray-200 ease-in-out duration-75",
101+
h3 { class: "text-1xl", "{title}" }
101102
ul { class: "list-disc ml-8",
102103
{list.iter().map(|item| rsx!( li {
103104
key: "{item}",

0 commit comments

Comments
 (0)