Skip to content

feat (examples): style svelte demo #5420

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions examples/sveltekit-openai/src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
<a href="/chat">Chat</a>
<a href="/completion">Completion</a>
<a href="/structured-object">Structured Object</a>
<main>
<header class="text-center my-8">
<h1 class="text-4xl font-bold mb-4">OpenAI + SvelteKit Demo</h1>
<p class="text-gray-600">
Select a demo to explore different OpenAI integration examples:
</p>
</header>

<nav class="flex flex-col items-center gap-4 m-4">
<a
href="/chat"
class="w-full max-w-sm py-3 px-6 bg-gray-100 hover:bg-gray-200 rounded-lg text-center transition-colors duration-200"
>
Chat Demo
</a>
<a
href="/completion"
class="w-full max-w-sm py-3 px-6 bg-gray-100 hover:bg-gray-200 rounded-lg text-center transition-colors duration-200"
>
Completion Demo
</a>
<a
href="/structured-object"
class="w-full max-w-sm py-3 px-6 bg-gray-100 hover:bg-gray-200 rounded-lg text-center transition-colors duration-200"
>
Structured Object Demo
</a>
</nav>
</main>
Loading