| @@ -13,11 +13,15 @@ export const createImageText = | |||||
| image = './dummy/why-elect.jpg', | image = './dummy/why-elect.jpg', | ||||
| link = '#', | link = '#', | ||||
| linkname = 'Mehr erfahren', | linkname = 'Mehr erfahren', | ||||
| copyright = 'Copyright' | |||||
| }) => { | }) => { | ||||
| const div = createElement('div', ['image-text', colored, switched], null); | const div = createElement('div', ['image-text', colored, switched], null); | ||||
| const div2 = createElement('div', ['image-text--image'], null, div); | const div2 = createElement('div', ['image-text--image'], null, div); | ||||
| const div3 = createElement('div', ['image-text--text'], null, div); | const div3 = createElement('div', ['image-text--text'], null, div); | ||||
| createImage(image, 1280, 1280, '', [], div2); | createImage(image, 1280, 1280, '', [], div2); | ||||
| const copy = createElement('span', ['copyright'], copyright, div2); | |||||
| copy.setAttribute("aria-hidden", "true"); | |||||
| createElement('span', ['sr-only'], copyright, div2); | |||||
| if (smallheadline){ | if (smallheadline){ | ||||
| createElement('h3', [], headline, div3); | createElement('h3', [], headline, div3); | ||||
| } | } | ||||
| @@ -83,6 +83,9 @@ | |||||
| border-bottom-right-radius: 4px; | border-bottom-right-radius: 4px; | ||||
| border-bottom-left-radius: 4px; | border-bottom-left-radius: 4px; | ||||
| } | } | ||||
| .copyright { | |||||
| @include copyright; | |||||
| } | |||||
| } | } | ||||
| h2 { | h2 { | ||||
| @@ -14,6 +14,7 @@ export const createEventOverviewStage = ({ | |||||
| backgroundImage = null, | backgroundImage = null, | ||||
| kicker = 'Das Veranstaltungsportal der IHK Musterstadt', | kicker = 'Das Veranstaltungsportal der IHK Musterstadt', | ||||
| headline = 'Veranstaltungsportal', | headline = 'Veranstaltungsportal', | ||||
| copyright = 'Copyright', | |||||
| maxItems = 6, | maxItems = 6, | ||||
| placeholder = 'Veranstaltungssuche, z.B. „Existenzgründung”', | placeholder = 'Veranstaltungssuche, z.B. „Existenzgründung”', | ||||
| api = 'services/search/{SEARCHTERM}.json', | api = 'services/search/{SEARCHTERM}.json', | ||||
| @@ -37,6 +38,9 @@ export const createEventOverviewStage = ({ | |||||
| //section.content('style=background: red;'); | //section.content('style=background: red;'); | ||||
| sectiondiv.style = 'background-image: url(' + backgroundImage + ');'; | sectiondiv.style = 'background-image: url(' + backgroundImage + ');'; | ||||
| sectiondiv.classList.add('background-image'); | sectiondiv.classList.add('background-image'); | ||||
| const copy = createElement('span', ['copyright'], copyright, sectiondiv); | |||||
| copy.setAttribute("aria-hidden", "true"); | |||||
| createElement('span', ['sr-only'], copyright, sectiondiv); | |||||
| } | } | ||||
| /*if (isFirstElement) { | /*if (isFirstElement) { | ||||
| @@ -20,8 +20,20 @@ | |||||
| margin: 0; | margin: 0; | ||||
| &.background-image { | &.background-image { | ||||
| position: relative; | |||||
| background-size: cover; | background-size: cover; | ||||
| background-position: 50% 50%; | background-position: 50% 50%; | ||||
| .copyright { | |||||
| @include copyright; | |||||
| @media(max-width: 629px) { | |||||
| bottom: 240px; | |||||
| left: calc(100% - 8px); | |||||
| } | |||||
| @media(min-width: 630px) and (max-width: 999px) { | |||||
| bottom: 100px; | |||||
| left: calc(100% - 8px); | |||||
| } | |||||
| } | |||||
| } | } | ||||
| &.first-element { | &.first-element { | ||||
| @@ -10,6 +10,7 @@ export default { | |||||
| kicker: 'Noch 7 Tage offen', | kicker: 'Noch 7 Tage offen', | ||||
| headline: 'Jetzt und digital mitreden', | headline: 'Jetzt und digital mitreden', | ||||
| copy: 'Mit der digitalen Beteiligung erhalten Mitgliedsunternehmen die Möglichkeit, sich einfach und schnell über laufende Verfahren und Abstimmungen zu informieren und sich aktiv daran zu beteiligen.', | copy: 'Mit der digitalen Beteiligung erhalten Mitgliedsunternehmen die Möglichkeit, sich einfach und schnell über laufende Verfahren und Abstimmungen zu informieren und sich aktiv daran zu beteiligen.', | ||||
| copyright: 'Copyright', | |||||
| moreCta: { | moreCta: { | ||||
| label: 'Mehr Infos', | label: 'Mehr Infos', | ||||
| link: '#', | link: '#', | ||||
| @@ -8,6 +8,7 @@ export const createParticipationStage = ({ | |||||
| kicker = 'Noch 7 Tage offen', | kicker = 'Noch 7 Tage offen', | ||||
| headline = 'Jetzt und digital mitreden', | headline = 'Jetzt und digital mitreden', | ||||
| copy = 'Mit der digitalen Beteiligung erhalten Mitgliedsunternehmen die Möglichkeit, sich einfach und schnell über laufende Verfahren und Abstimmungen zu informieren und sich aktiv daran zu beteiligen.', | copy = 'Mit der digitalen Beteiligung erhalten Mitgliedsunternehmen die Möglichkeit, sich einfach und schnell über laufende Verfahren und Abstimmungen zu informieren und sich aktiv daran zu beteiligen.', | ||||
| copyright = 'Copyright', | |||||
| moreCta = { | moreCta = { | ||||
| label: 'Mehr Infos', | label: 'Mehr Infos', | ||||
| link: '#', | link: '#', | ||||
| @@ -69,6 +70,9 @@ export const createParticipationStage = ({ | |||||
| section.classList.add('image-stage'); | section.classList.add('image-stage'); | ||||
| const ib = createElement('div', ['image-box'], null, col); | const ib = createElement('div', ['image-box'], null, col); | ||||
| createImage(imageSrc, 1080, 648, 'Beteiligung', [], ib); | createImage(imageSrc, 1080, 648, 'Beteiligung', [], ib); | ||||
| const copy = createElement('span', ['copyright'], copyright, ib); | |||||
| copy.setAttribute("aria-hidden", "true"); | |||||
| createElement('span', ['sr-only'], copyright, ib); | |||||
| } | } | ||||
| return section; | return section; | ||||
| @@ -96,6 +96,9 @@ | |||||
| opacity: 0; | opacity: 0; | ||||
| } | } | ||||
| } | } | ||||
| .copyright { | |||||
| @include copyright; | |||||
| } | |||||
| } | } | ||||
| @media(max-width: 1200px) { | @media(max-width: 1200px) { | ||||