Skip to content

Commit

Permalink
chore: removed src dir, now using default app dir (#8)
Browse files Browse the repository at this point in the history
## Description

Removed src dir in favor of app directory

<!-- Add a description of the changes that this PR introduces and the
files that
are the most critical to review. -->

---

### Author Checklist

*All items are required. Please add a note to the item if the item is
not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
  in the PR title
- [ ] targeted the correct branch
- [ ] provided a link to the relevant issue or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable
and please add
your handle next to the items reviewed if you only reviewed selected
items.*

I have...

- [ ] confirmed the
correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [ ] confirmed all author checklist items have been addressed
  • Loading branch information
Alessandro Mazzon authored Sep 21, 2023
1 parent f91bf15 commit 69fec18
Show file tree
Hide file tree
Showing 23 changed files with 24 additions and 24 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import "../../globals.css";
import DefaultSEO from "@/seo";
import DefaultSEO from "../../seo";

export const metadata = {
...DefaultSEO,
Expand Down
8 changes: 4 additions & 4 deletions src/app/creator/login/page.tsx → app/creator/login/page.tsx
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const useBreakpoints = () => {
return;
}
setIsBreakpointReady(true);
}, [isMobile, isMd, isLg, isXl]);
}, [isMobile, isMd, isLg, isXl, isBreakpointReady]);

return [isMobile, isMd, isLg, isXl, isBreakpointReady];
};
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.tsx → app/layout.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/app/layouts/MainLayout.tsx → app/layouts/MainLayout.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {
/**
Expand Down
6 changes: 3 additions & 3 deletions src/app/page.tsx → app/page.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/app/privacy/page.tsx → app/privacy/page.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/app/terms/page.tsx → app/terms/page.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"dev": "next",
"build": "next build",
"start": "npm run build && next start"
"start": "yarn build && next start"
},
"dependencies": {
"@types/node": "20.6.1",
Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
}
],
"paths": {
"@/*": ["./src/app/*"]
"@/*": ["./app/*"]
}
},
// TODO: Remove public/creator.js from include when refactored into a react component
Expand Down

0 comments on commit 69fec18

Please sign in to comment.