Skip to content

Commit

Permalink
Merge pull request #1 from dev-generator/folder-restructure
Browse files Browse the repository at this point in the history
Folder restructure
  • Loading branch information
chiefpansancolt authored May 16, 2021
2 parents f8bbbb4 + 9cb470a commit a18b840
Show file tree
Hide file tree
Showing 22 changed files with 56 additions and 36 deletions.
5 changes: 3 additions & 2 deletions jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/components/*": ["components/*"],
"@/data/*": ["data/*"]
"@/components/*": ["src/components/*"],
"@/data/*": ["src/data/*"],
"@/styles/*": ["src/styles/*"]
}
}
}
18 changes: 0 additions & 18 deletions pages/_app.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion data/faqs.js → src/data/faqs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const faqs = [
const faqs = [
{
id: 1,
question: 'Is this secure?',
Expand Down
2 changes: 1 addition & 1 deletion data/features.js → src/data/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ClipboardListIcon,
} from '@heroicons/react/outline'

export const features = [
const features = [
{
name: 'Enter Details',
description: 'Add your data when it is applicable for a specific file to generate.',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const navigation = {
const navigation = {
features: [
{ name: 'Features', href: '/#features' },
{ name: 'Ruby Gems', href: '/#ruby-gems' },
Expand Down
2 changes: 1 addition & 1 deletion data/generators.js → src/data/generators.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const generators = [
const generators = [
{
id: 'ruby-gems',
name: 'Ruby Gems',
Expand Down
2 changes: 1 addition & 1 deletion data/navigation.js → src/data/navigation.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const navigation = [
const navigation = [
{ name: 'The Team', href: '/#the-team' },
{ name: 'Features', href: '/#features' },
{ name: 'Ruby Gems', href: '/#ruby-gems' },
Expand Down
2 changes: 1 addition & 1 deletion data/team-members.js → src/data/team-members.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const people = [
const people = [
{
name: 'Christopher Pezza',
role: 'Lead Developer',
Expand Down
46 changes: 46 additions & 0 deletions src/pages/_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import '@/styles/globals.css'
import Head from 'next/head'
import Router from 'next/router'
import ProgressBar from '@badrap/bar-of-progress'

const progress = new ProgressBar({
size: 2,
color: '#22D3EE',
className: 'bar-of-progress',
delay: 100,
})

// this fixes safari jumping to the bottom of the page
// when closing the search modal using the `esc` key
if (typeof window !== 'undefined') {
progress.start()
progress.finish()
}

Router.events.on('routeChangeStart', progress.start)
Router.events.on('routeChangeComplete', () => {
progress.finish()
window.scrollTo(0, 0)
})
Router.events.on('routeChangeError', progress.finish)

function App({ Component, pageProps }) {
return (
<>
<Head>
<meta
name="description"
content="Generate files for various linters, base files, etc. without having to manually create or remember every available input that has to go into a file."
/>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="icon" href="/favicon.ico" />
</Head>
<Component {...pageProps} />
</>
)
}

export default App
9 changes: 0 additions & 9 deletions pages/_document.js → src/pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ export default class MyDocument extends Document {
return (
<Html lang="en">
<Head>
<meta
name="description"
content="Generate files for various linters, base files, etc. without having to manually create or remember every available input that has to go into a file."
/>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="icon" href="/favicon.ico" />
<script
async
src={`https://www.googletagmanager.com/gtag/js?id=${process.env.NEXT_PUBLIC_GOOGLE_ANALYTICS}`}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const colors = require('tailwindcss/colors');

module.exports = {
mode: 'jit',
purge: ['./pages/**/*.js', './components/**/*.js'],
purge: ['./src/pages/**/*.js', './src/components/**/*.js'],
darkMode: false,
theme: {
colors: {
Expand Down

0 comments on commit a18b840

Please sign in to comment.