Skip to content

Commit

Permalink
added bg for hero
Browse files Browse the repository at this point in the history
  • Loading branch information
Afterdie committed Dec 25, 2023
1 parent 7bf7711 commit 7a20986
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Binary file added public/hero-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export const metadata = {
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en" className="dark">
<body className={`font-sans ${GeistSans.className}`}>
<body
className={`bg-hero bg-cover bg-center bg-no-repeat font-sans ${GeistSans.className}`}
>
<Suspense fallback={<Loader />}>
<Providers>
<div className="flex min-h-screen flex-col">
Expand Down
4 changes: 2 additions & 2 deletions src/components/Loader.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import React from "react";

const Loader = () => {
return (
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-75">
<video autoPlay loop muted playsInline className="w-48 h-48">
<video autoPlay loop muted playsInline className="h-48 w-48">
<source src="/preloader.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
Expand Down
6 changes: 5 additions & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ export default {
"./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
extend: {
backgroundImage: {
hero: "url('/hero-bg.png')",
},
},
},
darkMode: "class",
plugins: [nextui()],
Expand Down

0 comments on commit 7a20986

Please sign in to comment.