refactor: use @ prefixed imports
This allows to get rid of the path `./../` and use a common way to import components or anything from `src/` directory. IMHO this improves readability by a mile.
This commit is contained in:
parent
bcc4219124
commit
8280fb59d6
9 changed files with 25 additions and 25 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
|
|
||||||
import { Button } from './../components/Button'
|
import { Button } from '@/components/Button'
|
||||||
import { Container } from './../components/Container'
|
import { Container } from '@/components/Container'
|
||||||
import backgroundImage from '@/images/background-call-to-action.jpg'
|
import backgroundImage from '@/images/background-call-to-action.jpg'
|
||||||
|
|
||||||
export function CallToAction() {
|
export function CallToAction() {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import Image from 'next/image'
|
import Image from 'next/image'
|
||||||
|
|
||||||
import { Container } from './../components/Container'
|
import { Container } from '@/components/Container'
|
||||||
import backgroundImage from '@/images/background-faqs.jpg'
|
import backgroundImage from '@/images/background-faqs.jpg'
|
||||||
|
|
||||||
const faqs = [
|
const faqs = [
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
|
||||||
import { Container } from './../components/Container'
|
import { Container } from '@/components/Container'
|
||||||
// import { Logo } from '@/components/Logo'
|
// import { Logo } from '@/components/Logo'
|
||||||
import { NavLink } from './../components/NavLink'
|
// import { NavLink } from '@/components/NavLink'
|
||||||
import { Button } from './../components/Button'
|
import { Button } from '@/components/Button'
|
||||||
|
|
||||||
export function Footer() {
|
export function Footer() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import Link from "next/link"
|
import Link from "next/link"
|
||||||
|
|
||||||
import { NavLink } from "./NavLink";
|
import { NavLink } from "@/components/NavLink";
|
||||||
import { Container } from "./Container"
|
import { Container } from "@/components/Container"
|
||||||
import { Button } from "./Button"
|
import { Button } from "@/components/Button"
|
||||||
|
|
||||||
export function Header() {
|
export function Header() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { Button } from './Button'
|
import { Button } from '@/components/Button'
|
||||||
import { Container } from './Container'
|
import { Container } from '@/components/Container'
|
||||||
|
|
||||||
export function Hero() {
|
export function Hero() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
|
|
||||||
import { Button } from './../components/Button'
|
import { Button } from '@/components/Button'
|
||||||
import { Container } from './../components/Container'
|
import { Container } from '@/components/Container'
|
||||||
|
|
||||||
type SwirlyDoodleProps = { className: string }
|
type SwirlyDoodleProps = { className: string }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import Image from 'next/image'
|
||||||
import { Tab } from '@headlessui/react'
|
import { Tab } from '@headlessui/react'
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
|
|
||||||
import { Container } from './../components/Container'
|
import { Container } from '@/components/Container'
|
||||||
import backgroundImage from '@/images/background-features.jpg'
|
import backgroundImage from '@/images/background-features.jpg'
|
||||||
import screenshotExpenses from '@/images/screenshots/contacts.png'
|
import screenshotExpenses from '@/images/screenshots/contacts.png'
|
||||||
import screenshotPayroll from '@/images/screenshots/contacts.png'
|
import screenshotPayroll from '@/images/screenshots/contacts.png'
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import Image, { StaticImageData } from 'next/image'
|
||||||
import { Tab } from '@headlessui/react'
|
import { Tab } from '@headlessui/react'
|
||||||
import clsx from 'clsx'
|
import clsx from 'clsx'
|
||||||
|
|
||||||
import { Container } from './Container'
|
import { Container } from '@/components/Container'
|
||||||
|
|
||||||
import screenshotContacts from '@/images/screenshots/contacts.png'
|
import screenshotContacts from '@/images/screenshots/contacts.png'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
import Head from "next/head";
|
import Head from "next/head";
|
||||||
|
|
||||||
import { Header } from "./../components/Header"
|
import { Header } from "@/components/Header"
|
||||||
import { Hero } from "./../components/Hero"
|
import { Hero } from "@/components/Hero"
|
||||||
import { CallToAction } from './../components/CallToAction'
|
import { CallToAction } from '@/components/CallToAction'
|
||||||
import { Faqs } from './../components/Faqs'
|
import { Faqs } from '@/components/Faqs'
|
||||||
import { Footer } from './../components/Footer'
|
import { Footer } from '@/components/Footer'
|
||||||
import { Pricing } from './../components/Pricing'
|
import { Pricing } from '@/components/Pricing'
|
||||||
import { PrimaryFeatures } from './../components/PrimaryFeatures'
|
import { PrimaryFeatures } from '@/components/PrimaryFeatures'
|
||||||
import { TechStack } from './../components/TechStack'
|
import { TechStack } from '@/components/TechStack'
|
||||||
import { Testimonials } from './../components/Testimonials'
|
import { Testimonials } from '@/components/Testimonials'
|
||||||
import { Environment } from './../components/Environment'
|
import { Environment } from '@/components/Environment'
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Reference in a new issue