Skip to content

Commit

Permalink
clean up fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
amozoss committed Aug 16, 2023
1 parent aad80ab commit 65b3de0
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 74 deletions.
34 changes: 32 additions & 2 deletions app/layout.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,47 @@
import '@/styles/tailwind.css'
import { Inter } from 'next/font/google'
import localFont from 'next/font/local'
import clsx from 'clsx'

import { ThemeProvider } from '@/components/theme-provider'
import { Navigation } from '@/components/Navigation'
import Navbar from '@/components/Navbar'
import { Hero as HeroWrap } from '@/components/Hero.client'
import { Hero } from '@/components/Hero'

import '@/styles/tailwind.css'

const inter = Inter({
subsets: ['latin'],
display: 'swap',
variable: '--font-inter',
})

// Use local version of Lexend so that we can use OpenType features
const lexend = localFont({
src: '../src/fonts/lexend.woff2',
display: 'swap',
variable: '--font-lexend',
})

export const metadata = {
title: {
template: '%s - Storj Docs',
default: 'Storj Docs',
},
description: 'Make the world your data center',
}

export default function RootLayout({
// Layouts must accept a children prop.
// This will be populated with nested layouts or pages
children,
}) {
return (
<html lang="en" suppressHydrationWarning>
<html
lang="en"
className={clsx('h-full antialiased', inter.variable, lexend.variable)}
suppressHydrationWarning
>
<head />
<body className="bg-white dark:bg-slate-900">
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
Expand Down
Binary file removed public/fonts/Inter-italic.var.woff2
Binary file not shown.
Binary file removed public/fonts/Inter-roman.var.woff2
Binary file not shown.
File renamed without changes.
File renamed without changes.
23 changes: 0 additions & 23 deletions src/styles/fonts.css

This file was deleted.

47 changes: 0 additions & 47 deletions src/styles/prism.css

This file was deleted.

2 changes: 0 additions & 2 deletions src/styles/tailwind.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
@import 'tailwindcss/base';
@import './fonts.css';
@import './prism.css';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
.dark {
Expand Down

0 comments on commit 65b3de0

Please sign in to comment.