Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

Commit c1cedd3

Browse files
committed
🍱 update styleguide
1 parent f1da499 commit c1cedd3

14 files changed

+98
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<a href="#/pages/homepage" class="button"><strong><i>Salut l'ami</i></strong></a><br><br>
2+
<a href="#/pages/homepage" class="button">bisou</strong></a>
+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import $ from 'jquery';
1+
// import $ from 'jquery';
2+
/* globals $ */
23

34
export default () => {
4-
$('.button').click(() => {
5+
$('.button').click(function () {
6+
console.log($(this));
7+
console.log($(this).text());
58
console.log('Strong is the Force inside you.');
69
});
710
};
+8-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
11
title: Button
2-
name: button
2+
name: button
3+
notes: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Deinde prima illa, quae in congressu solemus: Quid tu, inquit, huc? Est enim effectrix multarum et magnarum voluptatum. [truc](#) sequuntur igitur? Tu quidem reddes; Avaritiamne minuis? Duo Reges: **constructio** interrete. Quarum ambarum rerum cum medicinam pollicetur, luxuriae licentiam pollicetur.
4+
5+
Apud imperitos tum illa dicta sunt, aliquid etiam coronae datum; Consequens enim est et post oritur, ut dixi. Primum divisit ineleganter; Age nunc isti doceant, vel tu potius quis enim ista melius? Ita enim vivunt quidam, ut eorum vita refellatur oratio. Sed ad haec, nisi molestum est, habeo quae velim. Videsne quam sit magna dissensio?
6+
7+
Tu vero, inquam, ducas licet, si sequetur; Summum ením bonum exposuit vacuitatem doloris; Res enim fortasse verae, certe graves, non ita tractantur, ut debent, sed aliquanto minutius. Certe, nisi voluptatem tanti aestimaretis."
8+
variants:
9+
- danger

assets/components/base.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
import $ from 'jquery';
1+
// import $ from 'jquery';
2+
/* globals $ */
23

34
import '../icons/svg-icons';
45
import button from './atoms/button/button';
56

7+
console.log($);
8+
69
$(document).ready(() => {
10+
console.log('ready !');
711
button();
812
});
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<div style="padding: 5em;">
2+
{% include "atoms::button/button-danger.twig" %}
3+
</div>

assets/components/pages/test/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
title: test
2+
name: test

assets/config/colors.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
{
2-
"Black": "#000",
3-
"White": "#fff"
2+
"domino": "#84735a",
3+
"teak": "#af9360",
4+
"tumbleweed": "#d7b37d",
5+
"white": "#fff",
6+
"concrete": "#f2f2f2",
7+
"pumice": "#d7dad8",
8+
"dusty-gray": "#9b9b9b",
9+
"tundora": "#4a4a4a",
10+
"slate": "#333333",
11+
"cod-gray": "#161616",
12+
"black": "#000"
413
}

assets/icons/code.svg

+14
Loading

assets/icons/search.svg

+10
Loading

assets/icons/toolbox.svg

+15
Loading

docs/test.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# test

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "toolbox",
3-
"version": "0.0.0",
3+
"version": "0.1.0",
44
"license": "MIT",
55
"main": "index.html",
66
"scripts": {

toolbox-index.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!doctype html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<title>Salut</title>
8+
<script src="https://cdn.polyfill.io/v2/polyfill.js?features=String.prototype.includes,Array.prototype.find"></script>
9+
10+
</head>
11+
12+
<body>
13+
<div id="styleguide"></div>
14+
</body>
15+
</html>

toolbox.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@
1717
],
1818
"vendors": {
1919
"css": [],
20-
"js": []
20+
"js": [
21+
"node_modules/jquery/dist/jquery.min.js"
22+
]
2123
},
24+
"theme": {
25+
},
26+
"reader_path": "http://localhost/toolbox-env/toolbox-reader/build",
2227
"singles": [{
2328
"src": "",
2429
"dest": ""

0 commit comments

Comments
 (0)