Skip to content

Commit

Permalink
varela
Browse files Browse the repository at this point in the history
  • Loading branch information
adnjoo committed May 26, 2024
1 parent ae0798c commit 21b83f3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 6 additions & 0 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
@tailwind components;
@tailwind utilities;

/* Fonts */
.radix-themes {
--default-font-family: var(--font-varela-round);
}

/* Framer Motion */
.framer-pill {
display: flex;
overflow-x: hidden;
Expand Down
11 changes: 9 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
import type { Metadata } from 'next';
import { Varela_Round } from 'next/font/google';
import { Theme as RadixTheme } from '@radix-ui/themes';
import '@radix-ui/themes/styles.css';
import Footer from '@/components/Footer';
import Navbar from '@/components/Navbar';
import './globals.css';

const varelaRound = Varela_Round({
subsets: ['latin'],
weight: ['400'],
variable: '--font-varela-round',
})

export const metadata: Metadata = {
title: "drew's site",
description: 'Generated by create next app',
Expand All @@ -16,8 +23,8 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang='en' suppressHydrationWarning>
<body>
<html lang='en' suppressHydrationWarning className={varelaRound.variable}>
<body >
<RadixTheme accentColor='indigo' grayColor='sand' radius='large'>
<Navbar />
<main className='min-h-screen'>{children}</main>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const sitePages = [

const Navbar = () => {
return (
<div className='flex flex-row gap-8 justify-center'>
<div className='flex flex-row gap-8 justify-center pt-4 sm:pt-8'>
{sitePages.map((page) => (
<Link
href={page.href}
Expand Down

0 comments on commit 21b83f3

Please sign in to comment.