Skip to content

Commit

Permalink
chore: update local dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Caele committed Feb 15, 2021
1 parent 871c2c3 commit 14b7bff
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
4 changes: 4 additions & 0 deletions examples/dev-mashup/README.md
Expand Up @@ -26,3 +26,7 @@ yarn start
```

Open you browser to http://localhost:1234

## Making local changes

The gitignore is setup to exclude a folder named `local-dev` in the root of this repository. So to make local changes to the mashup you can create that folder and copy all files into it.
24 changes: 19 additions & 5 deletions examples/dev-mashup/index.html
Expand Up @@ -11,7 +11,14 @@
.content {
margin: 0 auto;
width: 80%;
max-width: 800px;
max-width: 1200px;
display: flex;
flex-direction: row;
}

.column {
margin: 0 auto;
width: 80%;
}

.object {
Expand All @@ -23,20 +30,27 @@
.toolbar {
background-color: white;
margin: 12px 0px;
margin: 0 auto;
width: 70%;
max-width: 1200px;
}

.listbox {
position: relative;
height: 352px;
height: 400px;
width: 30%;
background-color: white;
}
</style>
</head>
<body>
<div class="toolbar"></div>
<div class="content">
<div class="toolbar"></div>
<div class="object" data-type="bar"></div>
<div class="object" data-type="line"></div>
<div class="column">
<div class="object" data-type="bar"></div>
<div class="object" data-type="line"></div>
</div>
<div class="listbox"></div>
</div>

<script src="index.js"></script>
Expand Down
1 change: 1 addition & 0 deletions examples/dev-mashup/index.js
Expand Up @@ -19,6 +19,7 @@ function init() {
});

nebbie.selections().then((s) => s.mount(document.querySelector('.toolbar')));
nebbie.field('Num').then((s) => s.mount(document.querySelector('.listbox')));

document.querySelectorAll('.object').forEach((el) => {
const type = el.getAttribute('data-type');
Expand Down

0 comments on commit 14b7bff

Please sign in to comment.