Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add and update forms #431

Merged
merged 4 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 21 additions & 25 deletions src/_assets/css/common/forms.css
Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
/* General Form Styling */
form {
fieldset {
border: 0;
padding: 0;
border-top: 2px solid var(--lilac);
}

/* Fieldset Styling */
form fieldset {
border: 0;
fieldset:not(:first-child) {
margin-block-start: var(--spacing-double);
}

fieldset > :not(legend) {
padding-inline-start: var(--spacing);
}

/* Legend Styling */
form legend {
legend {
font-size: 1.2em;
font-weight: bold;
padding-inline: var(--spacing-half);
margin-block-end: var(--spacing);
}

/* Form Element Spacing */
form .form-element {
margin-bottom: var(--spacing);
.form-element {
margin-block-end: var(--spacing);
}

/* Label Styling */
form label.form-label {
label {
display: block;
font-weight: bold;
margin-bottom: var(--spacing-half);
margin-block-end: var(--spacing-half);
}

/* Input and Textarea Styling */
form input[type="text"],
form input[type="email"],
form textarea {
Expand All @@ -38,37 +41,30 @@ form textarea {
box-sizing: border-box;
}

/* Textarea Specific Styling */
form textarea {
resize: vertical;
height: 120px;
}

/* Radio Button Group Styling */
form ul {
list-style: none;
padding: 0;
margin: 0;
}

form ul li {
margin-bottom: var(--spacing-half);
margin-block-end: var(--spacing-half);
}

/* Radio Input Styling */
form input[type="radio"] {
margin-right: var(--spacing-half);
}

/* Optional and Instructional Text Styling */
form em {
margin-block-start: var(--spacing-half);
font-style: italic;
color: #666;
}

/* Spam Check Field (Hidden) */
form .spam-check {
display: none;
font-weight: normal;
display: block;
}

/* Adjustments for spacing and alignment */
Expand Down
39 changes: 20 additions & 19 deletions src/_data/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,18 @@ module.exports = {
url: "/nl/werk-en-freelance/vacature-plaatsen/",
title: "Vacature plaatsen",
},
{
url: "/nl/werk-en-freelance/voorwaarden/",
title: "Vacaturebank voorwaarden",
},
// {
// title: "Freelancers",
// url: "/nl/freelancers",
// },
// {
// title: "Mentors",
// url: "/nl/mentors",
// },
{
title: "Mentors",
url: "/nl/mentors",
},
],
},
{
Expand Down Expand Up @@ -235,14 +239,19 @@ module.exports = {
url: "/en/jobs/post-job-opening/",
title: "Post a job opening",
},
,
{
url: "/en/jobs/post-job-opening/toc",
title: "Job bank terms",
},
// {
// title: "Freelancers",
// url: "/en/freelancers",
// },,
// {
// title: "Mentors",
// url: "/en/mentors",
// },
{
title: "Mentors",
url: "/en/mentors",
},
],
},
{
Expand Down Expand Up @@ -288,7 +297,7 @@ module.exports = {
footer: {
nl: [
{
url: "/nl/informatie/contact/",
url: "/nl/vereniging/contact/",
title: "Contact",
},
{
Expand All @@ -302,15 +311,11 @@ module.exports = {
{
url: "/nl/informatie/colofon/",
title: "Colofon",
},
// {
// url: "/nl/informatie/adverteren/",
// title: "Adverteren",
// },
},
],
en: [
{
url: "/en/information/contact/",
url: "/en/organisation/contact/",
title: "Contact",
},
{
Expand All @@ -325,10 +330,6 @@ module.exports = {
url: "/en/information/colophon/",
title: "Colophon",
},
// {
// url: "/en/footer/advertise/",
// title: "Advertise",
// },
],
},
};
5 changes: 0 additions & 5 deletions src/en/information/advertise/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion src/en/information/colophon/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ We use Roboto and Fabrik on this website. Fabrik is a font by [TIGHTYPE™](http

## Hosting

The website is hosted by [Netlify](https://www.netlify.com), who sponsor us with an [Open Source Unlimited package](https://www.netlify.com/legal/open-source-policy/).
The website is hosted by [Netlify](https://www.netlify.com), who sponsor us with an [Open Source Unlimited](https://www.netlify.com/legal/open-source-policy/) package.

## Statistics

Expand Down
21 changes: 0 additions & 21 deletions src/en/information/contact/index.md

This file was deleted.

11 changes: 5 additions & 6 deletions src/en/information/newsletter/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
---
key: newsletter
title: Newsletter
title: Subscribe to our newsletter
---

Every now and then, we send a newsletter with news related to our association and front-end development. Don't want to miss out? Subscribe here.

<form action="https://fronteers.us10.list-manage.com/subscribe/post?u=d8d859a3bce138807ce785741&amp;id=49b991ad18" method="post" class="generated">
<fieldset>
<legend>Sign up for our newsletter</legend>
<p><label for="subscribe-email">E-mail address <em>required</em></label> <input type="email" name="EMAIL" id="subscribe-email" class="text"></p>
<p><label for="subscribe-email">Email address <em>required</em></label> <input type="email" name="EMAIL" id="subscribe-email" class="text"></p>
<p><label for="subscribe-voornaam">First name</label> <input type="text" name="FNAME" id="subscribe-voornaam" class="text"></p>
<p><label for="subscribe-achternaam">Last name</label> <input type="text" name="LNAME" id="subscribe-achternaam" class="text"></p>
<p class="submit"><input type="submit" value="Aanmelden" class="submit"></p>
</fieldset>
<p class="submit"><button class="button-parentheses">Subscribe</button></p>
</form>
85 changes: 0 additions & 85 deletions src/en/jobs/post-job-opening/form.md

This file was deleted.

Loading