Skip to content

Commit

Permalink
reorganise files in generator directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Jan 1, 2024
1 parent 66d1709 commit 4a790b4
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 21 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { useFieldArray } from 'react-hook-form'
import { MdClose, MdDragIndicator } from 'react-icons/md'
import styled from 'styled-components'

import { Input } from '../../core/Input'
import { FormInput } from '../../core/FormInput'
import { IconButton } from '../../core/Button'
import { Input } from '../../../core/Input'
import { FormInput } from '../../../core/FormInput'
import { IconButton } from '../../../core/Button'

const ListContainer = styled.div`
display: grid;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { useFieldArray, useFormContext } from 'react-hook-form'
import { MdClose } from 'react-icons/md'
import styled from 'styled-components'

import { IconButton } from '../../core/Button'
import { FormInput } from '../../core/FormInput'
import { colors } from '../../../theme'
import { IconButton } from '../../../core/Button'
import { FormInput } from '../../../core/FormInput'
import { colors } from '../../../../theme'

const Pill = styled.div`
display: inline-flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { LabeledInput } from '../../../core/LabeledInput'
import { AddButton } from '../../../core/Button'
import { Divider } from '../../../core/Divider'
import { FormSection } from './FormSection'
import Keywords from '../Keywords'
import Keywords from './Keywords'

import { Skill } from '../../../../types'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { LabeledInput } from '../../../core/LabeledInput'
import { AddButton } from '../../../core/Button'
import { Divider } from '../../../core/Divider'
import { FormSection } from './FormSection'
import Highlights from '../Highlights'
import Highlights from './Highlights'

import { Work } from '../../../../types'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { LabeledInput } from '../../../core/LabeledInput'
import { AddButton } from '../../../core/Button'
import { Divider } from '../../../core/Divider'
import { FormSection } from './FormSection'
import Keywords from '../Keywords'
import Keywords from './Keywords'

import { Project } from '../../../../types'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Link from 'next/link'
import styled from 'styled-components'

import { Logo } from '../../core/Logo'
import { colors } from '../../../theme'
import { Logo } from '../core/Logo'
import { colors } from '../../theme'

const StyledHeader = styled.header`
grid-area: header;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useState, useCallback } from 'react'
import { pdfjs, Document, Page } from 'react-pdf'
import type { PDFDocumentProxy } from 'pdfjs-dist/types/src/display/api'
import styled from 'styled-components'
import { resumeAtom } from '../../../atoms/resume'
import { resumeAtom } from '../../atoms/resume'

const workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`
pdfjs.GlobalWorkerOptions.workerSrc = workerSrc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { useRouter } from 'next/router'
import styled from 'styled-components'
import { MdDragIndicator } from 'react-icons/md'

import { colors } from '../../../theme'
import { PrimaryButton, IconButton } from '../../core/Button'
import { colors } from '../../theme'
import { PrimaryButton, IconButton } from '../core/Button'

const Aside = styled.aside`
grid-area: sidebar;
Expand Down
11 changes: 4 additions & 7 deletions src/pages/generator.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import dynamic from 'next/dynamic'
import styled from 'styled-components'

import { Form } from '../components/generator/form/Form'
import { Header } from '../components/generator/layout/Header'
import { Sidebar } from '../components/generator/layout/Sidebar'
// import { Templates } from '../components/generator/templates/Templates'
import { Form } from '../components/generator/Form'
import { Header } from '../components/generator/Header'
import { Sidebar } from '../components/generator/Sidebar'

const Preview = dynamic(
async () => (await import('../components/generator/preview/Preview')).Preview,
async () => (await import('../components/generator/Preview')).Preview,
{ ssr: false }
)

Expand All @@ -28,8 +27,6 @@ export default function GeneratorPage() {
<Sidebar />
<Form />
<Preview />
{/* <Templates /> */}
{/* <Footer /> */}
</Main>
)
}

0 comments on commit 4a790b4

Please sign in to comment.