Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions reference-app/src/main/resources/static/pico.min.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions reference-app/src/main/resources/templates/demo.ftlh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
<head>
<meta charset="UTF-8">
<title>Ory Hydra Reference App</title>
<link rel="stylesheet" href="/pico.min.css">
</head>
<body>
<main class="container"><article>
<h1>Ory Hydra Reference App</h1>

<p>This app implements the login, consent, and logout screens for an
Expand Down Expand Up @@ -68,5 +70,6 @@ curl -X PATCH \
</pre>
</div>
</details>
</article></main>
</body>
</html>
33 changes: 21 additions & 12 deletions reference-app/src/main/resources/templates/login.ftlh
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,33 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Log In</title>
<link rel="stylesheet" href="/pico.min.css">
</head>
<body>
<h2>Log In</h2>
<form action="/login/usernamePassword" method="post">
<input type="hidden" name="loginChallenge" value="${loginChallenge}" />
<main class="container"><article>
<h1>Log In</h1>
<p><small>Demo credentials are pre-filled. Select Log in to continue.</small></p>
<form action="/login/usernamePassword" method="post">
<input type="hidden" name="loginChallenge" value="${loginChallenge}" />

<label for="loginEmail">Email:</label>
<input type="email" name="loginEmail" placeholder="foo@bar.com" /><br>
<label for="loginPassword">Password:</label>
<input type="password" name="loginPassword" placeholder="password" /><br>
<label for="loginEmail">Email</label>
<input type="email" id="loginEmail" name="loginEmail" value="foo@bar.com" />

<label for="remember">Remember me:</label>
<input type="checkbox" id="remember" name="remember" /><br>
<label for="loginPassword">Password</label>
<input type="password" id="loginPassword" name="loginPassword" value="password" />

<input type="submit" name="submit" value="Log in" />
</form>
<label>
<input type="checkbox" id="remember" name="remember" />
Remember me
</label>

<p>${(error)!}</p>
<input type="submit" name="submit" value="Log in" />
</form>

<#if (error)?has_content>
<p>${error}</p>
</#if>
</article></main>
</body>
</html>
20 changes: 13 additions & 7 deletions reference-app/src/main/resources/templates/logout.ftlh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,21 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Log Out</title>
<link rel="stylesheet" href="/pico.min.css">
</head>
<body>
<h2>Log Out</h2>
<p>Do you want to log out ${subject}?</p>
<form action="/logout" method="post">
<input type="hidden" name="logoutChallenge" value="${logoutChallenge}" />
<main class="container"><article>
<h1>Log Out</h1>
<p>Do you want to log out ${subject}?</p>
<form action="/logout" method="post">
<input type="hidden" name="logoutChallenge" value="${logoutChallenge}" />

<input type="submit" id="confirm" name="confirm" value="Yes, log out" />
<input type="submit" id="cancel" name="cancel" value="Cancel" />
</form>
<div role="group">
<input type="submit" id="confirm" name="confirm" value="Yes, log out" />
<input type="submit" id="cancel" name="cancel" value="Cancel" class="secondary" />
</div>
</form>
</article></main>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void stopTestEnvironment() {
// because GitHub scales README images down to its ~880px column but never up: captures
// narrower than the column render 1:1, and the unstyled pages carry less dead space.
private Page newPage() {
return browser.newPage(new Browser.NewPageOptions().setViewportSize(640, 400));
return browser.newPage(new Browser.NewPageOptions().setViewportSize(576, 520));
}

@BeforeEach
Expand Down