Skip to content
Snippets Groups Projects
Commit 2ea1a24b authored by Woojong Nam's avatar Woojong Nam
Browse files

init project

parent 3c404ab8
No related merge requests found
Pipeline #900 failed with stages
<div class="col-main">
<form method="POST" action="{}">
<div class="form-group">
<input type="hidden" value="{}" name="img_id">
<input class="form-control btn" name="btn_skip" type="submit" value="Skip">
<input class="form-control btn btn-primary" name="btn_fluck" type="submit" value="Fluck">
</div>
</form>
</div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/css/style.css">
<title>Catflucks</title>
</head>
<body>
<h1>Welcome to Catflucks</h1>
<div class="feature-cat">
<h3>Recently flucked</h3>
<!-- present most recently flucked cat -->
<img src="{}" alt="{}" width=150>
</div>
<div class="col-main">
<h3>Log in</h3>
<form method="POST" action="/cgi-bin/splash.py">
<div class="form-group">
<label for="username">Username:</label>
<input class="form-control" type="text" name="username">
<label for="password">Password:</label>
<input class="form-control" type="password" name="password">
<input class="form-control btn btn-primary" type="submit" name="btn_login" value="Enter">
</div>
</form>
<div class="msg"><p>{}</p></div>
<div><a href="/cgi-bin/register.py">Register</a></div>
</div>
<div class="feature-cat">
<h3>Most flucked</h3>
<!-- present the most often flucked cat -->
<img src="{}" alt="{}" width=150>
</div>
<!-- THINK:
- What is unusual about this register form?
- What are the implications of that?
- How might you help a user who has forgotten their password?
- FEEL FREE TO IMPROVE THIS FORM!
-->
<div>
<h3>Register</h3>
<form method="POST" action="/cgi-bin/register.py">
<div class="form-group">
<label for="username">Username:</label>
<input type="text" name="username" required>
<label for="password">Password:</label>
<input type="password" name="password" required>
<label for="email">Email:</label>
<input type="email" name="email" required>
</div>
<div class="form-group">
<label for="first">First name:</label>
<input type="text" name="first" placeholder="First name">
<label for="last">Last name:</label>
<input type="text" name="last" placeholder="Last name">
</div>
<div class="form-group">
<input type="submit" name="btn_register">
</div>
</form>
<div class="msg"><p>{}</p></div>
</div>
<div class="col-main">
<p>You are viewing a random image of a cat.</p>
<img src="{}" alt="{}" width=500>
</div>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment