+
@@ -8,7 +8,8 @@
@@ -34,7 +35,6 @@
width: 100%;
height: $size/2;
border-radius: 125px / 12px;
- box-shadow: 0 0 $size/5 $primary;
}
}
> span {
@@ -46,12 +46,24 @@
left: 50%;
margin-left: -$size/2;
border-radius: 100%;
- box-shadow:0 2px 4px $primary;
- background: theme-color-level('primary', $alert-bg-level);
- color: $primary;
display: grid;
place-items: center;
}
}
+
+ @each $color, $value in $theme-colors {
+ .separator-#{$color} {
+ > .mask {
+ &:after {
+ box-shadow: 0 0 $size/5 $value;
+ }
+ }
+ > span {
+ box-shadow:0 2px 4px $value;
+ background: theme-color-level($color, $alert-bg-level);
+ color: $value;
+ }
+ }
+ }
diff --git a/nuxt.config.js b/nuxt.config.js
index b57ac0fb..c049ef86 100644
--- a/nuxt.config.js
+++ b/nuxt.config.js
@@ -3,6 +3,8 @@ const description = 'To narzędzie udostępnia linki do przykładów użycia zai
const banner = process.env.BASE_URL + '/banner/zaimki.png';
const colour = '#C71585';
+const bodyParser = require('body-parser');
+
export default {
mode: 'universal',
target: 'server',
@@ -41,6 +43,7 @@ export default {
buildModules: [],
modules: [
'@nuxtjs/pwa',
+ '@nuxtjs/axios',
],
pwa: {
manifest: {
@@ -66,9 +69,16 @@ export default {
},
},
env: {
- baseUrl: process.env.BASE_URL
+ baseUrl: process.env.BASE_URL,
+ secret: process.env.SECRET,
},
serverMiddleware: {
+ '/': bodyParser.json(),
+ '/nouns': '~/server/nouns.js',
'/banner': '~/server/banner.js',
},
+ axios: {
+ baseURL: process.env.BASE_URL,
+ }
+
}
diff --git a/package.json b/package.json
index 153b2ac5..3a13f1d2 100644
--- a/package.json
+++ b/package.json
@@ -10,10 +10,16 @@
"serve": "nuxt serve"
},
"dependencies": {
+ "@nuxtjs/axios": "^5.12.0",
"@nuxtjs/pwa": "^3.0.0-beta.20",
+ "body-parser": "^1.19.0",
"canvas": "^2.6.1",
"nuxt": "^2.13.0",
- "vue-matomo": "^3.13.5-0"
+ "vue-matomo": "^3.13.5-0",
+ "sql-template-strings": "^2.2.2",
+ "sqlite": "^4.0.12",
+ "sqlite3": "^5.0.0",
+ "ulid": "^2.3.0"
},
"devDependencies": {
"@fortawesome/fontawesome-pro": "git+ssh://git@gitlab.com:Avris/FontAwesomePro.git",
diff --git a/pages/_.vue b/pages/_.vue
index a979924c..3232ad65 100644
--- a/pages/_.vue
+++ b/pages/_.vue
@@ -90,11 +90,6 @@
-
-