Added a basic form to the login page, stay tuned for actual functionality
This commit is contained in:
parent
fbf666fea9
commit
90f3a4021b
|
@ -1,3 +1,4 @@
|
|||
<?php
|
||||
# - # - # - # - # - # - # - #
|
||||
# #
|
||||
# ~chan #
|
||||
|
@ -7,6 +8,7 @@
|
|||
# - # - # - # - # - # - # - #
|
||||
|
||||
# this is such a lonely file...
|
||||
?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
19
css/main.css
19
css/main.css
|
@ -1,3 +1,22 @@
|
|||
:root {
|
||||
--bg-color: #b3e5fc;
|
||||
--fg-color: #82b3c9;
|
||||
--text-color: #000000;
|
||||
--border-color: #000000;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: monospace;
|
||||
background-color: var(--bg-color);
|
||||
}
|
||||
|
||||
/* stuff for input's like the login and post forms */
|
||||
form.input-form {
|
||||
}
|
||||
|
||||
/* not sure if this is the best way to select this but... */
|
||||
form.input-form table tbody tr td:first-child {
|
||||
border: 1px solid var(--border-color);
|
||||
background-color: var(--fg-color);
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
# - # - # - # - # - # - # - #
|
||||
# #
|
||||
# ~chan #
|
||||
# - #
|
||||
# by stilbruch #
|
||||
# #
|
||||
# - # - # - # - # - # - # - #
|
||||
|
||||
// if a login was submitted
|
||||
if($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||
|
||||
}
|
||||
|
||||
$path = $_SERVER['DOCUMENT_ROOT'];
|
||||
include($path . '/core/header.php');
|
||||
?>
|
||||
|
||||
<form action="login.php" class="input-form">
|
||||
<table>
|
||||
<tr>
|
||||
<td><b>username:</b></td>
|
||||
<td>
|
||||
<input name="user" type="text">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><b>password:</b></td>
|
||||
<td>
|
||||
<input name="pass" type="password">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
include($path . '/core/footer.php');
|
||||
# the end...
|
||||
?>
|
Loading…
Reference in New Issue