Skip to content

Commit

Permalink
cleanup refactor rebranding
Browse files Browse the repository at this point in the history
  • Loading branch information
ogerly committed Sep 22, 2022
1 parent 0293fec commit 5f5c0fa
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 65 deletions.
6 changes: 4 additions & 2 deletions webapp/components/Logo/Logo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
},
data() {
const logosObject = {
header: { path: logos.LOGO_HEADER_PATH, alt: 'Header', widthDefault: '47px' },
header: { path: logos.LOGO_HEADER_PATH, alt: 'Header', widthDefault: logos.LOGO_HEADER_WIDTH },
welcome: { path: logos.LOGO_WELCOME_PATH, alt: 'Welcome', widthDefault: '200px' },
#: { path: logos.LOGO_#_PATH, alt: '#', widthDefault: '200px' },
logout: { path: logos.LOGO_LOGOUT_PATH, alt: 'Logging Out', widthDefault: '200px' },
Expand Down Expand Up @@ -90,6 +90,9 @@ export default {
return `width: ${width};`
},
},
created() {
console.log('logoWidth', this.logoWidth)
},
}
</script>

Expand All @@ -107,7 +110,6 @@ export default {
}
.ds-logo-svg {
width: 47px;
height: auto;
fill: #000000;
}
Expand Down
6 changes: 0 additions & 6 deletions webapp/components/Logo/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,4 @@

.ds-logo-inverse {
color: $text-color-primary-inverse;
}

.ds-logo-svg {
width: 47px;
height: auto;
fill: currentColor;
}
29 changes: 3 additions & 26 deletions webapp/constants/headerMenu.js
Original file line number Diff line number Diff line change
@@ -1,36 +1,13 @@
export default {
SHOW_HEADER_MENU: true,
MENU: [
{
name: 'Beiträge',
path: '/#',
},
// {
// name: 'Themen',
// path: '/#',
// },
// {
// name: 'Gruppen',
// name: 'Beiträge',
// path: '/#',
// },
{
name: 'Über Yunite',
path: '/#',
url: 'https://yunite.org',
// children: [
// {
// name: 'Impressum',
// path: '/#',
// },
// {
// name: 'Yunite Team',
// path: '/#',
// },
// ],
},
// {
// name: 'Topic',
// name: 'Über Yunite',
// path: '/#',
// url: 'https://yunite.org',
// },
],
}
18 changes: 9 additions & 9 deletions webapp/constants/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { defaultPageParamsPages } from '~/components/utils/InternalPages.js'

