mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-03 06:12:51 +00:00
big changes to the UI
This commit is contained in:
@@ -425,19 +425,9 @@ const ArchivePage = createClass({
|
|||||||
{this.renderNavItems()}
|
{this.renderNavItems()}
|
||||||
|
|
||||||
<div className="content">
|
<div className="content">
|
||||||
<div className="welcome">
|
<div className="form dataGroup">{this.renderForm()}</div>
|
||||||
<h1>Welcome to the Archive</h1>
|
<div className="resultsContainer dataGroup">
|
||||||
</div>
|
{this.renderFoundBrews()}
|
||||||
<div className="flexGroup">
|
|
||||||
<div className="form dataGroup">
|
|
||||||
{this.renderForm()}
|
|
||||||
</div>
|
|
||||||
<div className="resultsContainer dataGroup">
|
|
||||||
<div className="title">
|
|
||||||
<h2>Your search returned these results</h2>
|
|
||||||
</div>
|
|
||||||
{this.renderFoundBrews()}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -6,19 +6,20 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size:10pt;
|
font-size: 10pt;
|
||||||
color:#555;
|
color: #555;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color:#333;
|
color: #333;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background:lightgrey;
|
background: lightgrey;
|
||||||
border-radius:5px;
|
border-radius: 5px;
|
||||||
padding-inline:5px
|
padding-inline: 5px
|
||||||
}
|
}
|
||||||
|
|
||||||
*:not(input) {
|
*:not(input) {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
@@ -29,7 +30,9 @@ body {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
background-color: #2C3E50;
|
background-color: #2C3E50;
|
||||||
|
|
||||||
h1,h2,h3 {
|
h1,
|
||||||
|
h2,
|
||||||
|
h3 {
|
||||||
font-family: 'Open Sans';
|
font-family: 'Open Sans';
|
||||||
color: white;
|
color: white;
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
@@ -37,221 +40,201 @@ body {
|
|||||||
|
|
||||||
.content {
|
.content {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-rows: 20vh 1fr;
|
grid-template-columns: 500px 2fr;
|
||||||
|
background: #2C3E50;
|
||||||
|
|
||||||
.welcome {
|
.dataGroup {
|
||||||
display: grid;
|
width: 100%;
|
||||||
place-items: center;
|
|
||||||
background: url('https://i.imgur.com/MJ4YHu7.jpg');
|
|
||||||
background-size: 100%;
|
|
||||||
background-position: center;
|
|
||||||
height: 20vh;
|
|
||||||
border-bottom: 5px solid #333;
|
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 40px;
|
|
||||||
filter:drop-shadow(0 0 5px black);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.flexGroup {
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: grid;
|
background: white;
|
||||||
grid-template-columns: 500px 2fr;
|
|
||||||
background: #2C3E50;
|
|
||||||
|
|
||||||
.dataGroup {
|
&.form .brewLookup {
|
||||||
width: 100%;
|
position: relative;
|
||||||
height: 100%;
|
padding: 50px;
|
||||||
background: white;
|
|
||||||
|
|
||||||
&.form .brewLookup {
|
.formTitle {
|
||||||
position: relative;
|
color: black;
|
||||||
padding: 50px;
|
font-size: 30px;
|
||||||
|
border-bottom: 2px solid;
|
||||||
.formTitle {
|
margin: 20px 0;
|
||||||
color:black;
|
text-align: center;
|
||||||
font-size: 30px;
|
|
||||||
border-bottom: 2px solid;
|
|
||||||
margin: 20px 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.formContents {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
|
||||||
label {
|
|
||||||
margin: 10px 0;
|
|
||||||
}
|
|
||||||
input {
|
|
||||||
margin: 0 10px;
|
|
||||||
}
|
|
||||||
#searchButton {
|
|
||||||
position:absolute;
|
|
||||||
right:10px;
|
|
||||||
bottom:20px;
|
|
||||||
|
|
||||||
i {
|
|
||||||
margin-left: 10px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&.resultsContainer {
|
.formContents {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
border-left: 2px solid;
|
}
|
||||||
height: 100%;
|
|
||||||
font-family: "BookInsanityRemake";
|
|
||||||
font-size: .34cm;
|
|
||||||
|
|
||||||
.title {
|
label {
|
||||||
height: 10vh;
|
margin: 10px 0;
|
||||||
background-color: #333;
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#searchButton {
|
||||||
|
position: absolute;
|
||||||
|
right: 10px;
|
||||||
|
bottom: 20px;
|
||||||
|
|
||||||
|
i {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.resultsContainer {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
border-left: 2px solid;
|
||||||
|
height: 100%;
|
||||||
|
font-family: "BookInsanityRemake";
|
||||||
|
font-size: .34cm;
|
||||||
|
|
||||||
|
|
||||||
|
.foundBrews {
|
||||||
|
position: relative;
|
||||||
|
background-color: #2C3E50;
|
||||||
|
width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
height: 100%;
|
||||||
|
padding: 50px;
|
||||||
|
overflow-y: scroll;
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.noBrews {
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
|
color: white;
|
||||||
h2 {
|
|
||||||
font-size: 30px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.foundBrews {
|
|
||||||
position: relative;
|
&.searching {
|
||||||
background-color: #2C3E50;
|
display: grid;
|
||||||
width: 100%;
|
place-items: center;
|
||||||
max-height: 100%;
|
color: white;
|
||||||
height: 66.8vh;
|
|
||||||
padding: 50px;
|
|
||||||
overflow-y:scroll;
|
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 25px;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.noBrews {
|
h3.searchAnim::after {
|
||||||
display: grid;
|
content: "";
|
||||||
place-items: center;
|
width: max-content;
|
||||||
color: white;
|
height: 1em;
|
||||||
}
|
|
||||||
|
|
||||||
&.searching {
|
|
||||||
display: grid;
|
|
||||||
place-items: center;
|
|
||||||
color: white;
|
|
||||||
|
|
||||||
h3 { position: relative;}
|
|
||||||
h3.searchAnim::after {
|
|
||||||
content: "";
|
|
||||||
width: max-content;
|
|
||||||
height: 1em;
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 50%;
|
|
||||||
translate: 100% -50%;
|
|
||||||
animation: trailingDots 2s ease infinite;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.totalBrews {
|
|
||||||
position: fixed;
|
|
||||||
bottom: 0;
|
|
||||||
right: 17px;
|
|
||||||
font-size: 11px;
|
|
||||||
font-weight: 800;
|
|
||||||
color: white;
|
|
||||||
background-color: #333;
|
|
||||||
padding: 8px 10px;
|
|
||||||
z-index: 1000;
|
|
||||||
font-family: 'Open Sans';
|
|
||||||
}
|
|
||||||
.brewItem {
|
|
||||||
background-image: url('/assets/parchmentBackground.jpg');
|
|
||||||
width: 48%;
|
|
||||||
margin-right: 40px;
|
|
||||||
color: black;
|
|
||||||
|
|
||||||
&:nth-child(even of .brewItem) {
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
h2 {
|
|
||||||
font-size: 0.75cm;
|
|
||||||
line-height: 0.988em;
|
|
||||||
font-family: "MrEavesRemake";
|
|
||||||
font-weight: 800;
|
|
||||||
color: var(--HB_Color_HeaderText);
|
|
||||||
}
|
|
||||||
|
|
||||||
.info {
|
|
||||||
font-family: ScalySansRemake;
|
|
||||||
font-size: 1.2em;
|
|
||||||
|
|
||||||
>span {
|
|
||||||
margin-right: 12px;
|
|
||||||
line-height: 1.5em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.paginationControls {
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
right: 0;
|
||||||
translate: -50%;
|
top: 50%;
|
||||||
width: auto;
|
translate: 100% -50%;
|
||||||
display: grid;
|
animation: trailingDots 2s ease infinite;
|
||||||
place-items: center;
|
}
|
||||||
grid-template-areas: "previousPage currentPage nextPage";
|
}
|
||||||
grid-template-columns: 50px 1fr 50px;
|
|
||||||
|
|
||||||
.pages {
|
|
||||||
grid-area: currentPage;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
justify-content:space-evenly;
|
|
||||||
text-align: center;
|
|
||||||
padding: 5px 8px;
|
|
||||||
|
|
||||||
.pageNumber {
|
.totalBrews {
|
||||||
color: white;
|
position: fixed;
|
||||||
font-family: Open Sans;
|
bottom: 0;
|
||||||
font-weight: 900;
|
right: 17px;
|
||||||
text-underline-position: under;
|
font-size: 11px;
|
||||||
margin-inline:10px;
|
font-weight: 800;
|
||||||
cursor: pointer;
|
color: white;
|
||||||
|
background-color: #333;
|
||||||
|
padding: 8px 10px;
|
||||||
|
z-index: 1000;
|
||||||
|
font-family: 'Open Sans';
|
||||||
|
}
|
||||||
|
|
||||||
&.currentPage {
|
.brewItem {
|
||||||
color:gold;
|
background-image: url('/assets/parchmentBackground.jpg');
|
||||||
text-decoration:underline;
|
width: 48%;
|
||||||
pointer-events:none;
|
margin-right: 40px;
|
||||||
}
|
color: black;
|
||||||
|
|
||||||
&.firstPage {
|
&:nth-child(even of .brewItem) {
|
||||||
margin-right:-5px;
|
margin-right: 0;
|
||||||
}
|
|
||||||
&.lastPage {
|
|
||||||
margin-left:-5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
button {
|
|
||||||
width:max-content;
|
|
||||||
border-radius:5px;
|
|
||||||
|
|
||||||
&.previousPage {
|
|
||||||
grid-area: previousPage;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.nextPage {
|
|
||||||
grid-area: nextPage;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
h2 {
|
||||||
visibility: hidden;
|
font-size: 0.75cm;
|
||||||
|
line-height: 0.988em;
|
||||||
|
font-family: "MrEavesRemake";
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--HB_Color_HeaderText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info {
|
||||||
|
font-family: ScalySansRemake;
|
||||||
|
font-size: 1.2em;
|
||||||
|
|
||||||
|
>span {
|
||||||
|
margin-right: 12px;
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.paginationControls {
|
||||||
|
position: absolute;
|
||||||
|
left: 50%;
|
||||||
|
translate: -50%;
|
||||||
|
width: auto;
|
||||||
|
display: grid;
|
||||||
|
place-items: center;
|
||||||
|
grid-template-areas: "previousPage currentPage nextPage";
|
||||||
|
grid-template-columns: 50px 1fr 50px;
|
||||||
|
|
||||||
|
.pages {
|
||||||
|
grid-area: currentPage;
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-evenly;
|
||||||
|
text-align: center;
|
||||||
|
padding: 5px 8px;
|
||||||
|
|
||||||
|
.pageNumber {
|
||||||
|
color: white;
|
||||||
|
font-family: Open Sans;
|
||||||
|
font-weight: 900;
|
||||||
|
text-underline-position: under;
|
||||||
|
margin-inline: 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
&.currentPage {
|
||||||
|
color: gold;
|
||||||
|
text-decoration: underline;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.firstPage {
|
||||||
|
margin-right: -5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.lastPage {
|
||||||
|
margin-left: -5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
width: max-content;
|
||||||
|
border-radius: 5px;
|
||||||
|
|
||||||
|
&.previousPage {
|
||||||
|
grid-area: previousPage;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.nextPage {
|
||||||
|
grid-area: nextPage;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
hr {
|
||||||
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -259,17 +242,20 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@keyframes trailingDots {
|
@keyframes trailingDots {
|
||||||
0%,32% {
|
|
||||||
content:'.';
|
0%,
|
||||||
|
32% {
|
||||||
|
content: '.';
|
||||||
}
|
}
|
||||||
|
|
||||||
33%, 65% {
|
33%,
|
||||||
content:'..';
|
65% {
|
||||||
|
content: '..';
|
||||||
}
|
}
|
||||||
|
|
||||||
66%,100% {
|
66%,
|
||||||
content:'...';
|
100% {
|
||||||
|
content: '...';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user