Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: rewriting drafts on nunchucks and deleting server-sketch #256

Merged
merged 4 commits into from
Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
417 changes: 0 additions & 417 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"@11ty/eleventy": "^0.12.1",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@exadel/server-sketch": "https://github.com/exadel-inc/server-sketch/archive/refs/tags/v0.6.0.tar.gz",
"@juggle/resize-observer": "^3.3.1",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
Expand Down
10 changes: 0 additions & 10 deletions pages/controllers/PublishConfig.js

This file was deleted.

5 changes: 5 additions & 0 deletions pages/views-11ty/data/functions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
randomColor() {
return `#${Math.floor(Math.random() * 4095).toString(16).padStart(3, "0")}`;
},
};
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
layout: ../../layouts/basic.html
layout: basic
title: Multi Slide Carousel
name: Multi Slide Carousel
tags: drafts
---

{{##content:
<div class="container-fluid">
<div class="row flex-column">
<h2>Demo 1: </h2>
Expand All @@ -17,31 +18,31 @@ <h2>Demo 1: </h2>
<div data-slides-area>
<!-- CAROUSEL-ITEM -->
<esl-carousel-slide active
style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>111</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide active style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide active style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>222</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide active style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide active style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>333</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>444</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>555</p>
</div>
Expand Down Expand Up @@ -76,79 +77,79 @@ <h2>Demo 2: </h2>
<div data-slides-area>
<!-- CAROUSEL-ITEM -->
<esl-carousel-slide active
style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>111</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>222</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>333</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>444</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>555</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>666</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>777</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>888</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>999</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>101010</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>111111</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>121212</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>131313</p>
</div>
Expand Down Expand Up @@ -183,105 +184,105 @@ <h2>Demo 3: </h2>
<div data-slides-area>
<!-- CAROUSEL-ITEM -->
<esl-carousel-slide
style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>111</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide
style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>222</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>333</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide first
style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>444</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>555</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>666</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>777</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>888</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>999</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>101010</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>111111</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>121212</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>131313</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>141010</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>151111</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>161212</p>
</div>
</esl-carousel-slide>

<esl-carousel-slide style="background: #{{= Math.floor(Math.random()*4095).toString(16) }}">
<esl-carousel-slide style="background: {{ functions.randomColor() }}">
<div class="post-text">
<p>171313</p>
</div>
Expand All @@ -298,4 +299,3 @@ <h2>Demo 3: </h2>
</esl-carousel>
</div>
</div>
#}}
Loading