Skip to content

Commit

Permalink
refactor: add onabording ui idea
Browse files Browse the repository at this point in the history
  • Loading branch information
cs50victor committed Mar 24, 2024
1 parent 853ee32 commit e350172
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
Binary file modified bun.lockb
Binary file not shown.
7 changes: 6 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,21 @@ import { useState } from "react";
import { invoke } from "@tauri-apps/api/tauri";
import { Input } from "./components/ui/input";
import { Button } from "./components/ui/button";
import { WelcomePage } from "./components/welcome";

function App() {
const [greetMsg, setGreetMsg] = useState("");
const [name, setName] = useState("");
const onboarding = false

const greet=async()=> {
setGreetMsg(await invoke("greet", { name }));
}

// bg-[#353535]

if (onboarding){
return <WelcomePage/>
}
return (
<div className="h-dvh w-full flex flex-col items-center justify-center">
<div className="space-y-4">
Expand Down
Binary file added src/assets/welcome.mp4
Binary file not shown.
9 changes: 9 additions & 0 deletions src/components/welcome.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Welcomevideo from "../assets/welcome.mp4"

export const WelcomePage = () => {
return (
<div className='h-dvh w-full '>
<video src={Welcomevideo} className='h-full w-full' autoPlay loop/>
</div>
)
}

0 comments on commit e350172

Please sign in to comment.