Skip to content

Commit 9f0c593

Browse files
committed
touched... (C) whatthecommit.com
1 parent 29d34c1 commit 9f0c593

File tree

6 files changed

+53
-0
lines changed

6 files changed

+53
-0
lines changed

frontender/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ open http://127.0.0.1:1234/
4242

4343
## resources
4444

45+
* [css clippy](https://bennettfeely.com/clippy/)
4546
* [Material icons guide](http://google.github.io/material-design-icons/)
4647
* [Material icons](https://material.io/resources/icons/)
4748
* [Origami studio](https://origami.design/)

frontender/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"npm-run-all": "4.1.5",
3030
"parcel-bundler": "1.12.4",
3131
"rimraf": "3.0.0",
32+
"sass": "^1.24.0",
3233
"webfontloader": "1.6.28"
3334
}
3435
}

frontender/src/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<li><a href="./site/index.html">site</a></li>
1616
<li><a href="./box-shadow-neumorphism/index.html">box-shadow-neumorphism</a></li>
1717
<li><a href="./nav/index.html">nav</a></li>
18+
<li><a href="./sassy/index.html">sassy</a></li>
1819
</ul>
1920
</body>
2021
</html>

frontender/src/sassy/index.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>SASS</title>
8+
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
9+
<link rel="stylesheet" href="style.scss">
10+
</head>
11+
<body>
12+
<div id="bg"></div>
13+
<script src="./main.js"></script>
14+
</body>
15+
</html>

frontender/src/sassy/main.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import WebFont from 'webfontloader';
2+
3+
WebFont.load({
4+
google: {
5+
families: [
6+
'Roboto:300,400,500,600,700',
7+
],
8+
},
9+
});

frontender/src/sassy/style.scss

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
$fonts: (
2+
primary: Roboto sans-serif
3+
);
4+
5+
$colors: (
6+
primary: #3338ff
7+
);
8+
9+
html,
10+
body {
11+
height: 100%;
12+
}
13+
14+
body {
15+
margin: 0;
16+
font-family: map-get($fonts, primary);
17+
18+
#bg {
19+
clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
20+
background-color: map-get($colors, primary);
21+
width: 50%;
22+
height: 50%;
23+
margin: 20% auto;
24+
//position: absolute;
25+
}
26+
}

0 commit comments

Comments
 (0)