Skip to content

Commit a0acedb

Browse files
committed
Add some more padding and remove footer border with solid color
1 parent 1980458 commit a0acedb

2 files changed

Lines changed: 11 additions & 8 deletions

File tree

src/components/slides.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub fn SlideShow(props: SlideShowProps) -> View {
8080
div(class="slide") {
8181
(children)
8282
}
83-
div(class="fixed bottom-0 left-0 bg-slate-950 w-full p-2 border-slate-700 border-t-2") {
83+
div(class="fixed bottom-0 left-0 bg-slate-900 w-full p-2") {
8484
SlideControls()
8585
}
8686
};
@@ -287,7 +287,9 @@ pub fn Video<F: Fn() -> bool + 'static>(
287287

288288
let show_replay_btn = create_signal(false);
289289
let replay = move |_| {
290-
let video = video_ref.get().unchecked_into::<web_sys::HtmlVideoElement>();
290+
let video = video_ref
291+
.get()
292+
.unchecked_into::<web_sys::HtmlVideoElement>();
291293
video.pause().unwrap();
292294
video.set_current_time(0.0);
293295
let _ = video.play().unwrap();

src/shell.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ pub fn Route(route: ReadSignal<Routes>) -> View {
3131
#[component]
3232
fn Header() -> View {
3333
view! {
34-
header(class="z-50 p-2 bg-inherit border-b-2 border-slate-700 text-sm font-mono text-red-200 sm:px-5") {
34+
header(class="z-50 p-2 bg-inherit border-b-2 border-slate-700 text-sm font-mono text-red-200 sm:px-10 md:px-20 lg:px-40 xl:px-60") {
3535
nav(class="flex flex-row justify-between items-center") {
36-
div(class="self-start") {
37-
a(class="hover:underline font-bold", href="/") { "$ cd /home/lukechu" }
36+
div(class="self-start hover:underline font-bold") {
37+
a(class="hidden sm:inline", href="/") { "$ cd /home/lukechu" }
38+
a(class="inline sm:hidden", href="/") { "lukechu" }
3839
}
39-
div(class="self-end flex flex-row gap-4") {
40+
div(class="self-end flex flex-row gap-4 sm:gap-6 md:gap-8") {
4041
div { a(class="hover:underline", href="/about") { "about" } }
4142
div { a(class="hover:underline", href="https://github.com/lukechu10") { "github" } }
4243
}
@@ -48,10 +49,10 @@ fn Header() -> View {
4849
#[component]
4950
fn Footer() -> View {
5051
view! {
51-
footer(class="p-2 border-t-2 border-slate-700 text-xs font-mono") {
52+
footer(class="p-2 bg-slate-900 text-xs font-mono") {
5253
div(class="flex flex-row justify-between") {
5354
div { "© 2025 Luke Chu" }
54-
div {
55+
div(class="text-[9pt]") {
5556
"Made with "
5657
a(class="hover:underline font-bold text-red-200", href="https://rust-lang.org") { "Rust" }
5758
" and "

0 commit comments

Comments
 (0)