-
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.
- Loading branch information
Showing
6 changed files
with
93 additions
and
104 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,72 +1,15 @@ | ||
import logo from "assets/logo.svg"; | ||
import Avatar from "components/Avatar"; | ||
import { FiHeart } from "react-icons/fi"; | ||
|
||
const randoms = [ | ||
[1, 2], | ||
[3, 4, 5], | ||
[6, 7] | ||
]; | ||
|
||
function App() { | ||
export const App = () => { | ||
return ( | ||
<div className="relative overflow-hidden bg-white"> | ||
<div className="h-screen sm:pb-40 sm:pt-24 lg:pb-48 lg:pt-40"> | ||
<div className="relative mx-auto max-w-7xl px-4 sm:static sm:px-6 lg:px-8"> | ||
<div className="sm:max-w-lg"> | ||
<div className="my-4"> | ||
<Avatar size="large" src={logo} /> | ||
</div> | ||
<h1 className="text-4xl font-bold tracking-tight text-gray-900 sm:text-6xl"> | ||
Welcome! | ||
</h1> | ||
<p className="mt-4 text-xl text-gray-500"> | ||
This is a boilerplate build with Vite, React 18, | ||
TypeScript, Vitest, Testing Library, TailwindCSS 3, | ||
Eslint and Prettier. | ||
</p> | ||
</div> | ||
<div> | ||
<div className="my-10"> | ||
<a | ||
href="vscode://" | ||
className="inline-block rounded-md border border-transparent bg-indigo-600 px-8 py-3 text-center font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-700 focus:ring-offset-2" | ||
> | ||
Start building for free | ||
</a> | ||
<div | ||
aria-hidden="true" | ||
className="pointer-events-none mt-10 md:mt-0 lg:absolute lg:inset-y-0 lg:mx-auto lg:w-full lg:max-w-7xl" | ||
> | ||
<div className="absolute sm:left-1/2 sm:top-0 sm:translate-x-8 lg:left-1/2 lg:top-1/2 lg:-translate-y-1/2 lg:translate-x-8"> | ||
<div className="flex items-center space-x-6 lg:space-x-8"> | ||
{randoms.map((random, number) => ( | ||
<div | ||
key={`random-${random[number]}`} | ||
className="grid shrink-0 grid-cols-1 gap-y-6 lg:gap-y-8" | ||
> | ||
{random.map((number) => ( | ||
<div | ||
key={`random-${number}`} | ||
className="h-64 w-44 overflow-hidden rounded-lg sm:opacity-0 lg:opacity-100" | ||
> | ||
<img | ||
src={`https://picsum.photos/600?random=${number}`} | ||
alt="" | ||
className="size-full bg-indigo-100 object-cover object-center" | ||
/> | ||
</div> | ||
))} | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="relative flex min-h-dvh flex-col items-center gap-4 overflow-hidden bg-background-secondary p-4"> | ||
<div className="w-full bg-background-primary">luc.eth</div> | ||
<div className="h-fit rounded-xl border-border bg-background-primary p-4"> | ||
hi | ||
</div> | ||
<div className="flex items-center justify-center gap-2"> | ||
Built with <FiHeart /> by ur mom | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default App; | ||
}; |
This file was deleted.
Oops, something went wrong.
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,9 +1,9 @@ | ||
import 'tailwindcss/tailwind.css'; | ||
import "tailwindcss/tailwind.css"; | ||
|
||
import App from 'components/App'; | ||
import { App } from "components/App"; | ||
import { createRoot } from "react-dom/client"; | ||
|
||
const container = document.querySelector('#root') as HTMLDivElement; | ||
const container = document.querySelector("#root") as HTMLDivElement; | ||
const root = createRoot(container); | ||
|
||
root.render(<App />); |
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