Skip to content
Snippets Groups Projects
Commit abc0f306 authored by mateuszmiko's avatar mateuszmiko
Browse files

Style/add tailwind typography and font

parent 06e5156b
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!7Style/add tailwind typography and font
...@@ -58,6 +58,6 @@ deploy_staging: ...@@ -58,6 +58,6 @@ deploy_staging:
- development - development
script: script:
- npm install --global vercel - npm install --global vercel
- vercel pull --yes --environment=preview --token=$VERCEL_TOKEN - vercel pull --yes --environment=production --token=$VERCEL_TOKEN
- vercel build --token=$VERCEL_TOKEN - vercel build --prod --token=$VERCEL_TOKEN
- vercel deploy --prebuilt --token=$VERCEL_TOKEN - vercel deploy --prebuilt --prod --token=$VERCEL_TOKEN
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
const nextConfig = {} const nextConfig = {
reactStrictMode: true,
experimental: {
fontLoaders: [{ loader: '@next/font/google', options: { subsets: ['latin'] } }],
},
};
module.exports = nextConfig module.exports = nextConfig;
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
"version": "0.1.0", "version": "0.1.0",
"hasInstallScript": true, "hasInstallScript": true,
"dependencies": { "dependencies": {
"@next/font": "^13.5.2",
"@types/node": "20.6.2", "@types/node": "20.6.2",
"@types/react": "18.2.21", "@types/react": "18.2.21",
"@types/react-dom": "18.2.7", "@types/react-dom": "18.2.7",
...@@ -18,6 +19,7 @@ ...@@ -18,6 +19,7 @@
"postcss": "8.4.29", "postcss": "8.4.29",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"tailwind-merge": "^1.14.0",
"tailwindcss": "3.3.3" "tailwindcss": "3.3.3"
}, },
"devDependencies": { "devDependencies": {
...@@ -1955,6 +1957,11 @@ ...@@ -1955,6 +1957,11 @@
"url": "https://github.com/sponsors/isaacs" "url": "https://github.com/sponsors/isaacs"
} }
}, },
"node_modules/@next/font": {
"version": "13.5.2",
"resolved": "https://registry.npmjs.org/@next/font/-/font-13.5.2.tgz",
"integrity": "sha512-c9EXqdXMEErMLrC71wZvpcOnNVkEEufZOO3EjgQJcKQUwPISvnkgIj9GKFIop0rX2dLNdzL3OC/4nrcAqWqUsg=="
},
"node_modules/@next/swc-darwin-arm64": { "node_modules/@next/swc-darwin-arm64": {
"version": "13.4.19", "version": "13.4.19",
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.19.tgz", "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.19.tgz",
...@@ -11623,6 +11630,15 @@ ...@@ -11623,6 +11630,15 @@
"integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
"dev": true "dev": true
}, },
"node_modules/tailwind-merge": {
"version": "1.14.0",
"resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-1.14.0.tgz",
"integrity": "sha512-3mFKyCo/MBcgyOTlrY8T7odzZFx+w+qKSMAmdFzRvqBfLlSigU6TZnlFHK0lkMwj9Bj8OYU+9yW9lmGuS0QEnQ==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/dcastil"
}
},
"node_modules/tailwindcss": { "node_modules/tailwindcss": {
"version": "3.3.3", "version": "3.3.3",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.3.tgz", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.3.3.tgz",
......
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
] ]
}, },
"dependencies": { "dependencies": {
"@next/font": "^13.5.2",
"@types/node": "20.6.2", "@types/node": "20.6.2",
"@types/react": "18.2.21", "@types/react": "18.2.21",
"@types/react-dom": "18.2.7", "@types/react-dom": "18.2.7",
...@@ -36,6 +37,7 @@ ...@@ -36,6 +37,7 @@
"postcss": "8.4.29", "postcss": "8.4.29",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"tailwind-merge": "^1.14.0",
"tailwindcss": "3.3.3" "tailwindcss": "3.3.3"
}, },
"devDependencies": { "devDependencies": {
......
import { Manrope } from '@next/font/google';
import { twMerge } from 'tailwind-merge';
import { Map } from '@/components/Map'; import { Map } from '@/components/Map';
import { FunctionalArea } from '@/components/FunctionalArea'; import { FunctionalArea } from '@/components/FunctionalArea';
const manrope = Manrope({
variable: '--font-manrope',
display: 'swap',
weight: ['400', '700'],
subsets: ['latin'],
});
export const MinervaSPA = (): JSX.Element => ( export const MinervaSPA = (): JSX.Element => (
<div className="relative"> <div className={twMerge('relative', manrope.variable)}>
<FunctionalArea /> <FunctionalArea />
<Map /> <Map />
</div> </div>
......
...@@ -43,3 +43,21 @@ embed, ...@@ -43,3 +43,21 @@ embed,
object { object {
display: inline; display: inline;
} }
@layer base {
h1 {
@apply text-xl;
}
h2 {
@apply text-base;
}
button {
@apply text-xs;
}
body {
@apply text-sm;
}
caption {
@apply text-xs;
}
}
...@@ -26,6 +26,9 @@ const config: Config = { ...@@ -26,6 +26,9 @@ const config: Config = {
'white-pearl': '#ffffff', 'white-pearl': '#ffffff',
}, },
}, },
fontFamily: {
manrope: ['var(--font-manrope)'],
},
}, },
plugins: [], plugins: [],
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment