Taken spikes feedback into account. Removed backdrop blur anyway due to my friends feedback, added shadow gradient for better button visibility. Lmk whether or not to still keep the backdrop blur.

This commit is contained in:
Wehi
2023-05-10 15:03:29 +02:00
parent c6abf53880
commit 36b3c2f841
5 changed files with 41 additions and 105 deletions

View File

@@ -108,11 +108,8 @@ select:focus {
height: 160px; height: 160px;
margin: 0; margin: 0;
text-align: right; padding: 0;
/* Gradient shadow */
-webkit-box-shadow: inset 0px -150px 96px -85px rgba(0,0,0,0.43);
-moz-box-shadow: inset 0px -150px 96px -85px rgba(0,0,0,0.43);
box-shadow: inset 0px -150px 96px -85px rgba(0,0,0,0.43); box-shadow: inset 0px -150px 96px -85px rgba(0,0,0,0.43);
} }
@@ -126,4 +123,4 @@ select:focus {
.BottomSection { .BottomSection {
height: 140px; height: 140px;
} }
} }

View File

@@ -114,4 +114,4 @@ class App extends React.Component<Readonly<unknown>, IState> {
} }
} }
export default App export default App

View File

@@ -1,43 +1,3 @@
@keyframes background-pan {
from {
background-position: 0% center;
}
to {
background-position: -200% center;
}
}
@keyframes scale {
from,
to {
transform: scale(0);
}
50% {
transform: scale(1);
}
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(180deg);
}
}
.magic-text {
animation: background-pan 3s linear infinite;
background: linear-gradient(to right, #fff, #ffc920, #fff, #fff);
background-size: 200%;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
white-space: nowrap;
}
.RightBar { .RightBar {
position: absolute; position: absolute;
transform: translate(0%, 0%); transform: translate(0%, 0%);

View File

@@ -8,28 +8,28 @@
right: 10%; right: 10%;
top: 50%; top: 50%;
width: 20%; width: 32%;
height: 120%; height: 80%;
min-width: 357px; min-width: 357px;
padding: 0 0 100px 0;
} }
#playButton > div {
margin-bottom: 6px;
}
#playButton .BigButton { #playButton .BigButton {
height: 100%; height: 100%;
box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2); box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2);
font-size: 24px; font-size: 24px;
font-weight: 400; font-weight: 400;
width: 20%;
} }
#serverControls { #serverControls {
color: white; color: white;
text-shadow: 1px 1px 8px black; text-shadow: 1px 1px 8px black;
align-self: flex-end; }
margin-top: 10px;
margin-bottom: -10px;
}
.BottomSection .CheckboxDisplay { .BottomSection .CheckboxDisplay {
border-color: #c5c5c5; border-color: #c5c5c5;
@@ -57,8 +57,8 @@
.ServerConfig .Checkbox { .ServerConfig .Checkbox {
display: inline-grid; display: inline-grid;
margin-top: 10px; vertical-align: middle;
margin-left: 8px;
} }
.ServerLaunchButtons { .ServerLaunchButtons {
@@ -104,24 +104,8 @@
box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2); box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2);
} }
.ServerConfig { .ServerConfig .TextInputWrapper {
display: grid; display: inline-block;
height: 100px;
grid-template-columns: 1;
grid-template-rows: repeat(2, 1fr);
justify-content: flex-end;
}
.ServerConfigGrid {
display: flex;
justify-content: flex-end;
align-items: center;
}
#ServerConfigCheckbox {
margin-bottom: -10px;
margin-top: 10px;
} }
#ip { #ip {
@@ -146,4 +130,4 @@
#officialPlay { #officialPlay {
width: 40%; width: 40%;
} }
} }

View File

@@ -277,34 +277,30 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
{this.state.grasscutterEnabled && ( {this.state.grasscutterEnabled && (
<div> <div>
<div className="ServerConfig" id="serverConfigContainer"> <div className="ServerConfig" id="serverConfigContainer">
<div id="ServerConfigCheckbox"> <TextInput
<Checkbox id="ip"
id="httpsEnable" key="ip"
label={this.state.httpsLabel} placeholder={this.state.ipPlaceholder}
onChange={this.toggleHttps} onChange={this.setIp}
checked={this.state.httpsEnabled} initalValue={this.state.ip}
/> />
</div> <TextInput
<div className="ServerConfigGrid"> style={{
<TextInput width: '10%',
id="ip" }}
key="ip" id="port"
placeholder={this.state.ipPlaceholder} key="port"
onChange={this.setIp} placeholder={this.state.portPlaceholder}
initalValue={this.state.ip} onChange={this.setPort}
/> initalValue={this.state.port}
<TextInput />
style={{ <HelpButton contents={this.state.portHelpText} />
width: '10%', <Checkbox
}} id="httpsEnable"
id="port" label={this.state.httpsLabel}
key="port" onChange={this.toggleHttps}
placeholder={this.state.portPlaceholder} checked={this.state.httpsEnabled}
onChange={this.setPort} />
initalValue={this.state.port}
/>
<HelpButton contents={this.state.portHelpText} />
</div>
</div> </div>
</div> </div>
)} )}
@@ -318,7 +314,6 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
<img className="ExtrasIcon" id="extrasIcon" src={Plus} /> <img className="ExtrasIcon" id="extrasIcon" src={Plus} />
</BigButton> </BigButton>
)} )}
<BigButton onClick={this.launchServer} id="serverLaunch"> <BigButton onClick={this.launchServer} id="serverLaunch">
<img className="ServerIcon" id="serverLaunchIcon" src={Server} /> <img className="ServerIcon" id="serverLaunchIcon" src={Server} />
</BigButton> </BigButton>
@@ -326,4 +321,4 @@ export default class ServerLaunchSection extends React.Component<IProps, IState>
</div> </div>
) )
} }
} }