This commit is contained in:
Adam 2023-02-06 04:46:36 -05:00
parent 902adeb9d1
commit 3f6308fe02
6 changed files with 49 additions and 12 deletions

View file

@ -0,0 +1,22 @@
<h3>Some games using wasm/webgl</h3>
<p>Browser performance as of January 2023</p>
<p>Tested better:</p>
<ol>
<li>Opera</li>
<li>Firefox Developer Edition</li>
<li>Brave</li>
</ol>
<p>Tested poor or broken:</p>
<ol>
<li>Safari</li>
<li>Chrome stable release or older</li>
<li>Edge, see above^</li>
</ol>
<p>Consider anything else average or let me know otherwise</p>
<ul>
---MY GAMES---
<li><a href="https://doordesk.net/games/adam">adam</a> - The first. Unity Demo/Tutorial with some mods</li>
<li><a href="https://doordesk.net/games/fps">multiplayer fps</a> - Dive into netcode with Godot (Open two, invite your friends!)</li>
<li><a href="https://doordesk.net/games/../snek">snek</a> - Canvas + JS (the actual first)</li>
<li><a href="https://doordesk.net/games/balls">balls</a> - Godot demo engine test</li>
</ul>

View file

@ -76,7 +76,8 @@ p {
box-shadow: 5px 12px 20px #000; box-shadow: 5px 12px 20px #000;
} }
.date{ .date{
color: var(--color4) color: var(--color4);
margin-bottom: 2em;
} }
.cards { .cards {
display: -webkit-flex; display: -webkit-flex;

View file

@ -5,7 +5,7 @@ import Home from './components/Home.js'
import Blog from './components/Blog.js' import Blog from './components/Blog.js'
import Projects from './components/Projects.js' import Projects from './components/Projects.js'
import Games from './components/Games.js' import Games from './components/Games.js'
import Contact from './components/Contact.js' import Cartman from './components/Cartman.js'
const FAKE_IT_TIL_YOU_MAKE_IT: string[] = [ const FAKE_IT_TIL_YOU_MAKE_IT: string[] = [
// component carousel // component carousel
@ -13,7 +13,7 @@ const FAKE_IT_TIL_YOU_MAKE_IT: string[] = [
'Blog', // blog posts 'Blog', // blog posts
'Projects', // project writeups 'Projects', // project writeups
'Games', // cards with thumbnail and summary 'Games', // cards with thumbnail and summary
'Contact', // email form? 'Cartman', // with knobs!
] ]
interface IAppProps { interface IAppProps {
@ -65,8 +65,8 @@ class App extends Component<IAppProps, IAppState> {
case 'Games': case 'Games':
page = <Games /> page = <Games />
break; break;
case 'Contact': case 'Cartman':
page = <Contact /> page = <Cartman />
break; break;
default: default:
page = <Home /> page = <Home />

View file

@ -1,24 +1,24 @@
import { Component } from 'react' import { Component } from 'react'
interface IContactProps { interface ICartmanProps {
} }
interface IContactState { interface ICartmanState {
} }
class Contact extends Component<IContactProps, IContactState> { class Cartman extends Component<ICartmanProps, ICartmanState> {
constructor(props: IContactProps) { constructor(props: ICartmanProps) {
super(props) super(props)
} }
render() { render() {
return ( return (
<div className="content-container"> <div className="content-container">
<div className="content"> <div className="content">
<p>contact me maybe</p> <p>cartman</p>
</div> </div>
</div> </div>
) )
} }
} }
export default Contact export default Cartman

View file

@ -1,20 +1,33 @@
import { Component } from 'react' import { Component } from 'react'
import ReactMarkdown from 'react-markdown'
import rehypeRaw from 'rehype-raw'
interface IGamesProps { interface IGamesProps {
} }
interface IGamesState { interface IGamesState {
html: string;
} }
class Games extends Component<IGamesProps, IGamesState> { class Games extends Component<IGamesProps, IGamesState> {
constructor(props: IGamesProps) { constructor(props: IGamesProps) {
super(props) super(props)
this.state = {
'html': ''
}
}
componentDidMount() {
return fetch('games/index.html')
.then((res) => res.text())
.then((text) => this.setState({ html: text }))
} }
render() { render() {
return ( return (
<div className="content-container"> <div className="content-container">
<div className="content"> <div className="content">
<p>yo dawg I heard you like games</p> <ReactMarkdown
rehypePlugins={[rehypeRaw]}
children={this.state.html} />
</div> </div>
</div> </div>
) )

View file

@ -1,3 +1,4 @@
# doordesk # doordesk
my cms
```./start_frontend_ghetto``` ```./start_frontend_ghetto```