From fd2265becc4f4f78cfe4917a88dd02209185746a Mon Sep 17 00:00:00 2001 From: Alessandro Mazzon Date: Thu, 21 Sep 2023 23:03:12 +0200 Subject: [PATCH] chore: removed src dir --- {src/app => app}/api/creator.js | 0 {src/app => app}/components/BackgroundImage/index.tsx | 0 .../components/BondscapeLogo/BondscapeLogo.tsx | 0 {src/app => app}/components/Footer.tsx | 0 {src/app => app}/components/NavigationBar.tsx | 4 ++-- {src/app => app}/creator/login/layout.tsx | 2 +- {src/app => app}/creator/login/page.tsx | 8 ++++---- {src/app => app}/globals.css | 0 {src/app => app}/hooks/useBreakpoints.ts | 2 +- {src/app => app}/layout.tsx | 2 +- {src/app => app}/layouts/CenteredContentLayout.tsx | 0 {src/app => app}/layouts/MainLayout.tsx | 6 +++--- {src/app => app}/layouts/SectionLayout.tsx | 2 +- {src/app => app}/page.tsx | 6 +++--- {src/app => app}/privacy/page.tsx | 4 ++-- {src/app => app}/seo/index.ts | 0 {src/app => app}/terms/page.tsx | 4 ++-- {src/app => app}/utils/getPageSlur.ts | 0 {src/app => app}/utils/sizes.ts | 0 {src/app => app}/utils/utils.ts | 0 tailwind.config.ts | 4 ++-- tsconfig.json | 2 +- 22 files changed, 23 insertions(+), 23 deletions(-) rename {src/app => app}/api/creator.js (100%) rename {src/app => app}/components/BackgroundImage/index.tsx (100%) rename {src/app => app}/components/BondscapeLogo/BondscapeLogo.tsx (100%) rename {src/app => app}/components/Footer.tsx (100%) rename {src/app => app}/components/NavigationBar.tsx (90%) rename {src/app => app}/creator/login/layout.tsx (87%) rename {src/app => app}/creator/login/page.tsx (91%) rename {src/app => app}/globals.css (100%) rename {src/app => app}/hooks/useBreakpoints.ts (94%) rename {src/app => app}/layout.tsx (94%) rename {src/app => app}/layouts/CenteredContentLayout.tsx (100%) rename {src/app => app}/layouts/MainLayout.tsx (84%) rename {src/app => app}/layouts/SectionLayout.tsx (97%) rename {src/app => app}/page.tsx (96%) rename {src/app => app}/privacy/page.tsx (98%) rename {src/app => app}/seo/index.ts (100%) rename {src/app => app}/terms/page.tsx (98%) rename {src/app => app}/utils/getPageSlur.ts (100%) rename {src/app => app}/utils/sizes.ts (100%) rename {src/app => app}/utils/utils.ts (100%) diff --git a/src/app/api/creator.js b/app/api/creator.js similarity index 100% rename from src/app/api/creator.js rename to app/api/creator.js diff --git a/src/app/components/BackgroundImage/index.tsx b/app/components/BackgroundImage/index.tsx similarity index 100% rename from src/app/components/BackgroundImage/index.tsx rename to app/components/BackgroundImage/index.tsx diff --git a/src/app/components/BondscapeLogo/BondscapeLogo.tsx b/app/components/BondscapeLogo/BondscapeLogo.tsx similarity index 100% rename from src/app/components/BondscapeLogo/BondscapeLogo.tsx rename to app/components/BondscapeLogo/BondscapeLogo.tsx diff --git a/src/app/components/Footer.tsx b/app/components/Footer.tsx similarity index 100% rename from src/app/components/Footer.tsx rename to app/components/Footer.tsx diff --git a/src/app/components/NavigationBar.tsx b/app/components/NavigationBar.tsx similarity index 90% rename from src/app/components/NavigationBar.tsx rename to app/components/NavigationBar.tsx index 6891ec5..cf10564 100644 --- a/src/app/components/NavigationBar.tsx +++ b/app/components/NavigationBar.tsx @@ -1,8 +1,8 @@ "use client"; import React, { useCallback, useEffect, useState } from "react"; import Link from "next/link"; -import BondscapeLogo from "@/components/BondscapeLogo/BondscapeLogo"; -import useBreakpoints from "@/hooks/useBreakpoints"; +import BondscapeLogo from "./BondscapeLogo/BondscapeLogo"; +import useBreakpoints from "../hooks/useBreakpoints"; const NavigationBar = () => { const [isMobile, isMd, isLg, isXl] = useBreakpoints(); diff --git a/src/app/creator/login/layout.tsx b/app/creator/login/layout.tsx similarity index 87% rename from src/app/creator/login/layout.tsx rename to app/creator/login/layout.tsx index b0a7ee8..39a60ce 100644 --- a/src/app/creator/login/layout.tsx +++ b/app/creator/login/layout.tsx @@ -1,6 +1,6 @@ import React from "react"; import "../../globals.css"; -import DefaultSEO from "@/seo"; +import DefaultSEO from "../../seo"; export const metadata = { ...DefaultSEO, diff --git a/src/app/creator/login/page.tsx b/app/creator/login/page.tsx similarity index 91% rename from src/app/creator/login/page.tsx rename to app/creator/login/page.tsx index 559200b..af704dc 100644 --- a/src/app/creator/login/page.tsx +++ b/app/creator/login/page.tsx @@ -1,10 +1,10 @@ "use client"; import React from "react"; -import MainLayout from "@/layouts/MainLayout"; +import MainLayout from "../../layouts/MainLayout"; import Image from "next/image"; -import heroImage from "../../../../public/bondscape-home-bg.png"; -import overlay from "../../../../public/login-overlay-bg.png"; -import useBreakpoints from "@/hooks/useBreakpoints"; +import heroImage from "../../../public/bondscape-home-bg.png"; +import overlay from "../../../public/login-overlay-bg.png"; +import useBreakpoints from "../../hooks/useBreakpoints"; export default function Login() { const [isMobile, isMd] = useBreakpoints(); diff --git a/src/app/globals.css b/app/globals.css similarity index 100% rename from src/app/globals.css rename to app/globals.css diff --git a/src/app/hooks/useBreakpoints.ts b/app/hooks/useBreakpoints.ts similarity index 94% rename from src/app/hooks/useBreakpoints.ts rename to app/hooks/useBreakpoints.ts index 6f6d9ad..4325c93 100644 --- a/src/app/hooks/useBreakpoints.ts +++ b/app/hooks/useBreakpoints.ts @@ -1,6 +1,6 @@ import { useEffect, useState } from "react"; import { useMediaQuery } from "react-responsive"; -import { ContentWidth } from "@/utils/sizes"; +import { ContentWidth } from "../utils/sizes"; const useBreakpoints = () => { const [isBreakpointReady, setIsBreakpointReady] = useState(false); diff --git a/src/app/layout.tsx b/app/layout.tsx similarity index 94% rename from src/app/layout.tsx rename to app/layout.tsx index 3dd4146..6d90550 100644 --- a/src/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,5 @@ import React from "react"; -import Footer from "@/components/Footer"; +import Footer from "./components/Footer"; import Head from "next/head"; import "./globals.css"; diff --git a/src/app/layouts/CenteredContentLayout.tsx b/app/layouts/CenteredContentLayout.tsx similarity index 100% rename from src/app/layouts/CenteredContentLayout.tsx rename to app/layouts/CenteredContentLayout.tsx diff --git a/src/app/layouts/MainLayout.tsx b/app/layouts/MainLayout.tsx similarity index 84% rename from src/app/layouts/MainLayout.tsx rename to app/layouts/MainLayout.tsx index 6cb3673..02d057c 100644 --- a/src/app/layouts/MainLayout.tsx +++ b/app/layouts/MainLayout.tsx @@ -1,8 +1,8 @@ import React from "react"; -import NavigationBar from "@/components/NavigationBar"; -import heroImage from "../../../public/bondscape-home-bg-masked.png"; +import NavigationBar from "../components/NavigationBar"; +import heroImage from "../../public/bondscape-home-bg-masked.png"; import { StaticImport } from "next/dist/shared/lib/get-img-props"; -import BackgroundImage from "@/components/BackgroundImage"; +import BackgroundImage from "../components/BackgroundImage"; export interface MainLayoutProps { readonly backgroundImage?: boolean; diff --git a/src/app/layouts/SectionLayout.tsx b/app/layouts/SectionLayout.tsx similarity index 97% rename from src/app/layouts/SectionLayout.tsx rename to app/layouts/SectionLayout.tsx index d230715..8486faf 100644 --- a/src/app/layouts/SectionLayout.tsx +++ b/app/layouts/SectionLayout.tsx @@ -1,6 +1,6 @@ "use client"; import React, { useEffect, useState } from "react"; -import useBreakpoints from "@/hooks/useBreakpoints"; +import useBreakpoints from "../hooks/useBreakpoints"; export interface ContentBackground { /** diff --git a/src/app/page.tsx b/app/page.tsx similarity index 96% rename from src/app/page.tsx rename to app/page.tsx index 7df0f71..96284d4 100644 --- a/src/app/page.tsx +++ b/app/page.tsx @@ -1,9 +1,9 @@ -import MainLayout from "@/layouts/MainLayout"; +import MainLayout from "./layouts/MainLayout"; import React from "react"; import Image from "next/image"; import Link from "next/link"; -import mockupImage from "../../public/mockup-image-mobile.webp"; -import DefaultSEO from "@/seo"; +import mockupImage from "../public/mockup-image-mobile.webp"; +import DefaultSEO from "./seo"; export const metadata = { ...DefaultSEO, diff --git a/src/app/privacy/page.tsx b/app/privacy/page.tsx similarity index 98% rename from src/app/privacy/page.tsx rename to app/privacy/page.tsx index a0dd750..d2fdc69 100644 --- a/src/app/privacy/page.tsx +++ b/app/privacy/page.tsx @@ -1,6 +1,6 @@ import React from "react"; -import MainLayout from "@/layouts/MainLayout"; -import DefaultSEO from "@/seo"; +import MainLayout from "../layouts/MainLayout"; +import DefaultSEO from "../seo"; export const metadata = { ...DefaultSEO, diff --git a/src/app/seo/index.ts b/app/seo/index.ts similarity index 100% rename from src/app/seo/index.ts rename to app/seo/index.ts diff --git a/src/app/terms/page.tsx b/app/terms/page.tsx similarity index 98% rename from src/app/terms/page.tsx rename to app/terms/page.tsx index ecfc147..f029a56 100644 --- a/src/app/terms/page.tsx +++ b/app/terms/page.tsx @@ -1,8 +1,8 @@ // pages/TermsOfService.tsx import React from "react"; -import MainLayout from "@/layouts/MainLayout"; -import DefaultSEO from "@/seo"; +import MainLayout from "../layouts/MainLayout"; +import DefaultSEO from "../seo"; export const metadata = { ...DefaultSEO, diff --git a/src/app/utils/getPageSlur.ts b/app/utils/getPageSlur.ts similarity index 100% rename from src/app/utils/getPageSlur.ts rename to app/utils/getPageSlur.ts diff --git a/src/app/utils/sizes.ts b/app/utils/sizes.ts similarity index 100% rename from src/app/utils/sizes.ts rename to app/utils/sizes.ts diff --git a/src/app/utils/utils.ts b/app/utils/utils.ts similarity index 100% rename from src/app/utils/utils.ts rename to app/utils/utils.ts diff --git a/tailwind.config.ts b/tailwind.config.ts index 7efc9b4..576fe5d 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -2,8 +2,8 @@ import type { Config } from "tailwindcss"; const config: Config = { content: [ - "./src/components/**/*.{js,ts,jsx,tsx,mdx}", - "./src/app/**/*.{js,ts,jsx,tsx,mdx}", + "./components/**/*.{js,ts,jsx,tsx,mdx}", + "./app/**/*.{js,ts,jsx,tsx,mdx}", ], theme: { container: { diff --git a/tsconfig.json b/tsconfig.json index 1184c9a..df3c053 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -19,7 +19,7 @@ } ], "paths": { - "@/*": ["./src/app/*"] + "@/*": ["./app/*"] } }, // TODO: Remove public/creator.js from include when refactored into a react component