0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 14:22:52 +00:00

big changes to the UI

This commit is contained in:
Víctor Losada Hernández
2024-05-22 20:10:54 +02:00
parent 54efc18ad4
commit 133295c225
2 changed files with 199 additions and 223 deletions

View File

@@ -425,22 +425,12 @@ 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>
<div className="flexGroup">
<div className="form dataGroup">
{this.renderForm()}
</div>
<div className="resultsContainer dataGroup"> <div className="resultsContainer dataGroup">
<div className="title">
<h2>Your search returned these results</h2>
</div>
{this.renderFoundBrews()} {this.renderFoundBrews()}
</div> </div>
</div> </div>
</div> </div>
</div>
); );
}, },
}); });

View File

@@ -8,6 +8,7 @@ body {
small { small {
font-size: 10pt; font-size: 10pt;
color: #555; color: #555;
a { a {
color: #333; color: #333;
} }
@@ -29,33 +30,15 @@ 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;
} }
.content { .content {
display: grid;
grid-template-rows: 20vh 1fr;
.welcome {
display: grid;
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%;
display: grid; display: grid;
grid-template-columns: 500px 2fr; grid-template-columns: 500px 2fr;
background: #2C3E50; background: #2C3E50;
@@ -81,12 +64,15 @@ body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
label { label {
margin: 10px 0; margin: 10px 0;
} }
input { input {
margin: 0 10px; margin: 0 10px;
} }
#searchButton { #searchButton {
position: absolute; position: absolute;
right: 10px; right: 10px;
@@ -106,22 +92,13 @@ body {
font-family: "BookInsanityRemake"; font-family: "BookInsanityRemake";
font-size: .34cm; font-size: .34cm;
.title {
height: 10vh;
background-color: #333;
display: grid;
place-items: center;
h2 {
font-size: 30px;
}
}
.foundBrews { .foundBrews {
position: relative; position: relative;
background-color: #2C3E50; background-color: #2C3E50;
width: 100%; width: 100%;
max-height: 100%; max-height: 100%;
height: 66.8vh; height: 100%;
padding: 50px; padding: 50px;
overflow-y: scroll; overflow-y: scroll;
@@ -140,7 +117,10 @@ body {
place-items: center; place-items: center;
color: white; color: white;
h3 { position: relative;} h3 {
position: relative;
}
h3.searchAnim::after { h3.searchAnim::after {
content: ""; content: "";
width: max-content; width: max-content;
@@ -165,6 +145,7 @@ body {
z-index: 1000; z-index: 1000;
font-family: 'Open Sans'; font-family: 'Open Sans';
} }
.brewItem { .brewItem {
background-image: url('/assets/parchmentBackground.jpg'); background-image: url('/assets/parchmentBackground.jpg');
width: 48%; width: 48%;
@@ -174,6 +155,7 @@ body {
&:nth-child(even of .brewItem) { &:nth-child(even of .brewItem) {
margin-right: 0; margin-right: 0;
} }
h2 { h2 {
font-size: 0.75cm; font-size: 0.75cm;
line-height: 0.988em; line-height: 0.988em;
@@ -229,11 +211,13 @@ body {
&.firstPage { &.firstPage {
margin-right: -5px; margin-right: -5px;
} }
&.lastPage { &.lastPage {
margin-left: -5px; margin-left: -5px;
} }
} }
} }
button { button {
width: max-content; width: max-content;
border-radius: 5px; border-radius: 5px;
@@ -257,19 +241,21 @@ body {
} }
} }
} }
}
@keyframes trailingDots { @keyframes trailingDots {
0%,32% {
0%,
32% {
content: '.'; content: '.';
} }
33%, 65% { 33%,
65% {
content: '..'; content: '..';
} }
66%,100% { 66%,
100% {
content: '...'; content: '...';
} }
} }