-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from opeolluwa/master
sunc branch
- Loading branch information
Showing
38 changed files
with
688 additions
and
61 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
<link data-trunk rel="rust" data-wasm-opt="z" /> | ||
<link data-trunk rel="icon" type="image/ico" href="/public/favicon.ico" /> | ||
<link data-trunk rel="tailwind-css" href="/style/tailwind.css" /> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" /> | ||
<style> | ||
.open-sans-300 { | ||
font-family: "Open Sans", sans-serif; | ||
|
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
use leptos::{component, view, Children, IntoView}; | ||
|
||
pub fn button(){ | ||
|
||
} | ||
/// the app button component | ||
#[component] | ||
pub fn Button( | ||
/// additional tailwind or custom css classes | ||
class: &'static str, | ||
/// the element that goes into the button | ||
children: Children, | ||
) -> impl IntoView { | ||
view! { <button class=format!("px-4 py-2 rounded {class}")>{children()}</button> } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
|
||
|
||
pub fn card(){ | ||
|
||
} | ||
pub fn card() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
use leptos::{component, view, IntoView}; | ||
|
||
/// the app icon component, built on remx icon | ||
#[component] | ||
pub fn Icon( | ||
#[prop(default = "")] | ||
/// the remix icon identifier | ||
icon: &'static str, | ||
/// tailwind classes | ||
#[prop(default = "")] | ||
/// the remix icon identifier | ||
class: &'static str, | ||
) -> impl IntoView { | ||
view! { <i class=format!("{icon} {class}")></i> } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
|
||
|
||
pub fn input(){ | ||
|
||
} | ||
pub fn input() {} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
pub mod button; | ||
pub mod card; | ||
pub mod icon; | ||
pub mod input; | ||
pub mod text; | ||
pub mod view; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
|
||
|
||
pub fn text(){ | ||
|
||
} | ||
pub fn text() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1 @@ | ||
|
||
|
||
pub fn view(){ | ||
|
||
} | ||
pub fn view() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
use crate::partials::footer::AppFooter; | ||
use crate::partials::nav::AppNavigation; | ||
use leptos::{component, view, Children, IntoView}; | ||
|
||
/// the default application layout, with footer, viewbox, and navigation | ||
#[component] | ||
pub fn Layout(children: Children, class: &'static str) -> impl IntoView { | ||
view! { | ||
<AppNavigation/> | ||
<main class="container my-8">{children()}</main> | ||
<AppFooter/> | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod default; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
mod app; | ||
mod components; | ||
mod layouts; | ||
mod pages; | ||
mod partials; | ||
|
||
use app::*; | ||
use leptos::*; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,45 @@ | ||
use crate::components::button::Button; | ||
use crate::components::icon::Icon; | ||
use crate::layouts::default::Layout; | ||
use leptos::{component, view, IntoView}; | ||
|
||
#[component] | ||
pub fn Home() -> impl IntoView { | ||
view! { | ||
<div class="container bg-red"> | ||
<header> | ||
<div> | ||
<h1 class="text-5xl text-center">Everything that goes here goes here</h1> | ||
<p> | ||
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Explicabo consectetur facilis, dicta, in magni incidunt esse neque, iste rem libero omnis asperiores earum? Eligendi magnam, ratione harum saepe fugiat similique? | ||
</p> | ||
</div> | ||
<div> | ||
<img src="public/default-img.png" alt="utils web"/> | ||
<Layout class=""> | ||
<header class="h-[60vh] sm:h-[75vh] flex flex-col item-center justify-center"> | ||
<h1 class="text-3xl sm:text-5xl text-center capitalize font-medium "> | ||
One Stop toolbox for every developer | ||
</h1> | ||
<p class="leading-2 sm:w-2/3 mx-auto mt-2 py-2 text-center"> | ||
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Explicabo consectetur facilis, dicta, in magni incidunt esse neque, | ||
</p> | ||
<div class="flex items-center w-fit gap-2 mx-auto my-4 "> | ||
<Button class="bg-[#101010] text-white w-fit flex items-center justify-center text-center"> | ||
"Download" | ||
<Icon icon="ri-arrow-down-circle-fill" class="text-2xl block ml-2"/> | ||
</Button> | ||
<Button class="border-2 border-gray-500 items-center justify-center text-center bg-gray-50 "> | ||
Read the docs | ||
</Button> | ||
|
||
</div> | ||
</header> | ||
<section class="sm:flex justify-between items-center sm:my-[100px]"> | ||
|
||
</div> | ||
<div class="sm:w-1/2"> | ||
<h2 class="font-medium text-3xl leading-3 mb-2">Some heading</h2> | ||
<p class="leading-2 my-4"> | ||
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Temporibus labore beatae eum sed ad natus perspiciatis. Facere molestias incidunt molestiae maxime perferendis consequatur ullam tenetur! Mollitia porro numquam voluptatibus aut? | ||
</p> | ||
<Button class="border-2 border-gray-500 items-center justify-center text-center bg-gray-50 "> | ||
Get Started | ||
</Button> | ||
</div> | ||
<div> | ||
<img src="./placeholder.jpeg" alt="./utils-featrures"/> | ||
</div> | ||
</section> | ||
</Layout> | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.