Skip to content

Commit

Permalink
Merge pull request #35 from snurfer0/fix/styles
Browse files Browse the repository at this point in the history
Fix/styles
  • Loading branch information
snurfer0 authored Dec 11, 2023
2 parents 7678a43 + 7494ecd commit 5b44e4b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export default function RootLayout({
<Head>
<link rel="shortcut icon" href="/favicon.ico" />
</Head>
<body className="bg-base-200">
<body className="bg-base-200 min-h-full">
<Providers>
<NavBar navLinks={NAV_LINKS} />
{children}
<div className="min-h-full">{children}</div>
<Toaster />
<Footer />
</Providers>
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/theme.controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ThemeController: React.FC = () => {

return (
<label className="swap swap-rotate">
<input value="pastel" type="checkbox" className="theme-controller" />
<input value="winter" type="checkbox" className="theme-controller" />
<FiSun className="swap-on w-6 h-6" />
<FiMoon className="swap-off w-6 h-6" />
</label>
Expand Down
10 changes: 6 additions & 4 deletions src/components/templates/home.template.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Image from 'next/image';
import Link from 'next/link';
import React from 'react';
import { FiArrowRightCircle } from 'react-icons/fi';
import IntroImage from 'public/svg/intro.svg';
import { ButtonVariant } from 'src/enums/button.variant.enum';
import { Button } from '../atoms';

const HomeTemplate: React.FC = () => {
return (
<div className="hero min-h-screen">
Expand All @@ -29,12 +29,14 @@ const HomeTemplate: React.FC = () => {
campaign in moments. Simple to support and easy to manage.
</p>
<div className="mt-5 mb-10 md:mb-0">
<Link href="/start">
<Button variant={ButtonVariant.Primary}>Start Fundraising</Button>
</Link>
<Link href="/fundraisers" className="ml-2">
<Button variant={ButtonVariant.Primary}>Our Fundraisers</Button>
</Link>
<Link href="/start">
<Button variant={ButtonVariant.Primary} className="ml-2">
Start Fundraising <FiArrowRightCircle size={23} />
</Button>
</Link>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
"./src/components/**/*.{js,ts,jsx,tsx}",
],
daisyui: {
themes: ["pastel", "dark"],
themes: ["winter", "dark"],
darkTheme: "dark", // name of one of the included themes for dark mode
base: true, // applies background color and foreground color for root element by default
styled: true, // include daisyUI colors and design decisions for all components
Expand Down

0 comments on commit 5b44e4b

Please sign in to comment.