fukt a lot but wip
This commit is contained in:
parent
493e7bcfd5
commit
1991574b21
2568
client/assets/mnml.logo.text.svg
Normal file
2568
client/assets/mnml.logo.text.svg
Normal file
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 95 KiB |
@ -3,16 +3,25 @@
|
|||||||
|
|
||||||
div {
|
div {
|
||||||
padding-right: 1em;
|
padding-right: 1em;
|
||||||
|
// display: flex;
|
||||||
|
// flex-flow: column;
|
||||||
|
line-height: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
// text-transform: uppercase;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 2.5em;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 3em;
|
height: 2.5em;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -75,10 +75,6 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
border-top: 0;
|
border-top: 0;
|
||||||
border: 0.1em solid #222;
|
border: 0.1em solid #222;
|
||||||
&:not(:last-child) {
|
|
||||||
border-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
@ -93,6 +89,10 @@
|
|||||||
display: inline;
|
display: inline;
|
||||||
margin: 0 1em;
|
margin: 0 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 0 0.5em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,10 +117,6 @@ section {
|
|||||||
grid-gap: 1em;
|
grid-gap: 1em;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
button {
|
|
||||||
border-radius: 0.25em;
|
|
||||||
// height: 3em;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.sub {
|
&.sub {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
|
|||||||
@ -129,7 +129,7 @@ button, input {
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
border-radius: 0.5em;
|
border-radius: 0;
|
||||||
line-height: 2em;
|
line-height: 2em;
|
||||||
padding-right: 0.1em;
|
padding-right: 0.1em;
|
||||||
padding-left: 0.1em;
|
padding-left: 0.1em;
|
||||||
@ -261,15 +261,6 @@ figure.gray {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
|
||||||
button {
|
|
||||||
height: 2.5em;
|
|
||||||
// border-radius: 0.1em;
|
|
||||||
border: none;
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.options {
|
.options {
|
||||||
button {
|
button {
|
||||||
&.highlight {
|
&.highlight {
|
||||||
@ -279,7 +270,6 @@ header {
|
|||||||
}
|
}
|
||||||
|
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -152,11 +152,9 @@ class AccountStatus extends Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<section class='account top' onClick={tlClick}>
|
<section class='account top' onClick={tlClick}>
|
||||||
<div>
|
|
||||||
{subInfo()}
|
{subInfo()}
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
<label for="email">Email Settings:</label>
|
<h3>Email</h3>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Recovery Email</dt>
|
<dt>Recovery Email</dt>
|
||||||
<dd>{email ? email.email : 'No email set'}</dd>
|
<dd>{email ? email.email : 'No email set'}</dd>
|
||||||
@ -174,6 +172,7 @@ class AccountStatus extends Component {
|
|||||||
<button onClick={() => sendSetEmail(emailState)}>Update</button>
|
<button onClick={() => sendSetEmail(emailState)}>Update</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
<h3>Password</h3>
|
||||||
<label for="current">Password:</label>
|
<label for="current">Password:</label>
|
||||||
<input
|
<input
|
||||||
class="login-input"
|
class="login-input"
|
||||||
@ -208,6 +207,7 @@ class AccountStatus extends Component {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
<h3>Other</h3>
|
||||||
<figure>
|
<figure>
|
||||||
<figcaption>spawn new construct</figcaption>
|
<figcaption>spawn new construct</figcaption>
|
||||||
<button onClick={() => sendConstructSpawn()} type="submit">
|
<button onClick={() => sendConstructSpawn()} type="submit">
|
||||||
|
|||||||
@ -10,6 +10,7 @@ const addState = connect(
|
|||||||
function receiveState(state) {
|
function receiveState(state) {
|
||||||
const {
|
const {
|
||||||
ws,
|
ws,
|
||||||
|
authenticated,
|
||||||
account,
|
account,
|
||||||
game,
|
game,
|
||||||
instance,
|
instance,
|
||||||
@ -17,6 +18,7 @@ const addState = connect(
|
|||||||
} = state;
|
} = state;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
authenticated,
|
||||||
account,
|
account,
|
||||||
game,
|
game,
|
||||||
instance,
|
instance,
|
||||||
@ -28,6 +30,7 @@ const addState = connect(
|
|||||||
function Controls(args) {
|
function Controls(args) {
|
||||||
const {
|
const {
|
||||||
game,
|
game,
|
||||||
|
authenticated,
|
||||||
account,
|
account,
|
||||||
instance,
|
instance,
|
||||||
nav,
|
nav,
|
||||||
@ -38,6 +41,7 @@ function Controls(args) {
|
|||||||
|
|
||||||
if (game) return <GameCtrl />;
|
if (game) return <GameCtrl />;
|
||||||
if (instance) return <InstanceCtrl />;
|
if (instance) return <InstanceCtrl />;
|
||||||
|
if (!authenticated) return false;
|
||||||
if (nav === 'play' || nav === 'shop' || nav === 'reshape' || !nav) return <PlayCtrl />
|
if (nav === 'play' || nav === 'shop' || nav === 'reshape' || !nav) return <PlayCtrl />
|
||||||
if (nav === 'team' || nav === 'account') return <TeamCtrl />
|
if (nav === 'team' || nav === 'account') return <TeamCtrl />
|
||||||
|
|
||||||
|
|||||||
50
client/src/components/noise.logo.jsx
Normal file
50
client/src/components/noise.logo.jsx
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
const preact = require('preact');
|
||||||
|
const { Component } = require('preact');
|
||||||
|
const anime = require('animejs').default;
|
||||||
|
|
||||||
|
class Logo extends Component {
|
||||||
|
constructor() {
|
||||||
|
super();
|
||||||
|
this.animations = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<div class='logo' style={{ filter: 'url("#noiseFilter")' }}>
|
||||||
|
<svg
|
||||||
|
version="1.1"
|
||||||
|
id="logo"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 400 400">
|
||||||
|
<filter id='noiseFilter'>
|
||||||
|
<feTurbulence type="turbulence" baseFrequency="0" numOctaves="2" result="turbulence"></feTurbulence>
|
||||||
|
<feDisplacementMap in2="turbulence" in="SourceGraphic" scale="4" xChannelSelector="R" yChannelSelector="G"></feDisplacementMap>
|
||||||
|
</filter>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidMount() {
|
||||||
|
this.animations.push(anime({
|
||||||
|
targets: ['#noiseFilter feTurbulence', '#noiseFilter feDisplacementMap'],
|
||||||
|
baseFrequency: 1,
|
||||||
|
easing: 'easeInOutSine',
|
||||||
|
duration: () => anime.random(2000, 5000),
|
||||||
|
loop: true,
|
||||||
|
direction: 'alternate',
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
|
||||||
|
// this is necessary because
|
||||||
|
// skipping / timing / unmounting race conditions
|
||||||
|
// can cause the animations to cut short, this will ensure the values are reset
|
||||||
|
// because preact will recycle all these components
|
||||||
|
componentWillUnmount() {
|
||||||
|
for (let i = this.animations.length - 1; i >= 0; i--) {
|
||||||
|
this.animations[i].reset();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = Logo;
|
||||||
Loading…
x
Reference in New Issue
Block a user