working on popup styling with bulma

This commit is contained in:
Jack Case
2025-11-19 23:07:12 +00:00
parent bb68883781
commit 39fb3320c9
3 changed files with 90 additions and 35 deletions

View File

@@ -1,51 +1,82 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> --> <!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<!-- <script async defer src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js" type="module"></script> --> <!-- <script async defer src="https://cdn.jsdelivr.net/gh/altcha-org/altcha/dist/altcha.min.js" type="module"></script> -->
<script async src="/scripts/browser-action.js" type="module"></script> <script async src="/scripts/browser-action.js" type="module"></script>
<script async defer src="/scripts/altcha/dist/altcha.js" type="module"></script> <script async defer src="/scripts/altcha/dist/altcha.js" type="module"></script>
<link rel="stylesheet" href="/styles/bulma/bulma.min.css">
<title>Slop Farmer</title> <title>Slop Farmer</title>
</head> </head>
<body> <body>
<nav> <div id="onboarding" style="visibility: visible;" class="hero is-primary">
<button id="signup-select" type="button">sign up</button> <div class="hero-body">
<button id="login-select" type="button">log in</button> <h1 class="title">Welcome, Slop Farmer!</h1>
</nav> <p>tired of ai-generated slop articles in your search results? Sign up or log in to start reporting slop
articles and have reported slop flagged in your searches!</p>
<div id="onboarding" style="visibility: visible;"> </div>
<h1>Welcome, Slop Farmer!</h1>
<p>tired of ai-generated slop articles in your search results? Sign up or log in to start reporting slop articles
and have reported slop flagged in your searches!
</p>
</div> </div>
<div id="signup" style="visibility: collapse;"> <div class="section">
<form id="signup-form"> <nav class="tabs is-centered">
<label for="email">email</label> <ul>
<input type="email" name="email" required /> <li class="is-active"><a>sign up</a></li>
<label for="password">password</label> <li><a>log in</a></li>
<input type="password" name="password" required /> </ul>
<altcha-widget challengeurl="https://api.slopfarmer.jack-case.pro/altcha-challenge"></altcha-widget> </nav>
<button id="signup-button">sign up</button>
</form>
<h2></h2>
</div>
<div id="login" style="visibility: collapse;"> <div id="signup" style="display:block" class="box">
<h1>Log in to enable slop checking and reporting</h1> <h1 class="title">Sign Up</h1>
<form id="login-form"> <form id="signup-form">
<label for="email" id="username">username</label> <div class="field">
<input type="text" name="username" required /> <label for="email" class="label">E-Mail</label>
<label for="password" id="password">password</label> <div class="control">
<input type="password" name="password" required /> <input type="email" name="email" required class="input" />
<button id="login-button">login</button> </div>
</form> </div>
<h2 style="visibility: collapse;" id="login-status">You're logged in.</h2> <div class="field">
</div> <label for="password" class="label">Password</label>
<div class="control">
<input type="password" name="password" required class="input" />
</div>
</div>
<div class="field">
<altcha-widget challengeurl="https://api.slopfarmer.jack-case.pro/altcha-challenge"></altcha-widget>
</div>
<div class="field">
<button id="signup-button" class="button is-primary">sign up</button>
</div>
</form>
<h2></h2>
</div>
<div id="report" style="visibility: collapse;"> <div id="login" style="display:none" class="box">
<button id="report-button">Report this page</button> <h1 class="title">Log In</h1>
<h2></h2> <form id="login-form">
<div class="field">
<label for="email" id="username" class="label">E-Mail</label>
<div class="control">
<input type="text" name="username" required class="input" />
</div>
</div>
<div class="field">
<label for="password" id="password" class="label">Password</label>
<div class="control">
<input type="password" name="password" required class="input" />
</div>
</div>
<div class="field">
<button id="login-button" class="button is-primary">log in</button>
</div>
</form>
<h2 style="visibility: collapse;" id="login-status">You're logged in.</h2>
</div>
<div id="report" style="display: none" class="block">
<button id="report-button" class="button is-primary">Report this page</button>
<h2></h2>
</div>
</div> </div>
</body> </body>

21
styles/bulma/LICENSE Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2023 Jeremy Thomas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

3
styles/bulma/bulma.min.css vendored Normal file

File diff suppressed because one or more lines are too long