const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({
externalLink: 'https://yunite.org', // if string is defined and not empty it's dominating
externalLink: 'https://ocelot.social', // if string is defined and not empty it's dominating

internalPage: {
// footerIdent: 'site.made', // localized string identifier, if undefined default is used
Expand All @@ -17,7 +17,7 @@ const ORGANIZATION = defaultPageParamsPages.ORGANIZATION.overwrite({
})
const DONATE = defaultPageParamsPages.DONATE.overwrite({
// we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
externalLink: 'https://yunite.org/brand-guidelines/', // if string is defined and not empty it's dominating
externalLink: 'https://ocelot-social.herokuapp.com/donations', // if string is defined and not empty it's dominating

internalPage: {
// footerIdent: 'site.donate', // localized string identifier, if undefined default is used
Expand All @@ -31,7 +31,7 @@ const DONATE = defaultPageParamsPages.DONATE.overwrite({
})
const IMPRINT = defaultPageParamsPages.IMPRINT.overwrite({
// we use 'ocelot-social.herokuapp.com' at the moment, because redirections of 'ocelot.social' subpages are not working correctly
externalLink: 'https://yunite.org/impressum/', // if string is defined and not empty it's dominating
externalLink: 'https://ocelot-social.herokuapp.com/imprint', // if string is defined and not empty it's dominating

internalPage: {
// footerIdent: 'site.imprint', // localized string identifier, if undefined default is used
Expand All @@ -57,7 +57,7 @@ const TERMS_AND_CONDITIONS = defaultPageParamsPages.TERMS_AND_CONDITIONS.overwri
},
})
const CODE_OF_CONDUCT = defaultPageParamsPages.CODE_OF_CONDUCT.overwrite({
externalLink: 'https://yunite.org/ueber-yunite/unsere-werte/', // if string is defined and not empty it's dominating
// externalLink: null, // if string is defined and not empty it's dominating

internalPage: {
// footerIdent: 'site.code-of-conduct', // localized string identifier, if undefined default is used
Expand All @@ -70,7 +70,7 @@ const CODE_OF_CONDUCT = defaultPageParamsPages.CODE_OF_CONDUCT.overwrite({
},
})
const DATA_PRIVACY = defaultPageParamsPages.DATA_PRIVACY.overwrite({
externalLink: 'https://yunite.org/datenschutz/', // if string is defined and not empty it's dominating
// externalLink: null, // if string is defined and not empty it's dominating

internalPage: {
// footerIdent: 'site.data-privacy', // localized string identifier, if undefined default is used
Expand All @@ -83,7 +83,7 @@ const DATA_PRIVACY = defaultPageParamsPages.DATA_PRIVACY.overwrite({
},
})
const FAQ = defaultPageParamsPages.FAQ.overwrite({
externalLink: 'https://yunite.org/ueber-yunite/faq-hilfe/', // if string is defined and not empty it's dominating
// externalLink: null, // if string is defined and not empty it's dominating

internalPage: {
// footerIdent: 'site.faq', // localized string identifier, if undefined default is used
Expand Down Expand Up @@ -125,12 +125,12 @@ export default {

FOOTER_LINK_LIST: [
ORGANIZATION,
// TERMS_AND_CONDITIONS,
TERMS_AND_CONDITIONS,
CODE_OF_CONDUCT,
DATA_PRIVACY,
FAQ,
// DONATE,
// SUPPORT,
DONATE,
SUPPORT,
IMPRINT,
],
}
1 change: 1 addition & 0 deletions webapp/constants/logos.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// this are the paths in the webapp
export default {
LOGO_HEADER_PATH: '/img/custom/logo-horizontal.svg',
LOGO_HEADER_WIDTH: '130px',
LOGO_#_PATH: '/img/custom/logo-squared.svg',
LOGO_WELCOME_PATH: '/img/custom/logo-squared.svg',
LOGO_LOGOUT_PATH: '/img/custom/logo-squared.svg',
Expand Down
10 changes: 6 additions & 4 deletions webapp/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ds-container class="main-navigation-container" style="padding: 10px 10px">
<div>
<ds-flex class="main-navigation-flex">
<ds-flex-item :width="{ base: '47px' }" style="margin-right: 20px">
<ds-flex-item :width="{ base: LOGOS.LOGO_HEADER_WIDTH }" style="margin-right: 20px">
<nuxt-link :to="{ name: 'index' }" v-scroll-to="'.main-navigation'">
<logo logoType="header" />
</nuxt-link>
Expand Down Expand Up @@ -47,8 +47,8 @@
:width="{
base: '45%',
sm: '45%',
md: show ? 'auto' : '45%',
lg: show ? 'auto' : '50%',
md: isHeaderMenu ? 'auto' : '45%',
lg: isHeaderMenu ? 'auto' : '50%',
}"
:class="{ 'hide-mobile-menu': !toggleMobileMenu }"
style="flex-shrink: 0; flex-grow: 1"
Expand Down Expand Up @@ -113,6 +113,7 @@

<script>
import Logo from '~/components/Logo/Logo'
import LOGOS from '../constants/logos.js'
import headerMenu from '../constants/headerMenu.js'
import { mapGetters } from 'vuex'
import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch'
Expand Down Expand Up @@ -142,7 +143,8 @@ export default {
mixins: [seo],
data() {
return {
show: headerMenu.SHOW_HEADER_MENU,
LOGOS,
isHeaderMenu: headerMenu.MENU.length > 0,
menu: headerMenu.MENU,
mobileSearchVisible: false,
toggleMobileMenu: false,
Expand Down
Loading

0 comments on commit 5f5c0fa

Please # to comment.