mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
feat(frontend/blog) font, lighthouse improve
This commit is contained in:
1 parent
7e0b015cbc
commit
fd4bdb4a6f
4 files changed
+13
-6
No files matched your search
@@ -29,14 +29,12 @@ function BlogPostCard({ post }: Props) {
|
|||||||
>
|
>
|
||||||
{ pic_url !== '' && <div className={ `w-full overflow-visible` }>
|
{ pic_url !== '' && <div className={ `w-full overflow-visible` }>
|
||||||
<Image
|
<Image
|
||||||
// as={NextImage}
|
|
||||||
isZoomed
|
isZoomed
|
||||||
isBlurred
|
isBlurred
|
||||||
alt={ 'cover picture' }
|
alt={ 'cover picture' }
|
||||||
src={ pic_url }
|
src={ pic_url }
|
||||||
className={ `h-80 w-full object-cover` }
|
className={ `h-80 w-full object-cover` }
|
||||||
width={ `100%` }
|
width={ `100%` }
|
||||||
// removeWrapper
|
|
||||||
></Image>
|
></Image>
|
||||||
</div> }
|
</div> }
|
||||||
|
|
||||||
@@ -44,7 +42,7 @@ function BlogPostCard({ post }: Props) {
|
|||||||
<div className={ `flex flex-row justify-between` }>
|
<div className={ `flex flex-row justify-between` }>
|
||||||
<div className={ `mx-2 mt-2` }>
|
<div className={ `mx-2 mt-2` }>
|
||||||
<Chip className={ `mb-2` } radius={ `sm` } color={ `secondary` }
|
<Chip className={ `mb-2` } radius={ `sm` } color={ `secondary` }
|
||||||
variant={ `flat` }>{ category }</Chip>
|
variant={ `solid` }>{ category }</Chip>
|
||||||
<p className={ `text-4xl font-bold` }> { title }</p>
|
<p className={ `text-4xl font-bold` }> { title }</p>
|
||||||
<p className={ `text-xl` }> { sub_title }</p>
|
<p className={ `text-xl` }> { sub_title }</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,3 +1,13 @@
|
|||||||
|
@import "lxgw-wenkai-webfont";
|
||||||
|
|
||||||
@tailwind base;
|
@tailwind base;
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "LXGW WenKai", sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre, code {
|
||||||
|
font-family: "LXGW WenKai Mono", sans-serif;
|
||||||
|
}
|
||||||
+1
-3
@@ -1,11 +1,9 @@
|
|||||||
import type { Metadata } from 'next';
|
import type { Metadata } from 'next';
|
||||||
import { Inter } from 'next/font/google';
|
|
||||||
import './globals.css';
|
import './globals.css';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
import { ThemeProvider as NextThemesProvider } from 'next-themes';
|
||||||
import Navbar from '@/components/Navbar';
|
import Navbar from '@/components/Navbar';
|
||||||
|
|
||||||
const inter = Inter({ subsets: [ 'latin' ] });
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: 'Lumither\'s site',
|
title: 'Lumither\'s site',
|
||||||
@@ -19,7 +17,7 @@ export default function RootLayout({
|
|||||||
}>) {
|
}>) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
<body className={ inter.className }>
|
<body>
|
||||||
<NextThemesProvider attribute="class" defaultTheme="dark">
|
<NextThemesProvider attribute="class" defaultTheme="dark">
|
||||||
<Navbar />
|
<Navbar />
|
||||||
{ children }
|
{ children }
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"@nextui-org/react": "^2.3.5",
|
"@nextui-org/react": "^2.3.5",
|
||||||
"axios": "^1.6.8",
|
"axios": "^1.6.8",
|
||||||
"framer-motion": "^11.1.7",
|
"framer-motion": "^11.1.7",
|
||||||
|
"lxgw-wenkai-webfont": "^1.7.0",
|
||||||
"next": "14.2.2",
|
"next": "14.2.2",
|
||||||
"next-themes": "^0.3.0",
|
"next-themes": "^0.3.0",
|
||||||
"react": "^18",
|
"react": "^18",
|
||||||
|
|||||||
Reference in new issue
Block a user