docs.. examples
This commit is contained in:
7
example/simple/css/style.css
Normal file
7
example/simple/css/style.css
Normal file
@ -0,0 +1,7 @@
|
||||
body {
|
||||
background-color: #AA3939;
|
||||
color: #FFE2E2
|
||||
}
|
||||
svg {
|
||||
fill: #000
|
||||
}
|
10
example/simple/index.html
Normal file
10
example/simple/index.html
Normal file
@ -0,0 +1,10 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="css/style.css">
|
||||
</head>
|
||||
<h1>Amazing Page</h1>
|
||||
<p>
|
||||
With a freaky triangle..
|
||||
</p>
|
||||
<svg width="500" height="500">
|
||||
<polygon points="250,0 0,500 500,500"></polygon>
|
||||
</svg>
|
3
example/spa/.local-web-server.json
Normal file
3
example/spa/.local-web-server.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"spa": "index.html"
|
||||
}
|
3
example/spa/css/style.css
Normal file
3
example/spa/css/style.css
Normal file
@ -0,0 +1,3 @@
|
||||
body {
|
||||
background-color: IndianRed;
|
||||
}
|
8
example/spa/index.html
Normal file
8
example/spa/index.html
Normal file
@ -0,0 +1,8 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<h1>Single Page App</h1>
|
||||
<h2>Location: <span></span></h2>
|
||||
<script>
|
||||
document.querySelector('h2 span').textContent = window.location.pathname
|
||||
</script>
|
Reference in New Issue
Block a user