-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Survey: update survey structure, create radnetz-brandenburg config (#102
- Loading branch information
Showing
58 changed files
with
2,845 additions
and
488 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
## Logo for public survey BB | ||
|
||
The logo `bb-logo.png` in this folder is referenced in `/survey-public/radnetz-brandenburg/data/survey.ts`. Typically, we source logos directly from the public websites of the respective cycle highways. However, in this particular instance, no public website exists. Therefore, we have stored the logo in this repository. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
import { iframeResizer } from "iframe-resizer" | ||
import { useEffect } from "react" | ||
import { SurveyH2, SurveyP } from "./core/Text" | ||
import { SurveyScreenHeader } from "./core/layout/SurveyScreenHeader" | ||
import { SurveyLink } from "./core/links/SurveyLink" | ||
import { TEmail } from "./types" | ||
|
@@ -12,44 +11,25 @@ type Props = { | |
} | ||
|
||
export const Email: React.FC<Props> = ({ email }) => { | ||
const { description, questionText, button, title, mailjetWidgetUrl, homeUrl } = email | ||
const { description, button, title, mailjetWidgetUrl, homeUrl } = email | ||
|
||
useEffect(() => { | ||
iframeResizer({}, "#mailjet-widget") | ||
}, []) | ||
|
||
return ( | ||
<section> | ||
<SurveyScreenHeader title={title.de} /> | ||
<SurveyH2>{questionText.de}</SurveyH2> | ||
<SurveyP>{description.de}</SurveyP> | ||
<SurveyH2>Möchten Sie uns noch etwas mit auf den Weg geben?</SurveyH2> | ||
<SurveyP> | ||
Wenn Sie noch weiteres Feedback zur Online-Beteiligung haben, können Sie dies gerne an{" "} | ||
<SurveyLink href="mailto:[email protected]?subject=Feedback zum FRM7"> | ||
[email protected] | ||
</SurveyLink>{" "} | ||
senden.{" "} | ||
</SurveyP> | ||
<SurveyP className="mt-6"> | ||
<i className="mt-6"> | ||
<strong>Transparenzhinweis</strong>: Die Befragung wurde um die Fragen („Sind Sie bzw. | ||
Ihre Eltern in Deutschland geboren“) gekürzt, da diese bei Teilnehmenden zu Irritationen | ||
geführt haben. Ziel der Fragen im Rahmen des Forschungsprojekts war die Ermittlung, welche | ||
Zielgruppen in zukünftigen Beteiligungen ggf. noch gezielter angesprochen werden müssen. | ||
Nach eingängiger Diskussion wurde entschieden, die beiden Fragen zu entfernen. | ||
</i> | ||
</SurveyP> | ||
|
||
<div | ||
className="rounded border border-gray-300 my-6 mt-10" | ||
dangerouslySetInnerHTML={{ | ||
__html: ` | ||
<SurveyScreenHeader title={title.de} description={description.de} /> | ||
{mailjetWidgetUrl && ( | ||
<div | ||
className="rounded border border-gray-300 my-6 mt-10" | ||
dangerouslySetInnerHTML={{ | ||
__html: ` | ||
<iframe id="mailjet-widget" data-w-type="embedded" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="${mailjetWidgetUrl}" width="100%" style="height: 0px;"></iframe> | ||
`, | ||
}} | ||
/> | ||
|
||
}} | ||
/> | ||
)} | ||
<div className="pt-10"> | ||
<SurveyLink button={button.color} href={homeUrl}> | ||
{button.label.de} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { SurveyButton } from "./core/buttons/SurveyButton" | ||
import { SurveyButtonWrapper } from "./core/buttons/SurveyButtonWrapper" | ||
|
||
type Props = { onStartClick: () => void; startContent: React.ReactNode } | ||
|
||
export const Start: React.FC<Props> = ({ onStartClick, startContent }) => { | ||
return ( | ||
<div> | ||
{startContent} | ||
<SurveyButtonWrapper> | ||
<SurveyButton onClick={onStartClick}>Beteiligung starten</SurveyButton> | ||
</SurveyButtonWrapper> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.