Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoo0122 committed Jun 30, 2024
1 parent ee1dd23 commit f689973
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 1 deletion.
Binary file added images/podcast-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&display=swap" rel="stylesheet">
<link data-trunk rel="tailwind-css" href="/style/tailwind.css" />
<link data-trunk rel="copy-dir" href="/images" />
</head>
<body></body>
</html>
15 changes: 15 additions & 0 deletions src/app/components/banner.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
use leptos::*;

#[component]
pub fn Banner() -> impl IntoView {
view! {
<div class="flex flex-col items-center justify-center">
<div class="flex justify-center items-center w-28 h-28 bg-neutral-900 rounded-2xl shadow-lg pl-1 shrink-0">
<img src="/images/podcast-logo.png" alt="podcast-logo" class="w-20"/>
</div>
<div class="text-white text-3xl font-title font-bold mt-6 text-center">
"NEVER STOP LEARNING."
</div>
</div>
}
}
10 changes: 10 additions & 0 deletions src/app/components/episodes.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
use leptos::*;

#[component]
pub fn Episodes() -> impl IntoView {
view! {
<div class="mt-12">
<span class="text-neutral-100 font-mono">Coming soon...</span>
</div>
}
}
2 changes: 2 additions & 0 deletions src/app/components/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod banner;
pub mod episodes;
15 changes: 15 additions & 0 deletions src/app/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
use leptos::*;

mod components;
use components::banner::*;
use components::episodes::*;

#[component]
pub fn App() -> impl IntoView {
view! {
<div class="w-screen h-screen bg-gradient-to-br from-red-950 to-red-600 flex flex-col justify-center items-center px-6">
<Banner />
<Episodes />
</div>
}
}
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
use leptos::*;
mod app;
use app::*;

fn main() {
console_error_panic_hook::set_once();
mount_to_body(|| view! { <p>"Hello, world!"</p> })
mount_to_body(|| view! { <App /> })
}
3 changes: 3 additions & 0 deletions style/tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
14 changes: 14 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: {
files: ["*.html", "./src/**/*.rs"],
},
theme: {
extend: {
fontFamily: {
title: ["Silkscreen", "san-serif"],
},
},
},
plugins: [],
};

0 comments on commit f689973

Please sign in to comment.