Compare commits

..

4 commits

Author SHA1 Message Date
ro
37c5b6b28f
quick layout fix for restore backup ui
restore from backup screen was a bit wonky because the forms where
running together, so threw in some breaks so it lays properly.
2024-11-08 11:37:31 -06:00
ro
eadbbc59ae Merge pull request '[draft] Make init fresh page more responsive' (#118) from xarvh/fipamo:responsive-init-fresh into develop
Reviewed-on: https://koodu.h-i.works///projects/fipamo/pulls/118
Reviewed-by: ro
2024-11-08 18:28:57 +01:00
f88b088b50 separate and clean up atomic css 2024-11-06 18:57:27 +01:00
aa449b12b2 Make init fresh page more responsive 2024-10-29 17:31:23 +01:00
6 changed files with 132 additions and 33 deletions

View file

@ -0,0 +1,72 @@
/*
* Atomic CSS
*
* Small, reusable classes
*/
/*
* Padding
*/
.p1 { padding: 5px; }
.pt1 { padding-top: 5px; }
.pl1 { padding-left: 5px; }
.pr1 { padding-right: 5px; }
.pb1 { padding-bottom: 5px; }
.p2 { padding: 10px; }
.pt2 { padding-top: 10px; }
.pl2 { padding-left: 10px; }
.pr2 { padding-right: 10px; }
.pb2 { padding-bottom: 10px; }
/*
* Margin
*/
.mt1 { margin-top: 5px; }
.ml1 { margin-left: 5px; }
.mr1 { margin-right: 5px; }
.mb1 { margin-bottom: 5px; }
.mt2 { margin-top: 10px; }
.ml2 { margin-left: 10px; }
.mr2 { margin-right: 10px; }
.mb2 { margin-bottom: 10px; }
/*
* Layout
*/
.row {
display: flex;
}
.col {
display: flex;
flex-direction: column;
}
.items-center {
display: flex;
align-items: center;
}
.justify-center {
display: flex;
justify-content: flex;
}
.grow {
flex-grow: 1;
}
/*
* Borders and rounding
*/
.rounded {
overflow: hidden;
border-radius: 5px;
}

View file

@ -15,7 +15,7 @@ input[type="email"],
input[type="password"],
input[type="text"] {
border: 0;
border-radius: 5px;
/*border-radius: 5px;*/
font: 18px var(--base-type);
display: inline-block;
}

View file

@ -6,10 +6,9 @@ section.restore-fresh,
section.restore-backup {
margin: 15% auto;
padding: 10px;
width: 500px;
max-width: 500px;
border-radius: 5px;
display: grid;
grid-template-columns: 28.5% 1fr;
display: flex;
gap: 10px;
visibility: visible;
}
@ -60,16 +59,11 @@ section.password-reset form input {
/* SITE RESTORE */
section.restore-fresh form button {
padding: 10px 5px;
width: 82%;
}
section.restore-fresh form input {
/*section.restore-fresh form input {
height: 30px;
padding: 5px;
margin-bottom: 10px;
}
}*/
section.restore-backup form button {
padding: 10px 5px;
@ -85,20 +79,13 @@ section.restore-backup form input {
/* RESPONSIVE */
@media only screen and (max-width: 500px) {
section.login,
section.password-reset,
section.restore-fresh,
section.restore-backup {
width: 97%;
}
}
@media only screen and (max-width: 375px) {
section.login,
section.password-reset,
section.restore-fresh,
section.restore-backup {
grid-template-columns: 1fr;
flex-direction: column;
margin: 10px auto;
}
section.login img,
@ -108,3 +95,22 @@ section.restore-backup form input {
width: 50px;
}
}
.form-label {
height: 30px;
width: 90px;
margin-right: 1px;
font-weight: bold;
background: var(--secondary);
color: var(--primary);
}
.form-input {
height: 30px;
}
.form-button {
padding: 10px 5px;
width: 100%;
}

View file

@ -1,3 +1,4 @@
@import url("atomic.css");
@import url("colors.css");
@import url("forms.css");
@import url("typography.css");

View file

@ -1,15 +1,35 @@
<div>
<a href="/dashboard">
<img alt="fipamo logo" class="logo-medium" src="/assets/images/global/fipamo-logo-secondary.svg"/>
<img alt="fipamo logo" class="logo-medium mr2" src="/assets/images/global/fipamo-logo-secondary.svg"/>
</a>
</div>
<form id="init-form" method="POST" onsubmit="return false;">
<label class="inline">handle</label><input type="text" class="inline" name="new_member_handle" id="new_member_handle" placeholder="handle"/>
<label class="inline">email</label><input type="text" class="inline" name="new_member_email" id="new_member_email" placeholder="email"/>
<label class="inline">password</label><input type="password" class="inline" name="new_member_pass" id="new_member_pass" placeholder="password"/>
<label class="inline">confirm</label><input type="password" class="inline" name="new_member_pass2" id="new_member_pass2" placeholder="password confirm"/>
<label class="inline">site title</label><input type="text" class="inline" name="new_member_title" id="new_member_title" placeholder="title"/>
<button id="init-blog" data-action='blog-init' type='submit'>SET UP YOUR SITE</button>
<br/><br/>
<button class="init-option" id="init-switch-restore">RESTORE FROM BACKUP</button>
<label class="items-center rounded mb2">
<span class="form-label p1 items-center">Handle</span>
<input class="form-input p1 grow" type="text" name="new_member_handle" id="new_member_handle" placeholder="handle"/>
</label>
<label class="items-center rounded mb2">
<span class="form-label p1 items-center">Email</span>
<input class="form-input p1 grow" type="text" name="new_member_email" id="new_member_email" placeholder="email"/>
</label>
<label class="items-center rounded mb2">
<span class="form-label p1 items-center">Password</span>
<input class="form-input p1 grow" type="password" name="new_member_pass" id="new_member_pass" placeholder="password"/>
</label>
<label class="items-center rounded mb2">
<span class="form-label p1 items-center">Confirm</span>
<input class="form-input p1 grow" type="password" name="new_member_pass2" id="new_member_pass2" placeholder="password confirm"/>
</label>
<label class="items-center rounded mb2">
<span class="form-label p1 items-center">Site title</span>
<input class="form-input p1 grow" type="text" name="new_member_title" id="new_member_title" placeholder="title"/>
</label>
<button id="init-blog" class="form-button mb2" data-action='blog-init' type='submit'>SET UP YOUR SITE</button>
<button class="init-option form-button" id="init-switch-restore">RESTORE FROM BACKUP</button>
</form>

View file

@ -4,15 +4,15 @@
</a>
</div>
<form id="init-restore" method="POST">
<label class="inline">handle</label><input type="text" class="inline" name="restore_member_handle" id="restore_member_handle" placeholder="handle"/>
<label class="inline">password</label><input type="password"class="inline" name="restore_member_pass" id="restore_member_pass" placeholder="password"/>
<label class="inline">handle</label><input type="text" class="inline" name="restore_member_handle" id="restore_member_handle" placeholder="handle"/><br />
<label class="inline">password</label><input type="password"class="inline" name="restore_member_pass" id="restore_member_pass" placeholder="password"/><br />
<label class="inline">previous</label><input type="text" class="inline" name="restore_former_url" id="restore_former_url" placeholder="previous site url"/>
<div>
<label>Grab your content backup</label>
<label>Grab your content backup</label><br />
<input id="backup-content-upload" type="file" name="backup-content-upload" placeholder="Content Archive"/>
</div>
<div>
<label>Grab your file backup</label>
<label>Grab your file backup</label><br />
<input id="backup-files-upload" type="file" name="backup-files-upload" placeholder="File Archive"/>
</div>
<br/><br/>