Skip to content

Commit

Permalink
kontakt form sending working
Browse files Browse the repository at this point in the history
  • Loading branch information
malte-j committed Sep 11, 2020
1 parent 3dfcee0 commit 408a3cc
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 1 deletion.
78 changes: 78 additions & 0 deletions themes/argo/page-kontakt.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?php
get_header();
?>
<main>
<header>
<h1>Jetzt mit uns durchstarten:</h1>
</header>

<form action="https://receive-forms.glitch.me/api/upload" method="post" class="contact-form">
<p class="label">Art des Projekts</p>
<div class="select-column">
<div class="option">
<input type="radio" name="type" id="type_website" value="website" checked>
<label for="type_website">Website</label>
</div>

<div class="option">
<input type="radio" name="type" id="type_marketing" value="marketing">
<label for="type_marketing">Marketing</label>
</div>

<div class="option">
<input type="radio" name="type" id="type_workshops" value="workshops">
<label for="type_workshops">Workshops</label>
</div>

<div class="option">
<input type="radio" name="type" id="type_softwareintegration" value="softwareintegration">
<label for="type_softwareintegration">Softwareintegration</label>
</div>
</div>

<p class="label">Anzahl der Mitarbeiter</p>
<div class="select-row">
<div class="option">
<input type="radio" name="employees" id="employees_st5" value="<5" checked>
<label for="employees_st5"> &lt5 </label>
</div>

<div class="option">
<input type="radio" name="employees" id="employees_st50" value="<50">
<label for="employees_st50"> &lt50 </label>
</div>

<div class="option">
<input type="radio" name="employees" id="employees_st100" value="<100">
<label for="employees_st100"> &lt100 </label>
</div>

<div class="option">
<input type="radio" name="employees" id="employees_gt100" value=">100">
<label for="employees_gt100"> &gt100 </label>
</div>
</div>


<label for="name" class="label">Ihr Name</label>
<input type="text" name="name" id="name" required placeholder="Max Mustermann">


<label for="phonenumber" class="label">Ihre Telefonnummer</label>
<input type="tel" name="phonenumber" id="phonenumber" placeholder="+49151701723">

<label for="email" class="label">Ihre Emailadresse</label>
<input type="email" name="email" id="email">

<label for="info" class="label">Weitere Details</label>
<textarea name="info" id="info" cols="12" rows="5"></textarea>

<input type="submit" value="Abschicken">

</div>

</form>
</main>

<?php get_footer(); ?>

99 changes: 99 additions & 0 deletions themes/argo/scss/contact-form.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
.contact-form {
.label {
display: block;
margin: 2rem 0 .5rem;
}

input {
display: block;
}

textarea {
resize: vertical;
}

textarea, input {
font-family: inherit;
border-radius: 0;
border: none;
border-radius: 0;
padding: 1.5ch;
margin: 0;

outline: 1px solid black;
width: 100%;

&:focus {
outline-width: 2px;
}
}

input[type="submit"] {
margin: 2rem 0 .5rem;
background: black;
color: white;
}

.select-column {
border: 1px solid black;

input {
display: none;
}

.option:not(:last-child) {
border-bottom: 1px solid black;
}

label {
cursor: pointer;
padding: 1.5ch;
display: block;

&:hover {
background: #f5f5f5;
}
}

input:checked + label {
background: #E2E2E2;
}
}

.select-row {
display: flex;
align-items: center;
justify-content: center;
border: 1px solid black;

input {
display: none;
}

.option {
&:not(:last-child) {
border-right: 1px solid black;
}
}

label {
display: block;
width: 100%;
text-align: center;
cursor: pointer;
padding: 1.5ch;

&:hover {
background: #f5f5f5;
}
}

input:checked + label {
background: #E2E2E2;
}

.option {
flex: 1;
}
}
}
4 changes: 3 additions & 1 deletion themes/argo/scss/main-style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@import "./old-style.scss";
@import "./typography.scss";

html, body, #page {
html, body.home, #page {
height: -webkit-fill-available;
}

Expand All @@ -25,3 +25,5 @@ h1, h2, h3, h4, h5, h6 {
@import "./testimonials.scss";
@import "./temp.scss";
@import "./portfolio.scss";
@import "./contact-form.scss";

0 comments on commit 408a3cc

Please sign in to comment.