| <!DOCTYPE html>
|
| <html lang="en">
|
| <head>
|
| <meta charset="UTF-8">
|
| <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| <title>View Note</title>
|
| <script src="https://cdn.tailwindcss.com"></script>
|
| <script>
|
| tailwind.config = {
|
| theme: {
|
| extend: {
|
| spacing: {
|
| '18': '4.5rem',
|
| },
|
| }
|
| }
|
| }
|
| </script>
|
| </head>
|
| <body class="bg-white min-h-screen">
|
| <div class="container mx-auto px-4 py-8 sm:py-12">
|
| <div class="max-w-xl mx-auto bg-white rounded-lg shadow-sm border border-gray-200 p-5 sm:p-8">
|
| <div class="flex flex-col sm:flex-row sm:justify-between sm:items-center mb-6">
|
| <h1 class="text-2xl font-bold text-black mb-2 sm:mb-0">Note #{{ note.code }}</h1>
|
| <span class="text-sm text-gray-600">Created: {{ note.created_at.strftime('%Y-%m-%d %H:%M') }}</span>
|
| </div>
|
|
|
| <div class="border-t border-gray-200 pt-5">
|
| <div class="prose max-w-none text-black">
|
| {{ content | safe }}
|
| </div>
|
| </div>
|
|
|
| <div class="mt-8 pt-5 border-t border-gray-200">
|
| <a href="/" class="inline-flex items-center text-black hover:text-gray-700 font-medium transition-colors duration-200">
|
| <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
| <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18" />
|
| </svg>
|
| Back to Notepad
|
| </a>
|
| </div>
|
| </div>
|
| </div>
|
| </body>
|
| </html> |