Skip to content

Commit

Permalink
feat: add basic thread detail form
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonVirgo committed Jul 22, 2024
1 parent 70cbb19 commit 29308a2
Show file tree
Hide file tree
Showing 7 changed files with 181 additions and 334 deletions.
224 changes: 59 additions & 165 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tokio = "1.38.1"
chrono = { version = "0.4.23", features = ["serde"] }
url = "2.5.2"
reqwest = "0.12.5"
scraper = "0.19.1"
select = "0.6.0"

[dev-dependencies]
rustfmt = "0.10.0"
Expand Down
4 changes: 2 additions & 2 deletions src/components/buttons.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ pub fn gen_button(btn: ButtonType) -> Markup {
match btn {
ButtonType::ExternalCTA(btn) => {
html! {
a."text-lg bg-white border-1 border-zinc-400 rounded-full py-2 px-4 mt-4 select-none w-fit hover:cursor-pointer hover:bg-zinc-300" href=(btn.link) {
a."text-lg bg-white border-1 border-zinc-400 rounded-full py-2 px-4 mt-4 select-none w-fit hover:cursor-pointer hover:bg-zinc-300 text-black" href=(btn.link) {
(btn.text)
}
}
}
ButtonType::FormSubmit(btn) => {
html! {
button."text-lg bg-white border-1 border-zinc-400 rounded py-2 px-4 mt-4 select-none w-fit hover:cursor-pointer hover:bg-zinc-300" type="submit" {
button."text-lg bg-white border-1 border-zinc-400 rounded py-2 px-4 mt-4 select-none w-fit hover:cursor-pointer hover:bg-zinc-300 text-black" type="submit" {
(btn.text)
}
}
Expand Down
Loading

0 comments on commit 29308a2

Please sign in to comment.