Skip to content

Commit

Permalink
switch from bootstrap to water.css + cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
limenet committed Jul 9, 2023
1 parent 2253c15 commit b5c9537
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 205 deletions.
8 changes: 0 additions & 8 deletions configs/limenet.json

This file was deleted.

8 changes: 0 additions & 8 deletions configs/pikapp.json

This file was deleted.

4 changes: 4 additions & 0 deletions configs/under-construction.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"template": "under-construction",
"title": "Work in progress"
}
68 changes: 12 additions & 56 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "droplet-placeholder",
"dependencies": {
"bootstrap": "^4.6.2",
"cedar": "^0.3.4",
"chokidar": "^3.5.3",
"css": "^3.0.0",
Expand All @@ -12,7 +11,8 @@
"mime-types": "^2.1.35",
"mustache": "^4.2.0",
"snyk": "^1.1187.0",
"sync-request": "^6.0.0"
"sync-request": "^6.0.0",
"water.css": "^2.1.1"
},
"devDependencies": {
"eslint": "^8.44.0",
Expand Down
7 changes: 1 addition & 6 deletions public/corporate.html

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions public/limenet.html

This file was deleted.

7 changes: 1 addition & 6 deletions public/personal.html

Large diffs are not rendered by default.

9 changes: 0 additions & 9 deletions public/pikapp.html

This file was deleted.

1 change: 1 addition & 0 deletions public/under-construction.html

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ function parseConfig(file) {
limenetch: helpers.image(
'https://s3.amazonaws.com/limenet-logo-img/v2/full-transparent-height20.png'
),
digitalocean: helpers.image(
'https://s3.amazonaws.com/multisite-misc-assets/DO_Powered_by_Badge_black.svg'
),
faCode: helpers.image(
'https://raw.githubusercontent.com/encharm/Font-Awesome-SVG-PNG/master/black/svg/code.svg',
'image/svg+xml'
),
};

const config = c;
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = {

css() {
const cssFile = fs.readFileSync(
'node_modules/bootstrap/dist/css/bootstrap.min.css',
'node_modules/water.css/out/water.min.css',
'utf8'
);
return cssFile;
Expand Down
48 changes: 0 additions & 48 deletions templates/business-card.html

This file was deleted.

30 changes: 5 additions & 25 deletions templates/gravatar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,11 @@
<style></style>
</head>
<body>
<div class="container">
<div class="row m-3">
<div class="col text-center">
<h1>
{{#images}}<img src="{{faCode}}" height="72">{{/images}}
<br><br>
<span class="text-muted">{{title}}</span>
<br><br>
<a href="https://limenet.ch">
<img src="{{gravatar}}" alt="{{title}}" class="rounded-circle" height="256" width="256">
</a>
</h1>
</div>
</div>
</div>
{{#google_analytics}}
<script>
/* eslint-disable */
! function(a, b, c, d, e, f, g) {
a.GoogleAnalyticsObject = e, a[e] = a[e] || function() {
(a[e].q = a[e].q || []).push(arguments)
}, a[e].l = 1 * new Date, f = b.createElement(c), g = b.getElementsByTagName(c)[0], f.async = 1, f.src = d, g.parentNode.insertBefore(f, g)
}(window, document, "script", "https://www.google-analytics.com/analytics.js", "ga"), ga("create", '{{google_analytics}}', "auto"), ga("send", "pageview");
</script>
{{/google_analytics}}
<h1><code>&lt;/&gt;</code>&nbsp;{{title}}</h1>
<br><br>
<a href="https://limenet.ch" style="display: block; text-align: center;">
<img src="{{gravatar}}" alt="{{title}}" class="rounded-circle" height="256" width="256">
</a>
</body>
</html>

24 changes: 4 additions & 20 deletions templates/under-construction.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,10 @@
<style></style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<h1>{{title}}</h1>
<p class="lead">Diese Seite befindet sich im Aufbau.</p>
<br>
{{#images}}<a href="https://limenet.ch"><img src="{{limenetch}}" alt="limenet.ch"></a>{{/images}}
</div>
</div>
</div>
{{#google_analytics}}
<script>
/* eslint-disable */
! function(a, b, c, d, e, f, g) {
a.GoogleAnalyticsObject = e, a[e] = a[e] || function() {
(a[e].q = a[e].q || []).push(arguments)
}, a[e].l = 1 * new Date, f = b.createElement(c), g = b.getElementsByTagName(c)[0], f.async = 1, f.src = d, g.parentNode.insertBefore(f, g)
}(window, document, "script", "https://www.google-analytics.com/analytics.js", "ga"), ga("create", "{{google_analytics}}", "auto"), ga("send", "pageview");
</script>
{{/google_analytics}}
<h1>{{title}}</h1>
<p class="lead">Diese Seite befindet sich im Aufbau.</p>
<br>
{{#images}}<a href="https://limenet.ch"><img src="{{limenetch}}" alt="limenet.ch"></a>{{/images}}
</body>
</html>

0 comments on commit b5c9537

Please sign in to comment.