134 lines
6.3 KiB
Plaintext
134 lines
6.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en" class="h-full bg-gray-50">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="csrf-token" content={get_csrf_token()} />
|
|
<title>æternity Voting dApp</title>
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
|
|
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}></script>
|
|
</head>
|
|
<body class="h-full">
|
|
<div class="min-h-full">
|
|
<!-- Navigation -->
|
|
<nav class="bg-white shadow-sm">
|
|
<div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
|
<div class="flex h-16 justify-between">
|
|
<div class="flex">
|
|
<div class="flex flex-shrink-0 items-center">
|
|
<a href="/" class="text-2xl font-bold text-indigo-600">æVoting</a>
|
|
</div>
|
|
<div class="hidden sm:ml-6 sm:flex sm:space-x-8">
|
|
<a href="/"
|
|
class="inline-flex items-center border-b-2 border-indigo-500 px-1 pt-1
|
|
text-sm font-medium text-gray-900">
|
|
Home
|
|
</a>
|
|
<a href="/results"
|
|
class="inline-flex items-center border-b-2 border-transparent px-1 pt-1
|
|
text-sm font-medium text-gray-500 hover:border-gray-300
|
|
hover:text-gray-700">
|
|
Results
|
|
</a>
|
|
<a href="/how-it-works"
|
|
class="inline-flex items-center border-b-2 border-transparent px-1 pt-1
|
|
text-sm font-medium text-gray-500 hover:border-gray-300
|
|
hover:text-gray-700">
|
|
How It Works
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="hidden sm:ml-6 sm:flex sm:items-center">
|
|
<button id="connect-wallet"
|
|
class="rounded-md bg-indigo-600 px-3.5 py-2.5 text-sm font-semibold
|
|
text-white shadow-sm hover:bg-indigo-500 focus-visible:outline
|
|
focus-visible:outline-2 focus-visible:outline-offset-2
|
|
focus-visible:outline-indigo-600">
|
|
Connect Wallet
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Mobile menu -->
|
|
<div class="sm:hidden" id="mobile-menu">
|
|
<div class="space-y-1 pb-3 pt-2">
|
|
<a href="/"
|
|
class="block border-l-4 border-indigo-500 bg-indigo-50 py-2 pl-3 pr-4
|
|
text-base font-medium text-indigo-700">
|
|
Home
|
|
</a>
|
|
<a href="/results"
|
|
class="block border-l-4 border-transparent py-2 pl-3 pr-4 text-base
|
|
font-medium text-gray-600 hover:border-gray-300 hover:bg-gray-50
|
|
hover:text-gray-800">
|
|
Results
|
|
</a>
|
|
<a href="/how-it-works"
|
|
class="block border-l-4 border-transparent py-2 pl-3 pr-4 text-base
|
|
font-medium text-gray-600 hover:border-gray-300 hover:bg-gray-50
|
|
hover:text-gray-800">
|
|
How It Works
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- Flash Messages -->
|
|
<%= if flash = get_flash(@conn, :info) do %>
|
|
<div class="rounded-md bg-green-50 p-4 mx-auto max-w-7xl mt-4">
|
|
<div class="flex">
|
|
<div class="flex-shrink-0">
|
|
<svg class="h-5 w-5 text-green-400" viewBox="0 0 20 20" fill="currentColor">
|
|
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
|
|
</svg>
|
|
</div>
|
|
<div class="ml-3">
|
|
<p class="text-sm font-medium text-green-800"><%= flash %></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= if flash = get_flash(@conn, :error) do %>
|
|
<div class="rounded-md bg-red-50 p-4 mx-auto max-w-7xl mt-4">
|
|
<div class="flex">
|
|
<div class="flex-shrink-0">
|
|
<svg class="h-5 w-5 text-red-400" viewBox="0 0 20 20" fill="currentColor">
|
|
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd" />
|
|
</svg>
|
|
</div>
|
|
<div class="ml-3">
|
|
<p class="text-sm font-medium text-red-800"><%= flash %></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
|
|
<!-- Main Content -->
|
|
<main>
|
|
<%= @inner_content %>
|
|
</main>
|
|
|
|
<!-- Footer -->
|
|
<footer class="bg-white mt-auto">
|
|
<div class="mx-auto max-w-7xl px-6 py-12 md:flex md:items-center md:justify-between lg:px-8">
|
|
<div class="flex justify-center space-x-6 md:order-2">
|
|
<a href="https://github.com/your-repo" class="text-gray-400 hover:text-gray-500">
|
|
<span class="sr-only">GitHub</span>
|
|
<svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
|
|
<path fill-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z" clip-rule="evenodd" />
|
|
</svg>
|
|
</a>
|
|
</div>
|
|
<div class="mt-8 md:order-1 md:mt-0">
|
|
<p class="text-center text-xs leading-5 text-gray-500">
|
|
© 2024 æVoting App. Built with Phoenix Framework and æternity Blockchain.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|