Skip to content

Commit

Permalink
Merge pull request #6 from gimnathperera/fix/alignment-issue
Browse files Browse the repository at this point in the history
feat: add new mouse pointer
  • Loading branch information
gimnathperera authored Sep 30, 2023
2 parents ce01e8a + 7ea28aa commit c3276e4
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 25 deletions.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import type { Metadata } from 'next';
import { FC } from 'react';
import { Inter } from 'next/font/google';
import Header from '@/components/header';
import Footer from '@/components/footer';
import { siteConfig } from '@/config/site';
import '@/styles/globals.css';
import { FC } from 'react';

const inter = Inter({ subsets: ['latin'] });

Expand Down
4 changes: 2 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
'use client';
import { FC, useState } from 'react';
import { Toaster } from 'react-hot-toast';
import Hero from '@/components/hero';
import { FC, useState } from 'react';
import Uploader from '@/components/uploader';
import { ColorInfo } from '@/types/uploader';
import ColorList from '@/components/color-list';
import { ColorInfo } from '@/types/uploader';

const Home: FC = () => {
const [colorPalette, setColorPalette] = useState<ColorInfo[] | null>(null);
Expand Down
8 changes: 7 additions & 1 deletion components/footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { siteConfig } from '@/config/site';
import { FC } from 'react';

type Props = {};
Expand All @@ -6,7 +7,12 @@ const Footer: FC<Props> = () => {
return (
<footer className='footer footer-center p-4 text-base-content pt-12'>
<aside>
<p>Made with 💖 by Gimnath</p>
<p>
Made with 💖 by{' '}
<a href={siteConfig.links.github} className='font-semibold'>
Gimnath
</a>
</p>
</aside>
</footer>
);
Expand Down
13 changes: 8 additions & 5 deletions components/header/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { FC } from 'react';
import GithubIcon from '../icons/github';
import { siteConfig } from '@/config/site';

type Props = {};

Expand All @@ -12,11 +13,13 @@ const Header: FC<Props> = ({}) => {
</div>
</div>
<div className='flex-none'>
<label className='btn btn-ghost btn-circle'>
<div className='indicator'>
<GithubIcon />
</div>
</label>
<a href={siteConfig.links.repository}>
<label className='btn btn-ghost btn-circle'>
<div className='indicator'>
<GithubIcon />
</div>
</label>
</a>
</div>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions components/hero/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';
import { HeroColors } from '@/constants';
import { useState, useEffect, FC } from 'react';
// import AnimatedCursor from "react-animated-cursor";
import AnimatedCursor from 'react-animated-cursor';

const Hero: FC = () => {
const [currentColorIndex, setCurrentColorIndex] = useState(0);
Expand Down Expand Up @@ -38,7 +38,7 @@ const Hero: FC = () => {
</p>
</div>
</div>
{/* <AnimatedCursor /> */}
<AnimatedCursor />
</div>
);
};
Expand Down
9 changes: 2 additions & 7 deletions config/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@ export type SiteConfig = typeof siteConfig;
export const siteConfig = {
name: 'Rainbow Riot | Color Palette Generator',
description: 'Generate color palettes from images',
navItems: [],
navMenuItems: [],
links: {
github: 'https://github.com/Gimnath-Perera',
repository: 'https://github.com/Gimnath-Perera/mocktopus',
twitter: 'https://twitter.com/getnextui',
github: 'https://github.com/gimnathperera',
repository: 'https://github.com/gimnathperera/rainbow-riot',
docs: 'https://nextui.org',
discord: 'https://discord.gg/9b6yyZKmH4',
sponsor: 'https://patreon.com/jrgarciadev',
},
};
14 changes: 7 additions & 7 deletions constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export const HeroColors = [
'#FF5117',
'#FF8E00',
'#F9D81E',
'#97CC37',
'#8177FA',
'#00C0E9',
'#C902E6',
'#FFFFE0',
'#F5F5F5',
'#FFFFFF',
'#98FB98',
'#FFDAB9',
'#FFF5E1',
'#E6E6FA',
];

export const MaxPaletteSize = 5;

0 comments on commit c3276e4

Please sign in to comment.