From 9eaf3f80461f7012ce6a3d62de7812f05dd594ea Mon Sep 17 00:00:00 2001 From: Avris Date: Sat, 10 Jul 2021 16:46:29 +0200 Subject: [PATCH] #220 [profile] card images --- .gitignore | 1 + assets/style.scss | 9 - components/Profile.vue | 182 +++++++++ layouts/basic.vue | 20 + layouts/default.vue | 11 +- locale/de/translations.suml | 4 + locale/en/translations.suml | 3 + locale/es/translations.suml | 4 + locale/nl/translations.suml | 4 + locale/pl/translations.suml | 3 + locale/pt/translations.suml | 4 + locale/ru/translations.suml | 4 + locale/yi/translations.suml | 4 + locale/zh/translations.suml | 4 + migrations/029-cards.sql | 5 + nuxt.config.js | 1 + package.json | 1 + routes/profile.vue | 243 +++-------- routes/profileCard.vue | 41 ++ server/aws.js | 2 +- server/cards.js | 46 +++ server/no-ssr.js | 24 +- server/overload.js | 17 + server/routes/profile.js | 4 +- yarn.lock | 778 ++++++++++++++++++++++++++++++++++-- 25 files changed, 1169 insertions(+), 250 deletions(-) create mode 100644 components/Profile.vue create mode 100644 layouts/basic.vue create mode 100644 migrations/029-cards.sql create mode 100644 routes/profileCard.vue create mode 100644 server/cards.js create mode 100644 server/overload.js diff --git a/.gitignore b/.gitignore index b2dfa300..aa4e0449 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ /stats.json /cache +/static/card # Created by .ignore support plugin (hsz.mobi) ### Node template diff --git a/assets/style.scss b/assets/style.scss index fcc033ec..c0b515e2 100644 --- a/assets/style.scss +++ b/assets/style.scss @@ -61,15 +61,6 @@ body { max-width: min(90vw, 920px); } -@include media-breakpoint-up('lg', $grid-breakpoints) { - body { - margin-top: $header-margin; - } - .sticky-top { - top: $header-height - 1px; - } -} - section { margin: 2*$spacer 0; } diff --git a/components/Profile.vue b/components/Profile.vue new file mode 100644 index 00000000..e2a9e89e --- /dev/null +++ b/components/Profile.vue @@ -0,0 +1,182 @@ + + + + + diff --git a/layouts/basic.vue b/layouts/basic.vue new file mode 100644 index 00000000..bdbc0980 --- /dev/null +++ b/layouts/basic.vue @@ -0,0 +1,20 @@ + + + + + diff --git a/layouts/default.vue b/layouts/default.vue index 4cae38cf..c130dd0b 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,5 +1,5 @@