Skip to content

Commit

Permalink
Remome matomo and eastern
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rcs committed Apr 7, 2024
1 parent 71fc355 commit e5b5fb5
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 175 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- run: yarn
- run: yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- run: yarn
- run: yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
42 changes: 22 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
{
"name": "fahrrad-strutt",
"version": "2.0.0",
"private": true,
"source": "src/index.html",
"devDependencies": {
"parcel": "^2.10.1",
"parcel-reporter-static-files-copy": "^1.5.3"
},
"dependencies": {
"@fontsource/lato": "^5.0.17",
"@fontsource/rubik": "^5.0.17",
"@fortawesome/fontawesome-free": "^6.4.2",
"@parcel/transformer-sass": "^2.10.1",
"bulma": "^0.9.4",
"fullpage.js": "=4.0.10"
},
"scripts": {
"build": "parcel build",
"serve": "parcel"
}
"name": "fahrrad-strutt",
"version": "2.0.0",
"private": true,
"source": "src/index.html",
"devDependencies": {
"parcel": "2.12.0",
"parcel-reporter-static-files-copy": "1.5.3",
"prettier": "3.2.5"
},
"dependencies": {
"@fontsource/lato": "5.0.20",
"@fontsource/rubik": "5.0.19",
"@fortawesome/fontawesome-free": "6.5.2",
"@parcel/transformer-sass": "2.12.0",
"bulma": "0.9.4",
"fullpage.js": "=4.0.10"
},
"scripts": {
"build": "parcel build",
"serve": "parcel"
},
"packageManager": "[email protected]"
}
198 changes: 98 additions & 100 deletions src/block-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,128 +5,126 @@ $block-list-separator: 0.25rem !default;
$block-list-highlight-width: 5px !default;

.content {
ul.block-list {
list-style: none;
margin-left: 0;
}
ul.block-list {
list-style: none;
margin-left: 0;
}
}

.block-list {
list-style: none;
list-style: none;

li {
padding: math.div($gap, 2);
background: $light;
margin-bottom: $block-list-separator;
}
li {
padding: math.div($gap, 2);
background: $light;
margin-bottom: $block-list-separator;
}

li.is-left,
&.is-left > li {
text-align: left;
}
li.is-left,
&.is-left > li {
text-align: left;
}

li.is-centered,
&.is-centered > li {
text-align: center;
}

li.is-centered,
&.is-centered > li {
text-align: center;
}
li.is-right,
&.is-right > li {
text-align: right;
}

li.is-right,
&.is-right > li {
text-align: right;
}
li.is-small,
&.is-small > li {
font-size: $small-font-size;
padding: math.div($gap, 3);
}

li.is-small,
&.is-small > li {
font-size: $small-font-size;
padding: math.div($gap, 3);
}
li.is-normal,
&.is-normal > li {
font-size: $body-font-size;
}

li.is-normal,
&.is-normal > li {
font-size: $body-font-size;
}
li.is-large,
&.is-large > li {
font-size: $size-large;
}

li.has-radius,
&.has-radius > li {
border-radius: $radius;
}

li.is-highlighted,
&.is-highlighted > li {
border-left: $block-list-highlight-width $dark solid;
}

@mixin outlined($color) {
background: transparent;
color: $color;
border: 1px solid $color;
}

li.is-outlined,
&.is-outlined > li {
@include outlined($border);
color: $text;
}

li.has-icon {
display: flex;

li.is-large,
&.is-large > li {
font-size: $size-large;
.icon {
flex-grow: 0;
flex-shrink: 0;
flex-basis: auto;
margin-right: 1em;
}

li.has-radius,
&.has-radius > li {
border-radius: $radius;
span {
flex-grow: 1;
}

li.is-highlighted,
&.is-highlighted > li {
border-left: $block-list-highlight-width $dark solid;
&.is-right {
.icon {
margin-right: 0;
margin-left: 1em;
}
}
}

@each $name, $pair in $colors {
$color: nth($pair, 1);
$color-invert: nth($pair, 2);

@mixin outlined($color) {
background: transparent;
color: $color;
border: 1px solid $color;
li.is-#{$name},
&.is-#{$name} > li {
background: $color;
color: $color-invert;
}

li.is-outlined,
&.is-outlined > li {
@include outlined($border);
color: $text;
li.is-#{$name}.is-outlined {
@include outlined($color);
}

li.has-icon {
display: flex;

.icon {
flex-grow: 0;
flex-shrink: 0;
flex-basis: auto;
margin-right: 1em;
}

span {
flex-grow: 1;
}

&.is-right {
.icon {
margin-right: 0;
margin-left: 1em
}
}
li.is-#{$name}.is-highlighted {
@include outlined($color);
border-left: $block-list-highlight-width $color solid;
}

@each $name, $pair in $colors {

$color: nth($pair, 1);
$color-invert: nth($pair, 2);

li.is-#{$name},
&.is-#{$name} > li {
background: $color;
color: $color-invert;
}

li.is-#{$name}.is-outlined {
@include outlined($color);
}

li.is-#{$name}.is-highlighted {
@include outlined($color);
border-left: $block-list-highlight-width $color solid;
}

&.is-#{$name} {
li.is-outlined,
&.is-outlined > li {
@include outlined($color);
}

li.is-highlighted,
&.is-highlighted > li {
@include outlined($color);
border-left: $block-list-highlight-width $color solid;
}
}
&.is-#{$name} {
li.is-outlined,
&.is-outlined > li {
@include outlined($color);
}

li.is-highlighted,
&.is-highlighted > li {
@include outlined($color);
border-left: $block-list-highlight-width $color solid;
}
}
}
}
31 changes: 1 addition & 30 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
Expand All @@ -8,21 +8,6 @@
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png" />
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://fahrradstrutt.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='https://cdn.matomo.cloud/fahrradstrutt.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
</head>

<body>
Expand Down Expand Up @@ -80,20 +65,6 @@ <h1 class="is-size-3-mobile is-size-2-tablet">Fahrrad Strutt</h1>
</div>
</div>
<div id="fullpage">

<div data-anchor="home" class="fpsection">
<div class="columns is-centered">
<div class="column is-full-mobile is-three-quarters-tablet is-half-widescreen">
<div class="content has-text-centered">
<h2 class="has-text-success">Rabatte bis der 🐰Osterhase🐰 kommt - bis zum Ostersamstag 30.03.2024 bis zu 1000€ sparen - auf E-Bikes und Bio-Bikes</h2>
<p>
<img src="img/strutt-fahrrad_19.3.2024-1.png" alt="" />
</p>
</div>
</div>
</div>
</div>

<div data-anchor="home" class="fpsection">
<div class="columns is-centered">
<div class="column is-full-mobile is-three-quarters-tablet is-half-widescreen">
Expand Down
Loading

0 comments on commit e5b5fb5

Please sign in to comment.