From f08c050e578101de11723fd797f15773bb8c4b89 Mon Sep 17 00:00:00 2001 From: Eva Ho Date: Wed, 19 Jul 2023 10:19:24 -0400 Subject: [PATCH] fix page transitions flickering --- web/app/download/page.tsx | 4 +++- web/app/header.tsx | 27 ++++++++++++++------------- web/app/page.tsx | 10 +++++----- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/web/app/download/page.tsx b/web/app/download/page.tsx index 3b82199a..4bdfb8d5 100644 --- a/web/app/download/page.tsx +++ b/web/app/download/page.tsx @@ -1,3 +1,5 @@ +import Image from 'next/image' + import Header from '../header' import Downloader from './downloader' import Signup from './signup' @@ -30,7 +32,7 @@ export default async function Download() { <>
- + ollamaIcon

Downloading...

diff --git a/web/app/header.tsx b/web/app/header.tsx index 55f16de1..2c0830ee 100644 --- a/web/app/header.tsx +++ b/web/app/header.tsx @@ -1,24 +1,25 @@ +import Link from "next/link" + const navigation = [ - { name: 'Discord', href: 'https://discord.gg/MrfB5FbNWN' }, - { name: 'GitHub', href: 'https://github.com/jmorganca/ollama' }, + { name: 'Github', href: 'https://github.com/jmorganca/ollama' }, { name: 'Download', href: '/download' }, ] -export default function Header() { +export default function Header() { return ( -
-
) -} +} \ No newline at end of file diff --git a/web/app/page.tsx b/web/app/page.tsx index b41ad0ea..9f7ea06a 100644 --- a/web/app/page.tsx +++ b/web/app/page.tsx @@ -1,6 +1,6 @@ -import { AiFillApple } from 'react-icons/ai' +import Image from 'next/image' +import Link from 'next/link' -import models from '../../models.json' import Header from './header' export default async function Home() { @@ -8,7 +8,7 @@ export default async function Home() { <>
- + ollamaIcon

Portable large language models

@@ -17,9 +17,9 @@ export default async function Home() {

- + Download - +

Available for macOS with Apple Silicon
Windows & Linux support coming soon.