Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
ac62a413
Unverified
Commit
ac62a413
authored
Jul 18, 2023
by
hoyyeva
Committed by
GitHub
Jul 18, 2023
Browse files
Merge pull request #103 from jmorganca/web-update
website content and design update
parents
f12df8d7
d1f89778
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
44 deletions
+64
-44
web/app/download/page.tsx
web/app/download/page.tsx
+14
-16
web/app/download/signup.tsx
web/app/download/signup.tsx
+3
-3
web/app/header.tsx
web/app/header.tsx
+24
-0
web/app/page.tsx
web/app/page.tsx
+23
-25
No files found.
web/app/download/page.tsx
View file @
ac62a413
import
Header
from
'
../header
'
import
Downloader
from
'
./downloader
'
import
Signup
from
'
./signup
'
...
...
@@ -26,22 +27,19 @@ export default async function Download() {
}
return
(
<
main
className
=
'flex min-h-screen max-w-2xl flex-col p-4 lg:p-24 items-center mx-auto'
>
<
img
src
=
'/ollama.png'
className
=
'w-16 h-auto'
/>
<
section
className
=
'my-12 text-center'
>
<
h2
className
=
'my-2 max-w-md text-3xl tracking-tight'
>
Downloading Ollama
</
h2
>
<
h3
className
=
'text-sm text-neutral-500'
>
Problems downloading?
{
'
'
}
<
a
href
=
{
asset
.
browser_download_url
}
className
=
'underline'
>
Try again
</
a
>
</
h3
>
<
Downloader
url
=
{
asset
.
browser_download_url
}
/>
</
section
>
<
section
className
=
'max-w-sm flex flex-col w-full items-center border border-neutral-200 rounded-xl px-8 pt-8 pb-2'
>
<
p
className
=
'text-lg leading-tight text-center mb-6 max-w-[260px]'
>
Sign up for updates
</
p
>
<>
<
Header
/>
<
main
className
=
'flex min-h-screen max-w-6xl flex-col py-20 px-16 lg:p-32 items-center mx-auto'
>
<
img
src
=
'/ollama.png'
className
=
'w-16 h-auto'
/>
<
section
className
=
'mt-12 mb-8 text-center'
>
<
h2
className
=
'my-2 max-w-md text-3xl tracking-tight'
>
Downloading...
</
h2
>
<
h3
className
=
'text-base text-neutral-500 mt-12 max-w-[16rem]'
>
While Ollama downloads, sign up to get notified of new updates.
</
h3
>
<
Downloader
url
=
{
asset
.
browser_download_url
}
/>
</
section
>
<
Signup
/>
</
sectio
n
>
</
main
>
</
mai
n
>
</>
)
}
web/app/download/signup.tsx
View file @
ac62a413
...
...
@@ -28,7 +28,7 @@ export default function Signup() {
return
false
}
}
className
=
'flex self-stretch flex-col gap-3 h-32'
className
=
'flex self-stretch flex-col gap-3 h-32
md:mx-40 lg:mx-72
'
>
<
input
required
...
...
@@ -37,13 +37,13 @@ export default function Signup() {
onChange
=
{
e
=>
setEmail
(
e
.
target
.
value
)
}
type
=
'email'
placeholder
=
'your@email.com'
className
=
'b
g
-neutral-
1
00 rounded-lg px-4 py-2 focus:outline-none placeholder-neutral-
5
00'
className
=
'b
order border
-neutral-
2
00 rounded-lg px-4 py-2 focus:outline-none placeholder-neutral-
3
00'
/>
<
input
type
=
'submit'
value
=
'Get updates'
disabled
=
{
submitting
}
className
=
'bg-black text-white disabled:text-neutral-200 disabled:bg-neutral-700 rounded-l
g
px-4 py-2 focus:outline-none cursor-pointer'
className
=
'bg-black text-white disabled:text-neutral-200 disabled:bg-neutral-700 rounded-
ful
l px-4 py-2 focus:outline-none cursor-pointer'
/>
{
success
&&
<
p
className
=
'text-center text-sm'
>
You
'
re signed up for updates
</
p
>
}
</
form
>
...
...
web/app/header.tsx
0 → 100644
View file @
ac62a413
const
navigation
=
[
{
name
:
'
Github
'
,
href
:
'
https://github.com/jmorganca/ollama
'
},
{
name
:
'
Download
'
,
href
:
'
/download
'
},
]
export
default
function
Header
()
{
return
(
<
header
className
=
"absolute inset-x-0 top-0 z-50"
>
<
nav
className
=
"mx-auto flex items-center justify-between px-10 py-4"
>
<
a
className
=
"flex-1 font-bold"
href
=
"/"
>
Ollama
</
a
>
<
div
className
=
"flex space-x-8"
>
{
navigation
.
map
((
item
)
=>
(
<
a
key
=
{
item
.
name
}
href
=
{
item
.
href
}
className
=
"text-sm leading-6 text-gray-900"
>
{
item
.
name
}
</
a
>
))
}
</
div
>
</
nav
>
</
header
>
)
}
\ No newline at end of file
web/app/page.tsx
View file @
ac62a413
import
{
AiFillApple
}
from
'
react-icons/ai
'
import
models
from
'
../../models.json
'
import
Header
from
'
./header
'
export
default
async
function
Home
()
{
return
(
<
main
className
=
'flex min-h-screen max-w-2xl flex-col p-4 lg:p-24'
>
<
img
src
=
'/ollama.png'
className
=
'w-16 h-auto'
/>
<
section
className
=
'my-4'
>
<
p
className
=
'my-3 max-w-md'
>
<
a
className
=
'underline'
href
=
'https://github.com/jmorganca/ollama'
>
Ollama
</
a
>
{
'
'
}
is a tool for running large language models, currently for macOS with Windows and Linux coming soon.
<
br
/>
<
br
/>
<
a
href
=
'/download'
>
<
button
className
=
'bg-black text-white text-sm py-2 px-3 rounded-lg flex items-center gap-2'
>
<
AiFillApple
className
=
'h-auto w-5 relative -top-px'
/>
Download for macOS
</
button
>
</
a
>
</
p
>
</
section
>
<
section
className
=
'my-4'
>
<
h2
className
=
'mb-4 text-lg'
>
Example models you can try running:
</
h2
>
{
models
.
map
(
m
=>
(
<
div
className
=
'my-2 grid font-mono'
key
=
{
m
.
name
}
>
<
code
className
=
'py-0.5'
>
ollama run
{
m
.
name
}
</
code
>
<>
<
Header
/>
<
main
className
=
'flex min-h-screen max-w-6xl flex-col py-20 px-16 md:p-32 items-center mx-auto'
>
<
img
src
=
'/ollama.png'
className
=
'w-16 h-auto'
/>
<
section
className
=
'my-12 text-center'
>
<
div
className
=
'flex flex-col space-y-2'
>
<
h2
className
=
'md:max-w-[18rem] mx-auto my-2 text-3xl tracking-tight'
>
Portable large language models
</
h2
>
<
h3
className
=
'md:max-w-xs mx-auto text-base text-neutral-500'
>
Bundle a model’s weights, configuration, prompts, data and more into self-contained packages that run anywhere.
</
h3
>
</
div
>
))
}
</
section
>
</
main
>
<
div
className
=
'mx-auto flex flex-col space-y-4 mt-12'
>
<
a
href
=
'/download'
className
=
'md:mx-10 lg:mx-14 bg-black text-white rounded-full px-4 py-2 focus:outline-none cursor-pointer'
>
Download
</
a
>
<
p
className
=
'text-neutral-500 text-sm '
>
Available for macOS with Apple Silicon
<
br
/>
Windows
&
Linux support coming soon.
</
p
>
</
div
>
</
section
>
</
main
>
</>
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment