aboutsummaryrefslogtreecommitdiff
path: root/app/views/contact.view.php
blob: 42c03a574b1751a654bd918b0168b37c723bf4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php $title = 'Contact - ' ?>

<?php require __DIR__ . '/partials/header.php'; ?>

<body>

<?php require __DIR__ . '/partials/navigator.php'; ?>

<main>
  <contact-page>
    <article>

      <h1>Contact</h1>

      <?php if (isset($formSuccess)) : ?>
        <aside>
          <p>Your message has been successful. I'll get in touch with you soon!</p>
        </aside>
      <?php endif; ?>

      <p>
        Interested in collaborating? Complete and submit the form below to send me a
        direct message.
      </p>

      <form method="post" action="/contact/">

        <field-set>

          <section>
            <label for="name">Name</label>
            <input
              id="name"
              type="text"
              name="26471"
              value="<?php echo $name ?? '' ?>"
            >
          </section>

          <section>
            <label for="email">Email <span data-danger>*</span></label>
            <input
              required
              id="email"
              type="email"
              name="26472"
              value="<?php echo $email ?? '' ?>"
              <?php echo $border = isset($emailError) ? 'data-contact-required' : '';?>
            >
          </section>

        </field-set>

        <label for="message">Message <span data-danger>*</span></label>
        <textarea
          id="message"
          name="26478"
          placeholder="" required
        ><?php echo $message ?? '' ?> </textarea>

        <button>
          <?php echo icon('send'); ?>
          <span>Send Message</span>
        </button>

        <input type="checkbox" name="agree" tabindex="-1">

      </form>

      </article>
    </contact-page>
  </main>

<?php require __DIR__ . '/partials/footer.php'; ?>

  </body>
</html>