Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Marvin Heilemann committed Sep 30, 2019
1 parent c29d3d3 commit cacb627
Show file tree
Hide file tree
Showing 24 changed files with 880 additions and 138 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/_old
/tmp

# Logs
logs
Expand Down
3 changes: 2 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Async: Inter
- [x] replace package.json with version.txt to reduce size
- [x] add custom slug to all pages
- [ ] test `postcss-easing-gradients` with Scss loaded in `/src`
- [ ] add md table of contents
- [x] test purgecss with classes from Markdown files
- [ ] add NOW deployment
Expand All @@ -33,7 +34,7 @@
- [ ] Upload some photos (best off's)
- [ ] check all pages with screen reader
- [ ] check all pages with reduced motion
- [ ] check all pages with reduced transparenzy
- [ ] check all pages with reduced transparency
- [ ] add tests?!
- [ ] move from bash script to [Nim][2]

Expand Down
107 changes: 70 additions & 37 deletions content/projects/__demo__/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,44 @@ tags: [website, re-design]
categories: [website]
---

# This is a h1 title
## Headings

## This is a h2 title
# This is a **h1** title

### This is a h3 title
## This is a **h2** title

#### This is a h4 title
### This is a **h3** title

##### This is a h5 title
#### This is a **h4** title

###### This is a h6 title
##### This is a **h5** title

<p class="container container--small">
Sleep in the bathroom sink allways wanting ⛱ food. Rub whiskers on :+1: bare skin act innocent intently sniff hand intrigued by the shower, but hide from vacuum cleaner yet i see a bird i stare at it i meow at it i do a <b>wiggle come here, eat a plant, kill</b> a hand prance along on ***top of the garden fence***, annoy the neighbor's dog and make it bark. Throw down 😍 all the stuff in the kitchen white cat sleeps on a https://marvin.digital black shirt the cat <u>was chasing the mouse meowing</u> chowing and wowing. I’m so hungry i’m so hungry but ew not for that try to hold own back foot <s>to clean it but foot reflexively</s> kicks you in face, go into a rage and bite own foot, hard decide to want nothing to do with my owner
</p>
###### This is a **h6** title

today. Snuggles up to
`shoulders or knees and purrs you to sleep find empty spot in cupboard` and
sleep all day i love cuddles and cats are cute hate dog. **Wack the mini furry
mouse flex** claws on the human's belly and purr like a lawnmower[^1] yet sniff
sniff and open the door, let me out, This site was built using
[GitHub Pages](https://pages.github.com/). let me out, _let me-out, let me-aow,
let meaow,_ meaow!. Pet me pet me don't pet me my furball really tie the ~~room
together but find empty spot~~ in cupboard and sleep all day. Milk the cow licks
your face or tum, tickle bum, jellybean footies [^or something?] curly toes.
Curl into a furry donut.
## Text block

#### The next image is HTML and contains classes
Sleep in the bathroom sink allways wanting ⛱ food. Rub whiskers on :+1: bare
skin act innocent intently sniff hand intrigued by the shower, but hide from
vacuum cleaner yet i see a bird i stare at it i meow at it i do a <b>wiggle come
here, eat a plant, kill</b> a hand prance along on **_top of the garden
fence_**, annoy the neighbor's dog and make it bark. Throw down 😍 all the stuff
in the kitchen white cat sleeps on a https://marvin.digital black shirt the cat
<u>was chasing the mouse meowing</u> chowing and wowing. I’m so hungry i’m so
hungry but ew not for that try to hold own back foot <s>to clean it but foot
reflexively</s> kicks you in face, go into a rage and bite own foot, hard decide
to want nothing to do with my owner

<div class="container">
<img src="img-01.jpg" alt="Alternative title and caption">
</div>
---

today. Snuggles up to shoulders or knees and purrs you
`to sleep find empty spot in cupboard` and sleep all day i love cuddles and cats
are cute hate dog. **Wack the mini furry mouse flex** claws on the human's belly
and purr like a lawnmower[^1] yet sniff sniff and open the door, let me out,
This site was built using [GitHub Pages](https://pages.github.com/). let me out,
_let me-out, let me-aow, let meaow,_ meaow!. Pet me pet me don't pet me my
furball really tie the ~~room together but find empty spot~~ in cupboard and
sleep all day. Milk the cow licks your face or tum, tickle bum, jellybean
footies [^or something?] curly toes. Curl into a furry donut.

## Lists

Expand All @@ -73,10 +79,9 @@ _Some normal text because the parser has problems here._
2. stupid
3. wrong
5. numbers
6. if
7. wanted
6. this

**This is a task list**
### Task list

- [x] Finish my changes
- [ ] Push my commits to GitHub
Expand All @@ -89,20 +94,50 @@ _Some normal text because the parser has problems here._
| 0 | i |
| 1 | love |
| 2 | tables |
| 3 | but sometimes they are so long, that it is really hard to properly format or even style them, so they look good on all devices... uff this isn't even long enough to test this shit... dumm di dumm du dumm di |
| 3 | but sometimes they are so long, that it is really hard to properly format or even style them, so they look good on all devices... all this isn't even long enough to test this shit... dumm di dumm du dumm di |

## Code blocks

```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
```jsx{numberLines: true}
import { Component } from 'react'
class Test extends Component {
constructor(props) {
super(props)
}
componentDidMount() {
// do something on mount here
}
// highlight-start
render() {
return (
<>
<h1>Test {this.props.test}</h1>
<div dangerouslySetInnerHTML={{ __html: this.props.html }} />
</>
)
}
// highlight-end
}
export default Test
```

```
function test() {
console.log("notice the blank line before this function?");
}
Some basic preformated text block
funny how easy that
is
```

```bash{outputLines: 3-7}
~/Documents/M8FINDER/API master !1 *1
marvinheilemann@marvin❯ py src/app.py
Traceback (most recent call last):
File "src/app.py", line 1, in <module>
from flask import Flask
ModuleNotFoundError: No module named 'flask'
```

## Quotes
Expand All @@ -112,12 +147,10 @@ function test() {
> cleaner yet i see a bird i stare at it i meow at it i do a <b>wiggle come
> here, eat a plant, kill</b>
---
## Images

![Caption could be here](img-01.jpg)

![Caption here](img-02.jpg)

[^1]: This reference footnote contains a paragraph...

- ...and a list
Binary file added content/projects/__demo__/test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 34 additions & 2 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ module.exports = {
pedantic: true,
gfm: true,
plugins: [
// 'remark-custom-classes',
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 1200,
maxWidth: 1600,
backgroundColor: 'transparent',
linkImagesToOriginal: true,
quality: 75,
Expand All @@ -85,6 +84,39 @@ module.exports = {
emojiConversion: 'shortnameToUnicode',
},
},
{
resolve: `gatsby-remark-prismjs`,
options: {
noInlineHighlight: true,
prompt: {
user: 'root',
host: 'localhost',
global: false,
},
},
},
{
resolve: `remark-custom-classes`,
options: {
types: {
image: 'container',
heading: 'container container--small',
blockquote: 'container container--small',
// thematicBreak: 'container container--small',
list: 'container container--small',
table: 'container container--small',
footnoteDefinition: 'container container--small',
paragraph: 'container container--small',
},
tags: {
hr: 'container',
},
remark: {
images: 'container',
prismjs: 'container container--small',
},
},
},
],
},
},
Expand Down
Loading

0 comments on commit cacb627

Please sign in to comment.