mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 18:45:42 +00:00
Moved layout components into layouts dir
This commit is contained in:
parent
8672675a52
commit
4dd5e30f81
@ -1,10 +1,10 @@
|
|||||||
import {ReactNode} from 'react'
|
import {ReactNode} from 'react'
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import {usePathname} from 'next/navigation'
|
import {usePathname} from 'next/navigation'
|
||||||
import {Container} from './Container'
|
import {Container} from '@/components/Container'
|
||||||
import {formatDate} from '@/lib/formatDate'
|
import {formatDate} from '@/lib/formatDate'
|
||||||
import {Prose} from './Prose'
|
import {Prose} from '@/components/Prose'
|
||||||
import {Views} from './Views'
|
import {Views} from '@/components/Views'
|
||||||
|
|
||||||
type ArticleLayout = {
|
type ArticleLayout = {
|
||||||
children?: ReactNode
|
children?: ReactNode
|
@ -1,6 +1,6 @@
|
|||||||
import {ReactNode} from 'react'
|
import {ReactNode} from 'react'
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
import {Container} from './Container'
|
import {Container} from '@/components/Container'
|
||||||
|
|
||||||
type SimpleLayout = {
|
type SimpleLayout = {
|
||||||
title: string
|
title: string
|
@ -1,7 +1,7 @@
|
|||||||
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 {SimpleLayout} from '@/components/SimpleLayout'
|
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
||||||
import {Card} from '@/components/Card'
|
import {Card} from '@/components/Card'
|
||||||
import {CardGroup} from '@/components/CardGroup'
|
import {CardGroup} from '@/components/CardGroup'
|
||||||
import {numberFormat} from '@/lib/numberFormat'
|
import {numberFormat} from '@/lib/numberFormat'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
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/Card'
|
||||||
import {SimpleLayout} from '@/components/SimpleLayout'
|
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
||||||
import {SocialLink} from '@/components/SocialLink'
|
import {SocialLink} from '@/components/SocialLink'
|
||||||
import {StarIcon} from '@/components/icons/StarIcon'
|
import {StarIcon} from '@/components/icons/StarIcon'
|
||||||
import {ForkIcon} from '@/components/icons/ForkIcon'
|
import {ForkIcon} from '@/components/icons/ForkIcon'
|
||||||
|
@ -2,7 +2,7 @@ import Head from 'next/head'
|
|||||||
|
|
||||||
import {Card} from '@/components/Card'
|
import {Card} from '@/components/Card'
|
||||||
import {Section} from '@/components/Section'
|
import {Section} from '@/components/Section'
|
||||||
import {SimpleLayout} from '@/components/SimpleLayout'
|
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
||||||
|
|
||||||
function ToolsSection({children, ...props}) {
|
function ToolsSection({children, ...props}) {
|
||||||
return (
|
return (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {ArticleLayout} from '@/components/ArticleLayout'
|
import {ArticleLayout} from '@/components/layouts/ArticleLayout'
|
||||||
import {createSlug} from '@/lib/createSlug'
|
import {createSlug} from '@/lib/createSlug'
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {ArticleLayout} from '@/components/ArticleLayout'
|
import {ArticleLayout} from '@/components/layouts/ArticleLayout'
|
||||||
import {createSlug} from '@/lib/createSlug'
|
import {createSlug} from '@/lib/createSlug'
|
||||||
|
|
||||||
export const meta = {
|
export const meta = {
|
||||||
|
@ -2,7 +2,7 @@ import {GetStaticProps} from 'next'
|
|||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
|
|
||||||
import {Card} from '@/components/Card'
|
import {Card} from '@/components/Card'
|
||||||
import {SimpleLayout} from '@/components/SimpleLayout'
|
import {SimpleLayout} from '@/components/layouts/SimpleLayout'
|
||||||
import {getAllArticles} from '@/lib/getAllArticles'
|
import {getAllArticles} from '@/lib/getAllArticles'
|
||||||
import {formatDate} from '@/lib/formatDate'
|
import {formatDate} from '@/lib/formatDate'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user