mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 22:35:42 +00:00
Organised ui components
This commit is contained in:
parent
55a5d5fe6f
commit
cd33a051da
@ -1,8 +1,8 @@
|
|||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import React, {ReactNode} from 'react'
|
import React, {ReactNode} from 'react'
|
||||||
import {OuterContainer, InnerContainer} from './Container'
|
import {OuterContainer, InnerContainer} from './Container'
|
||||||
import {SpotifyPlayer} from './SpotifyPlayer'
|
import {SpotifyPlayer} from './ui/SpotifyPlayer'
|
||||||
import {SocialLink} from '@/components/SocialLink'
|
import {SocialLink} from '@/components/ui/SocialLink'
|
||||||
import {GitHubIcon, LinkedInIcon, TwitterIcon} from '@/components/icons/SocialIcons'
|
import {GitHubIcon, LinkedInIcon, TwitterIcon} from '@/components/icons/SocialIcons'
|
||||||
|
|
||||||
function NavLink({href, children}: { href: string, children: ReactNode }) {
|
function NavLink({href, children}: { href: string, children: ReactNode }) {
|
||||||
|
@ -5,7 +5,7 @@ import {Fragment, useEffect, useRef} from 'react'
|
|||||||
import {Popover, Transition} from '@headlessui/react'
|
import {Popover, Transition} from '@headlessui/react'
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
import {Container} from './Container'
|
import {Container} from './Container'
|
||||||
import {MobileNavItem} from './MobileNavItem'
|
import {MobileNavItem} from './ui/MobileNavItem'
|
||||||
import {CloseIcon} from './icons/CloseIcon'
|
import {CloseIcon} from './icons/CloseIcon'
|
||||||
import {ChevronDownIcon} from './icons/ChevronDownIcon'
|
import {ChevronDownIcon} from './icons/ChevronDownIcon'
|
||||||
import {MoonIcon} from './icons/MoonIcon'
|
import {MoonIcon} from './icons/MoonIcon'
|
||||||
|
@ -3,8 +3,8 @@ import Head from 'next/head'
|
|||||||
import {usePathname} from 'next/navigation'
|
import {usePathname} from 'next/navigation'
|
||||||
import {Container} from '@/components/Container'
|
import {Container} from '@/components/Container'
|
||||||
import {formatDate} from '@/lib/formatDate'
|
import {formatDate} from '@/lib/formatDate'
|
||||||
import {Prose} from '@/components/Prose'
|
import {Prose} from '@/components/ui/Prose'
|
||||||
import {Views} from '@/components/Views'
|
import {Views} from '@/components/ui/Views'
|
||||||
|
|
||||||
type ArticleLayout = {
|
type ArticleLayout = {
|
||||||
children?: ReactNode
|
children?: ReactNode
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import {BriefcaseIcon} from '@/components/icons/BriefcaseIcon'
|
import {BriefcaseIcon} from '@/components/icons/BriefcaseIcon'
|
||||||
import {ArrowDownIcon} from '@/components/icons/ArrowDownIcon'
|
import {ArrowDownIcon} from '@/components/icons/ArrowDownIcon'
|
||||||
import {Button} from '@/components/Button'
|
import {Button} from './Button'
|
||||||
import {Cta} from '@/components/Cta'
|
import {Cta} from './Cta'
|
||||||
|
|
||||||
type Work = {
|
type Work = {
|
||||||
company: string
|
company: string
|
@ -1,6 +1,6 @@
|
|||||||
import {useRef, SyntheticEvent, MutableRefObject, useState} from 'react'
|
import {useRef, SyntheticEvent, MutableRefObject, useState} from 'react'
|
||||||
import {Cta} from '@/components/Cta'
|
import {Cta} from '@/components/ui/Cta'
|
||||||
import {Button} from '@/components/Button'
|
import {Button} from '@/components/ui/Button'
|
||||||
import {InboxIcon} from '@/components/icons/InboxIcon'
|
import {InboxIcon} from '@/components/icons/InboxIcon'
|
||||||
|
|
||||||
export function Subscribe() {
|
export function Subscribe() {
|
@ -3,8 +3,8 @@ import Head from 'next/head'
|
|||||||
import {GetStaticProps} from 'next'
|
import {GetStaticProps} from 'next'
|
||||||
import useSWR from 'swr'
|
import useSWR from 'swr'
|
||||||
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
||||||
import {Card} from '@/components/Card'
|
import {Card} from '@/components/ui/Card'
|
||||||
import {CardGroup} from '@/components/CardGroup'
|
import {CardGroup} from '@/components/ui/CardGroup'
|
||||||
import {numberFormat} from '@/lib/numberFormat'
|
import {numberFormat} from '@/lib/numberFormat'
|
||||||
import {getDashboardData} from '@/lib/dashboard'
|
import {getDashboardData} from '@/lib/dashboard'
|
||||||
import fetcher from '@/lib/fetcher'
|
import fetcher from '@/lib/fetcher'
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import {GetStaticProps} from 'next'
|
import {GetStaticProps} from 'next'
|
||||||
import {Card} from '@/components/Card'
|
import {Card} from '@/components/ui/Card'
|
||||||
import {Resume} from '@/components/Resume'
|
import {Resume} from '@/components/ui/Resume'
|
||||||
import {Container} from '@/components/Container'
|
import {Container} from '@/components/Container'
|
||||||
import {
|
import {
|
||||||
GitHubIcon,
|
GitHubIcon,
|
||||||
LinkedInIcon,
|
LinkedInIcon,
|
||||||
TwitterIcon
|
TwitterIcon
|
||||||
} from '@/components/icons/SocialIcons'
|
} from '@/components/icons/SocialIcons'
|
||||||
import {SocialLink} from '@/components/SocialLink'
|
import {SocialLink} from '@/components/ui/SocialLink'
|
||||||
import {Views} from '@/components/Views'
|
import {Views} from '@/components/ui/Views'
|
||||||
import {formatDate} from '@/lib/formatDate'
|
import {formatDate} from '@/lib/formatDate'
|
||||||
import {generateRssFeed} from '@/lib/generateRssFeed'
|
import {generateRssFeed} from '@/lib/generateRssFeed'
|
||||||
import {generateSitemap} from '@/lib/generateSitemap'
|
import {generateSitemap} from '@/lib/generateSitemap'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import {GetStaticProps} from 'next'
|
import {GetStaticProps} from 'next'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import {Card} from '@/components/Card'
|
import {Card} from '@/components/ui/Card'
|
||||||
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
||||||
import {SparklesIcon} from '@/components/icons/SparklesIcon'
|
import {SparklesIcon} from '@/components/icons/SparklesIcon'
|
||||||
import {ShareIcon} from '@/components/icons/ShareIcon'
|
import {ShareIcon} from '@/components/icons/ShareIcon'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
|
|
||||||
import {Card} from '@/components/Card'
|
import {Card} from '@/components/ui/Card'
|
||||||
import {Section} from '@/components/Section'
|
import {Section} from '@/components/ui/Section'
|
||||||
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
||||||
|
|
||||||
function ToolsSection({children, ...props}) {
|
function ToolsSection({children, ...props}) {
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {GetStaticProps} from 'next'
|
import {GetStaticProps} from 'next'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import {Card} from '@/components/Card'
|
import {Card} from '@/components/ui/Card'
|
||||||
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
||||||
import {Views} from '@/components/Views'
|
import {Views} from '@/components/ui/Views'
|
||||||
import {getAllArticles} from '@/lib/getAllArticles'
|
import {getAllArticles} from '@/lib/getAllArticles'
|
||||||
import {formatDate} from '@/lib/formatDate'
|
import {formatDate} from '@/lib/formatDate'
|
||||||
import {Article} from 'types'
|
import {Article} from 'types'
|
||||||
|
Loading…
Reference in New Issue
Block a user