Multiple test-projects
This commit is contained in:
10
test/todos-mvc/index.html
Normal file
10
test/todos-mvc/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Todos MVC</title>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript" src="./index.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
9
test/todos-mvc/index.jsx
Normal file
9
test/todos-mvc/index.jsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import {render} from "../../packages/csx-custom-elements";
|
||||
import style from "./index.scss";
|
||||
|
||||
// Replace this with an example implementation of the Todos-MVC app
|
||||
// look for inspiration here: https://github.com/shprink/web-components-todo
|
||||
document.body.appendChild(render(<style>{style}</style>));
|
||||
document.body.appendChild(render(<div class="center-me">
|
||||
<h1>Todos MVC</h1>
|
||||
</div>));
|
||||
19
test/todos-mvc/index.scss
Normal file
19
test/todos-mvc/index.scss
Normal file
@@ -0,0 +1,19 @@
|
||||
html{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: auto;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.center-me{
|
||||
align-self: center;
|
||||
}
|
||||
Reference in New Issue
Block a user