mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 08:41:37 +00:00
Add google fonts
* add title RUA!
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@ -36,3 +36,5 @@ yarn-error.log*
|
||||
|
||||
# typescript
|
||||
*.tsbuildinfo
|
||||
|
||||
.env
|
@ -1,3 +1,4 @@
|
||||
import cn from 'classnames';
|
||||
import Link from 'next/link';
|
||||
import { FC } from 'react';
|
||||
|
||||
@ -5,7 +6,18 @@ const HeadBar: FC = () => {
|
||||
return (
|
||||
<>
|
||||
<header className="flex justify-between max-w-6xl px-6 py-6 mx-auto">
|
||||
<Link href="/">RUARUARUA</Link>
|
||||
<Link href="/" passHref>
|
||||
<a
|
||||
href=""
|
||||
className={cn(
|
||||
'font-semibold font-Aref-Ruqaa',
|
||||
'text-gray-600 text-3xl tracking-widest',
|
||||
'select-none'
|
||||
)}
|
||||
>
|
||||
RUA!
|
||||
</a>
|
||||
</Link>
|
||||
|
||||
<div></div>
|
||||
</header>
|
||||
|
20
pages/_document.tsx
Normal file
20
pages/_document.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import { Html, Head, Main, NextScript } from 'next/document';
|
||||
|
||||
export default function Document() {
|
||||
return (
|
||||
<Html>
|
||||
<Head>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" />
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Aleo&family=Aref+Ruqaa&family=Barlow:ital@0;1&family=Poppins:ital@0;1&display=swap"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
</Head>
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
}
|
@ -6,11 +6,16 @@
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
/*
|
||||
font-family: 'Aleo', serif;
|
||||
font-family: 'Aref Ruqaa', serif;
|
||||
font-family: 'Barlow', sans-serif;
|
||||
font-family: 'Poppins', sans-serif;
|
||||
*/
|
||||
|
||||
@layer base {
|
||||
body {
|
||||
@apply bg-bluish-gray dark:bg-rua-gray-900 dark:text-gray-200;
|
||||
font-family: "-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Segoe UI,Arial,Roboto,'PingFang SC',miui,'Hiragino Sans GB','Microsoft Yahei',sans-serif",
|
||||
sans-serif;
|
||||
}
|
||||
|
||||
img,
|
||||
|
@ -6,6 +6,12 @@ module.exports = {
|
||||
],
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
Aleo: ['Aleo', 'serif'],
|
||||
'Aref-Ruqaa': ['Aref Ruqaa', 'serif'],
|
||||
Barlow: ['Barlow', 'sans-serif'],
|
||||
Poppins: ['Poppins', 'sans-serif'],
|
||||
},
|
||||
colors: {
|
||||
bluish: {
|
||||
gray: 'rgba(245,247,250)',
|
||||
|
Reference in New Issue
Block a user