yut
This commit is contained in:
parent
02a0bd70f2
commit
276f269c8e
5 changed files with 81 additions and 76 deletions
|
@ -4,7 +4,6 @@
|
||||||
:root{
|
:root{
|
||||||
--useless-gaps: 1em;
|
--useless-gaps: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
background-image: url("bg.png");
|
background-image: url("bg.png");
|
||||||
|
@ -17,7 +16,6 @@ html, body {
|
||||||
line-height: 1.7em;
|
line-height: 1.7em;
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
}
|
}
|
||||||
|
|
||||||
input, textarea {
|
input, textarea {
|
||||||
background-color: var(--background);
|
background-color: var(--background);
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
|
@ -46,37 +44,28 @@ img{
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--color4);
|
color: var(--color4);
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover {
|
a:hover {
|
||||||
color: var(--color5);
|
color: var(--color5);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
color: var(--color10);
|
color: var(--color10);
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
color: var(--color6);
|
color: var(--color6);
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
color: var(--color3);
|
color: var(--color3);
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin-top: 2em;
|
margin-top: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
margin: 3em;
|
margin: 3em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-container, .header {
|
.content-container, .header {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: var(--useless-gaps);
|
margin-top: var(--useless-gaps);
|
||||||
|
@ -86,11 +75,9 @@ p {
|
||||||
max-width: 80em;
|
max-width: 80em;
|
||||||
box-shadow: 5px 12px 20px #000;
|
box-shadow: 5px 12px 20px #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
.date{
|
.date{
|
||||||
color: var(--color4)
|
color: var(--color4)
|
||||||
}
|
}
|
||||||
|
|
||||||
.cards {
|
.cards {
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: -ms-flex;
|
display: -ms-flex;
|
||||||
|
@ -103,7 +90,6 @@ p {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
max-width: 80%;
|
max-width: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
|
@ -111,16 +97,12 @@ p {
|
||||||
padding: 0 2em 2em 2em;
|
padding: 0 2em 2em 2em;
|
||||||
margin: 2em;
|
margin: 2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.align-right {
|
.align-right {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
.align-center {
|
.align-center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin-top: -1em;
|
margin-top: -1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,11 +4,12 @@ import Header from './components/Header.js'
|
||||||
import Blog from './components/Blog.js'
|
import Blog from './components/Blog.js'
|
||||||
|
|
||||||
const FAKE_IT_TIL_YOU_MAKE_IT: string[] = [
|
const FAKE_IT_TIL_YOU_MAKE_IT: string[] = [
|
||||||
'Blog',
|
// component carousel
|
||||||
'Games',
|
'Home', // table of top 5 from(when enough content) *; then interleave latest from *
|
||||||
'Cartman',
|
'Blog', // blog posts
|
||||||
'Enigma',
|
'Projects', // project writeups
|
||||||
'Notebooks',
|
'Games', // cards with thumbnail and summary
|
||||||
|
'Contact', // email form?
|
||||||
]
|
]
|
||||||
|
|
||||||
interface IAppProps {
|
interface IAppProps {
|
||||||
|
@ -32,7 +33,10 @@ class App extends Component<IAppProps, IAppState> {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<Header pages={FAKE_IT_TIL_YOU_MAKE_IT} currentPage={this.state.currentPage} />
|
<Header
|
||||||
|
pages={FAKE_IT_TIL_YOU_MAKE_IT}
|
||||||
|
currentPage={this.state.currentPage}
|
||||||
|
/>
|
||||||
{page}
|
{page}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,11 +5,9 @@ import rehypeRaw from 'rehype-raw'
|
||||||
interface IBlogPostProps {
|
interface IBlogPostProps {
|
||||||
postURL: string;
|
postURL: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IBlogPostState {
|
interface IBlogPostState {
|
||||||
postHTML: string;
|
postHTML: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
class BlogPost extends Component<IBlogPostProps, IBlogPostState> {
|
class BlogPost extends Component<IBlogPostProps, IBlogPostState> {
|
||||||
constructor(props: IBlogPostProps) {
|
constructor(props: IBlogPostProps) {
|
||||||
super(props)
|
super(props)
|
||||||
|
@ -24,7 +22,6 @@ class BlogPost extends Component<IBlogPostProps, IBlogPostState> {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.getPost(this.props.postURL)
|
this.getPost(this.props.postURL)
|
||||||
.then((text) => this.setState({ postHTML: text }))
|
.then((text) => this.setState({ postHTML: text }))
|
||||||
|
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|
20
doordesk/src/components/Games.tsx
Normal file
20
doordesk/src/components/Games.tsx
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
import { Component } from 'react'
|
||||||
|
|
||||||
|
interface IGamesProps {
|
||||||
|
}
|
||||||
|
|
||||||
|
interface IGamesState {
|
||||||
|
}
|
||||||
|
|
||||||
|
class Games extends Component<IGamesProps, IGamesState> {
|
||||||
|
constructor(props: IGamesProps) {
|
||||||
|
super(props)
|
||||||
|
}
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
1
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Games
|
|
@ -1 +1,3 @@
|
||||||
sup
|
# doordesk
|
||||||
|
|
||||||
|
```./start_frontend_ghetto```
|
||||||
|
|
Loading…
Add table
Reference in a new issue