Compare commits
No commits in common. "82b954af2e9fd2c693b139a8ad93ad145c9ff969" and "5b8e8017ca7254ed877e5b03949239534d154af4" have entirely different histories.
82b954af2e
...
5b8e8017ca
1
main.go
1
main.go
@ -21,7 +21,6 @@ func main() {
|
||||
r.Get("/", ctrlrs.StaticTemplate("home.gohtml", "tailwind.gohtml"))
|
||||
r.Get("/contact", ctrlrs.StaticTemplate("contact.gohtml", "tailwind.gohtml"))
|
||||
r.Get("/faq", ctrlrs.FAQ("faq.gohtml", "tailwind.gohtml"))
|
||||
r.Get("/signup", ctrlrs.StaticTemplate("signup.gohtml", "tailwind.gohtml"))
|
||||
r.NotFound(notFoundHandler)
|
||||
fmt.Println("Starting the server on :3000...")
|
||||
http.ListenAndServe(":3000", r)
|
||||
|
||||
@ -1,43 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
{{template "head" .}}
|
||||
<body class="min-h-screen bg-gray-100">
|
||||
{{template "header".}}
|
||||
<main class="px-6">
|
||||
<div class="py-12 flex justify-center">
|
||||
<div class="px-8 py-8 bg-white rounded shadow">
|
||||
<h1 class="pt-4 pb-8 text-center text-3xl font-bold text-gray-900">
|
||||
Sign Up!
|
||||
</h1>
|
||||
<form action="/signup" method="post">
|
||||
<div>
|
||||
<label for="signupEmail" class="text-sm font-semibold text-gray-800">Email Address</label>
|
||||
<input name="email" id="signupEmail" type="email" placeholder="Email address" required autocomplete="email"
|
||||
class="w-full px-3 py-2 boarder boarder-gray-300 placeholder-gray-500 text-gray-800 rounded"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<label for="signupPassword" class="text-sm font-semibold text-gray-800">Password</label>
|
||||
<input name="password" id="signupPassword" type="password" placeholder="password" required
|
||||
class="w-full px-3 py-2 boarder boarder-gray-300 placeholder-gray-500 text-gray-800 rounded"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<button type="submit" class="w-full py-4 px-2 bg-indigo-600 hover:bg-indigo-700 text-white rounded font-bold text-lg">Sign up</button>
|
||||
</div>
|
||||
<div class="py-2 w-full flex justify-between">
|
||||
<p class="text-xs text-gray-500">
|
||||
Already have an account?
|
||||
<a href="/signin" class="underline">Sign in</a>
|
||||
</p>
|
||||
<p class="text-xs text-gray-500">
|
||||
<a href="/reset-pw" class="underline">Forgot your password?</a>
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
{{template "footer" .}}
|
||||
</body>
|
||||
</html>
|
||||
@ -17,7 +17,7 @@
|
||||
</div>
|
||||
<div class="space-x-4">
|
||||
<a href="#">Sign in</a>
|
||||
<a href="/signup" clss="px-4 py-2 bg-blue-700 hover:bg-blue-600 rounded">Sign up</a>
|
||||
<a href="#" clss="px-4 py-2 bg-blue-700 hover:bg-blue-600 rounded">Sign up</a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user