-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from gokberksahin/adds-jinja-support
updates requirements.txt with Jina library
- Loading branch information
Showing
3 changed files
with
53 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet"> | ||
</head> | ||
<body class="bg-gray-100 h-screen"> | ||
<div class="container mx-auto p-8"> | ||
<div class="max-w-md mx-auto bg-white rounded-lg overflow-hidden md:max-w-lg"> | ||
<div class="md:flex"> | ||
<div class="w-full p-4"> | ||
<div class="relative"> | ||
<h1 class="text-2xl font-bold text-gray-700 mb-2">Welcome to the Home Page</h1> | ||
{% if is_authenticated %} | ||
<form action="/submit" method="post" class="pt-2"> | ||
{% else %} | ||
<form action="/login" method="get" class="pt-2"> | ||
{% endif %} | ||
<div class="mb-4"> | ||
<label class="block text-gray-700 text-sm font-bold mb-2" for="text_field"> | ||
Enter a sentence | ||
</label> | ||
<input type="text" name="text_field" id="text_field" | ||
class="shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" | ||
placeholder="Enter text"> | ||
</div> | ||
<div class="flex justify-end"> | ||
<button type="submit" | ||
class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded focus:outline-none focus:shadow-outline"> | ||
{% if is_authenticated %} | ||
Submit | ||
{% else %} | ||
Log in with Spotify | ||
{% endif %} | ||
</button> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |