mirror of
https://github.com/mudler/LocalAI.git
synced 2025-01-20 11:39:18 +00:00
66ee4afb95
* feat(welcome): add simple welcome page * feat(api): add 404 handling
59 lines
2.5 KiB
HTML
59 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{.Title}}</title>
|
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Roboto:wght@400;500&display=swap" rel="stylesheet">
|
|
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css">
|
|
<style>
|
|
body {
|
|
font-family: 'Inter', sans-serif;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body class="bg-black text-white">
|
|
|
|
<div class="flex flex-col min-h-screen">
|
|
|
|
{{template "views/partials/navbar" .}}
|
|
|
|
<div class="container mx-auto px-4 flex-grow">
|
|
<div class="header text-center py-12">
|
|
<h1 class="text-5xl font-bold">Welcome to your LocalAI instance!</h1>
|
|
<div class="mt-6">
|
|
<!-- <a href="/" aria-label="HomePage" alt="HomePage">
|
|
<img class="mx-auto w-1/4 h-auto" src="https://github.com/go-skynet/LocalAI/assets/2420543/0966aa2a-166e-4f99-a3e5-6c915fc997dd" alt="LocalAI Logo">
|
|
</a>
|
|
-->
|
|
</div>
|
|
<p class="mt-4 text-lg">The FOSS alternative to OpenAI, Claude, ...</p>
|
|
<a href="https://localai.io" target="_blank" class="mt-4 inline-block bg-blue-500 text-white py-2 px-4 rounded transition duration-300 ease-in-out hover:bg-blue-700"><i class="fas fa-book-reader pr-2"></i>Documentation</a>
|
|
</div>
|
|
|
|
<div class="models mt-12">
|
|
<h2 class="text-center text-3xl font-semibold">Installed models</h2>
|
|
<p class="text-center mt-4 text-xl">We have {{len .ModelsConfig}} pre-loaded models available.</p>
|
|
<ul class="mt-8">
|
|
{{ range .ModelsConfig }}
|
|
<li class="border border-gray-600 p-4 rounded mb-4">
|
|
<p class="font-bold"><i class="fas fa-brain pr-2"></i>{{.Name}}</p>
|
|
{{ if .Usage }}
|
|
<div class="text-sm bg-gray-800 text-gray-300 p-2 rounded mt-2"><code>{{.Usage}}</code></div>
|
|
{{ end }}
|
|
{{ if .Description }}
|
|
<p class="mt-2 text-gray-400">{{.Description}}</p>
|
|
{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
{{template "views/partials/footer" .}}
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|