diff --git a/sites/coderdojo/anmelden.md b/sites/coderdojo/anmelden.md index 7114a18..6487e7a 100644 --- a/sites/coderdojo/anmelden.md +++ b/sites/coderdojo/anmelden.md @@ -53,7 +53,7 @@ Bitte verrate uns deinen Namen und den deines Kindes Name des Kindes: - + Optional kannst du uns jetzt noch eine Telefonnummer für Notfälle hinterlassen. diff --git a/sites/coderdojo/kontakt/fehler.md b/sites/coderdojo/kontakt/fehler.md new file mode 100644 index 0000000..74e9d48 --- /dev/null +++ b/sites/coderdojo/kontakt/fehler.md @@ -0,0 +1,15 @@ +--- +layout: layouts/page.njk +--- + +# Da passt was nicht… + +**Entschuldigung**  —  +Leider konnten wir dein Formular nicht verarbeiten. +Stelle bitte sicher, dass du alle Felder korrekt ausgefüllt hast. + +Außerdem darf dein Browser Cookies nicht blockieren. +Das kann auch durch einen Werbeblocker passieren – eventuell musst du für unsere Seite eine Ausnahme hinterlegen. +Wir verwenden Cookies nur für die Sicherheit unserer Formulare und binden weder Werbung noch Tracking-Dienste ein. + +Wenn das alles nicht hilft, schreibe uns bitte an [kontakt@coderdojo-wue.de](mailto:kontakt@coderdojo-wue.de). diff --git a/sites/coderdojo/kontakt/fertig.md b/sites/coderdojo/kontakt/fertig.md new file mode 100644 index 0000000..2d76650 --- /dev/null +++ b/sites/coderdojo/kontakt/fertig.md @@ -0,0 +1,34 @@ +--- +layout: layouts/page.njk +extraStylesheets: ['finish'] +--- + +# Es hat geklappt! + + + + + + + + + + + + + +**Vielen Dank** —  +Wir haben deine Anfrage erhalten. diff --git a/styles/finish.scss b/styles/finish.scss index 2b5742a..9c47fb4 100644 --- a/styles/finish.scss +++ b/styles/finish.scss @@ -10,6 +10,41 @@ @use 'lib/motion'; .finish-hero { + --dark-idle-color: #{colors.$gray-900}; + --light-idle-color: #{colors.$gray-600}; + --idle-color-1: #{colors.$teal-600}; + --idle-color-2: #{colors.$yellow-600}; + --idle-color-3: #{colors.$blue-800}; + --gradient-color-1: var(--dark-idle-color); + --gradient-color-2: var(--dark-idle-color); + --gradient-color-3: #{colors.$blue-500}; + --gradient-color-4: #{colors.$teal-500}; + --gradient-color-5: #{colors.$yellow-500}; + --gradient-color-6: #{colors.$teal-500}; + --gradient-color-7: #{colors.$gray-300}; + --gradient-color-8: #{colors.$yellow-500}; + --gradient-color-9: #{colors.$blue-500}; + --gradient-color-10: #{colors.$gray-300}; + --gradient-color-11: var(--dark-idle-color); + --gradient-color-12: var(--dark-idle-color); + --gradient-color-13: var(--dark-idle-color); + + @include colors.coderdojo-theme { + --dark-idle-color: #{colors.$brown-800}; + --light-idle-color: #{colors.$brown-500}; + --idle-color-1: #{colors.$green-500}; + --idle-color-2: #{colors.$orange-500}; + --idle-color-3: #{colors.$yellow-500}; + --gradient-color-3: #{colors.$orange-500}; + --gradient-color-4: #{colors.$orange-400}; + --gradient-color-5: #{colors.$yellow-500}; + --gradient-color-6: #{colors.$green-500}; + --gradient-color-7: #{colors.$green-300}; + --gradient-color-8: #{colors.$orange-400}; + --gradient-color-9: #{colors.$orange-500}; + --gradient-color-10: #{colors.$green-500}; + } + @keyframes finish-hero { 0% { stroke-width: 3px; @@ -37,20 +72,14 @@ animation: motion.$prominent 0s 1 normal both running finish-hero; > .stroke-gradient { - $idle-color: colors.$gray-900; - $colors: [ $idle-color $idle-color $idle-color colors.$blue-500 - colors.$teal-500 colors.$yellow-500 colors.$teal-500 colors.$gray-300 - colors.$yellow-500 colors.$blue-500 colors.$gray-300 $idle-color - $idle-color $idle-color ]; - @for $i from 1 through 4 { > stop:nth-of-type(#{$i}) { @keyframes finish-stroke-gradient-#{$i} { 0% { - stop-color: $idle-color; + stop-color: var(--dark-idle-color); } 15% { - stop-color: $idle-color; + stop-color: var(--dark-idle-color); } // This is some magic that chooses the correct colors for each // stop - don't change it unless you know what you are doing! In @@ -63,16 +92,16 @@ // In order to achieve the 'moving' effect, we make sure that the // first and last three colors match the ones we are given at 15% and // 70% (before and after the core animation). - @for $j from 1 to list.length($colors) - 3 { + @for $j from 1 to 10 { #{15% + $j * 5%} { - stop-color: list.nth($colors, 4 + $j - $i); + stop-color: var(--gradient-color-#{4 + $j - $i}); } } 70% { - stop-color: $idle-color; + stop-color: var(--dark-idle-color); } 100% { - stop-color: $idle-color; + stop-color: var(--dark-idle-color); } } @@ -123,27 +152,27 @@ } @keyframes finish-hero-plug-transition { 0% { - fill: colors.$gray-900; + fill: var(--dark-idle-color); } 100% { - fill: colors.$gray-600; + fill: var(--light-idle-color); } } @keyframes finish-hero-plug-idle { 0% { - fill: colors.$gray-600; + fill: var(--light-idle-color); } 25% { - fill: colors.$teal-600; + fill: var(--idle-color-1); } 50% { - fill: colors.$yellow-600; + fill: var(--idle-color-2); } 75% { - fill: colors.$blue-800; + fill: var(--idle-color-3); } 100% { - fill: colors.$gray-600; + fill: var(--light-idle-color); } }