mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-13 13:22:57 +00:00
animated banner
This commit is contained in:
1 parent
1eaad9e3f6
commit
d2a90e99f6
3 files changed
+64
-26
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 101 KiB |
@@ -0,0 +1,59 @@
|
||||
import React from 'react';
|
||||
|
||||
interface Props {
|
||||
showNewsNotice: boolean,
|
||||
toggleNewsNoticeCallback: () => void,
|
||||
}
|
||||
|
||||
interface State {
|
||||
}
|
||||
|
||||
class NewsNotice extends React.Component<Props, State> {
|
||||
|
||||
constructor(props: Props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
};
|
||||
}
|
||||
|
||||
public render() {
|
||||
if (!this.props.showNewsNotice) {
|
||||
return <article />;
|
||||
}
|
||||
|
||||
return (
|
||||
<article className="message is-info news-notice">
|
||||
<div className="message-header">
|
||||
<p>Join our Twitch for Early Access</p>
|
||||
<button className="delete" aria-label="delete" onClick={() => this.props.toggleNewsNoticeCallback()}></button>
|
||||
</div>
|
||||
<div className="message-body">
|
||||
|
||||
<div className="columns is-mobile is-centered is-vcentered">
|
||||
<div className="column is-one-third">
|
||||
<a href="https://twitch.tv/vocodes" target="_blank" rel="noopener noreferrer"><img
|
||||
src="/banner/banner.webp" alt="Follow us on Twitch!" /></a>
|
||||
</div>
|
||||
<div className="column is-two-thirds">
|
||||
<p>
|
||||
<a href="https://twitch.tv/vocodes" target="_blank" rel="noopener noreferrer">Follow us on Twitch!</a> We're
|
||||
building streaming tools that will incorporate deep fake technology and audience interaction. You'll be able
|
||||
to use this for your streams, too.
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
You get early and exclusive access to new voices. We're also giving away $100 in prizes with every stream.
|
||||
Please check us out! <a href="https://twitch.tv/vocodes" target="_blank" rel="noopener noreferrer">Follow for notifications!</a>
|
||||
</p>
|
||||
<br />
|
||||
<p>Early access voices: Goku, Tails, Knuckles, MJ, and more...</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export { NewsNotice }
|
||||
@@ -10,6 +10,7 @@ import { SpectrogramMode } from '../../App';
|
||||
import { StatusText } from './StatusText';
|
||||
import { Utterance } from '../../model/utterance';
|
||||
import { getRandomInt } from '../../Utils';
|
||||
import { NewsNotice } from './NewsNotice';
|
||||
|
||||
enum StatusState {
|
||||
NONE,
|
||||
@@ -180,34 +181,12 @@ class SpeakComponent extends React.Component<Props, State> {
|
||||
onClick={this.toggleMode}>{modeText}</button>
|
||||
}
|
||||
|
||||
let newsNotice= <article />;
|
||||
|
||||
if (this.props.showNewsNotice) {
|
||||
newsNotice = (
|
||||
<article className="message is-info">
|
||||
<div className="message-header">
|
||||
<p>Join our Twitch for New Voices to win a PlayStation 5</p>
|
||||
<button className="delete" aria-label="delete" onClick={() => this.props.toggleNewsNoticeCallback()}></button>
|
||||
</div>
|
||||
<div className="message-body">
|
||||
<p>
|
||||
<a href="https://twitch.tv/vocodes" target="_blank" rel="noopener noreferrer">Follow us on Twitch!</a> We're
|
||||
building streaming tools that will incorporate deep fake technology and audience interaction. You'll be able
|
||||
to use this for your streams, too.
|
||||
</p>
|
||||
<p>
|
||||
You get early and exclusive access to new voices. We're also giving away $100 in prizes with every stream.
|
||||
Please check us out! <a href="https://twitch.tv/vocodes" target="_blank" rel="noopener noreferrer">Follow for notifications!</a>
|
||||
</p>
|
||||
</div>
|
||||
</article>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<section>
|
||||
|
||||
{newsNotice}
|
||||
<NewsNotice
|
||||
showNewsNotice={this.props.showNewsNotice}
|
||||
toggleNewsNoticeCallback={this.props.toggleNewsNoticeCallback}
|
||||
/>
|
||||
|
||||
<div className="columns is-mobile is-gapless">
|
||||
<div className="column">
|
||||
|
||||
Reference in new issue
Block a user