Skip to content

Commit 61c2f52

Browse files
committed
update
1 parent be55f26 commit 61c2f52

File tree

7 files changed

+43
-1
lines changed

7 files changed

+43
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules
33
dist
44
.parcel-cache
5+
browser

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"scripts": {
99
"watch": "parcel watch",
1010
"build": "parcel build",
11-
"lint": "eslint --fix src && prettier --write src"
11+
"lint": "eslint --fix src && prettier --write src",
12+
"test": "parcel test/index.html"
1213
},
1314
"keywords": [
1415
"blog",

src/components/Home.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from 'react';
2+
3+
function Home() {
4+
return <h1>nimblog</h1>;
5+
}
6+
7+
export default Home;

src/index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import * as ReactDOM from 'react-dom/client';
2+
import React from 'react';
3+
import Home from './components/Home';
4+
5+
const rootNode = document.body;
6+
const root = ReactDOM.createRoot(rootNode);
7+
root.render(React.createElement(Home));
8+
9+
export default function hello() {
10+
console.log('hello');
11+
}

test/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang='en'>
3+
<head>
4+
<meta charset='UTF-8'>
5+
<title>nimblog</title>
6+
</head>
7+
<body>
8+
<div id='posts'>
9+
[What is Lorem Ipsum](what-is-lorem-Ipsum.md)
10+
[Where does it come from](where-does-it-come-from.md)
11+
</div>
12+
<script type='module' src='../src/index.js'></script>
13+
</body>
14+
</html>

test/what-is-lorem-Ipsum.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# What is Lorem Ipsum
2+
3+
**Lorem Ipsum** is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

test/where-does-it-come-from.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Where does it come from
2+
3+
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.
4+
5+
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.

0 commit comments

Comments
 (0)