Skip to content

Commit e68fa3e

Browse files
authored
Merge pull request #20 from balickim/adsylabs-framer
framer in iframe
2 parents e038fee + 7f4847a commit e68fa3e

23 files changed

+12
-1152
lines changed

next.config.js

+1-29
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,3 @@
1-
const nextConfig = {
2-
async redirects() {
3-
return [
4-
{
5-
source: '/',
6-
destination: 'https://adsylabs.framer.website/',
7-
permanent: true,
8-
},
9-
]
10-
},
11-
reactStrictMode: true,
12-
swcMinify: true,
13-
images: {
14-
domains: ['uploadthing.com'],
15-
remotePatterns: [
16-
{
17-
protocol: 'https',
18-
hostname: 'images.clerk.dev',
19-
},
20-
],
21-
},
22-
experimental: {
23-
esmExternals: false,
24-
},
25-
i18n: {
26-
locales: ['pl'],
27-
defaultLocale: 'pl',
28-
},
29-
};
1+
const nextConfig = { };
302

313
module.exports = nextConfig;

src/pages/_app.tsx

+3-55
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1-
import { ReactElement, ReactNode, useState } from 'react';
1+
import { ReactElement, ReactNode } from 'react';
22
import { NextPage } from 'next';
33
import type { AppType } from 'next/dist/shared/lib/utils';
44
import type { AppProps } from 'next/app';
55
import Head from 'next/head';
6-
import { Analytics } from '@vercel/analytics/react';
7-
import { ClerkProvider } from '@clerk/nextjs';
8-
import { useRouter } from 'next/router';
9-
import { Toaster } from 'react-hot-toast';
10-
import { ReactQueryDevtools } from '@tanstack/react-query-devtools';
116

127
import 'styles/main.css';
138
import '@uploadthing/react/styles.css';
14-
import { twConfig } from 'utils/helpers/tailwind';
15-
import { pl as clerkPl } from 'locale/clerk/pl';
16-
import pl from 'locale/pl.json';
179
import { api } from 'utils/api';
18-
import { isBrowser } from 'utils/helpers';
19-
import { IntlProvider } from 'react-intl';
20-
import { MetaPixelScript } from 'components/Common/externalScripts';
2110

2211
export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
2312
getLayout?: (page: ReactElement) => ReactNode;
@@ -27,58 +16,17 @@ type AppPropsWithLayout = AppProps & {
2716
Component: NextPageWithLayout;
2817
};
2918

30-
const messages = {
31-
pl,
32-
};
33-
3419
const App: AppType = ({ Component, pageProps }: AppPropsWithLayout) => {
35-
const { push, events, locale } = useRouter();
36-
const [ loading, setLoading ] = useState(false);
37-
isBrowser() && events.on('routeChangeStart', () => setLoading(true));
38-
isBrowser() && events.on('routeChangeComplete', () => setLoading(false));
39-
isBrowser() && events.on('routeChangeError', () => setLoading(false));
40-
41-
const getLayout = Component.getLayout ?? ((page) => page);
4220
return (
4321
<>
44-
<style jsx global>{`body a button { cursor: ${loading ? 'wait !important' : 'unset'}}`}</style>
4522
<Head>
46-
<title>Adsylabs - automatyzujemy współprace marketingowe</title>
23+
<title>Adsylabs</title>
4724
<meta name="viewport" content="width=device-width, initial-scale=1" />
48-
<meta
49-
name="description"
50-
content="Sprawdź jak automatyzujemy zatrudnianie i zarządzanie sprawdzonymi specjalistami marketingu. Nie znajdziemy kandydata? Nie płacisz."
51-
/>
5225
<link rel="icon" href="/favicon.ico" />
5326
<meta name="theme-color" content="#000000" />
5427
</Head>
5528

56-
<MetaPixelScript />
57-
<Analytics />
58-
<Toaster/>
59-
60-
<ClerkProvider
61-
localization={clerkPl}
62-
appearance={{
63-
variables: {
64-
colorPrimary: twConfig?.theme?.colors?.primary,
65-
},
66-
}}
67-
navigate={(to) => push(to)}
68-
{...pageProps}
69-
>
70-
{getLayout(
71-
// @ts-ignore
72-
<IntlProvider locale={locale} messages={messages[locale]}>
73-
<Component {...pageProps} />
74-
</IntlProvider>
75-
)}
76-
{process.env.NODE_ENV !== 'production' && (
77-
<div className="hidden md:block">
78-
<ReactQueryDevtools initialIsOpen={false} />
79-
</div>
80-
)}
81-
</ClerkProvider>
29+
<Component {...pageProps} />
8230
</>
8331
);
8432
};

src/pages/_document.tsx

-43
This file was deleted.

src/pages/acc/clerk.tsx

-56
This file was deleted.

src/pages/admin-panel/index.tsx

-15
This file was deleted.

src/pages/api/clerk.ts

-26
This file was deleted.

src/pages/api/trpc/[trpc].ts

-19
This file was deleted.

src/pages/api/uploadthing.ts

-9
This file was deleted.

src/pages/dashboard/community/[id].tsx

-16
This file was deleted.

src/pages/dashboard/index.tsx

-16
This file was deleted.

src/pages/dashboard/settings.tsx

-16
This file was deleted.

0 commit comments

Comments
 (0)