remove contact form
This commit is contained in:
parent
a7dbe55694
commit
1f059dc2f6
7 changed files with 26 additions and 250 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<section class="section">
|
||||
<h2>Contact</h2>
|
||||
|
||||
<%== erb :'partials/_contact_form', layout: false %>
|
||||
<p class="contact-intro">Reach me directly by email or Telegram.</p>
|
||||
|
||||
<dl class="kv contact-direct">
|
||||
<dt>Email</dt><dd><a href="mailto:ie@asxp.io">ie@asxp.io</a></dd>
|
||||
|
|
|
|||
|
|
@ -1,44 +0,0 @@
|
|||
<% errors = (defined?(@form_errors) && @form_errors) || {} %>
|
||||
<% values = (defined?(@form_values) && @form_values) || {} %>
|
||||
|
||||
<form class="contact-form" method="post" action="/contact" autocomplete="on">
|
||||
<input type="hidden" name="authenticity_token" value="<%= csrf_token %>" />
|
||||
|
||||
<div class="hp" aria-hidden="true">
|
||||
<label>Website<input type="text" name="website" tabindex="-1" autocomplete="off" /></label>
|
||||
</div>
|
||||
|
||||
<% if errors[:base] %>
|
||||
<div class="form-error form-error-base"><%= errors[:base] %></div>
|
||||
<% end %>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="field">
|
||||
<label for="cf-name">Name</label>
|
||||
<input id="cf-name" type="text" name="name" maxlength="100" required value="<%= values[:name] %>" />
|
||||
<% if errors[:name] %><span class="form-error"><%= errors[:name] %></span><% end %>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label for="cf-email">Email</label>
|
||||
<input id="cf-email" type="email" name="email" maxlength="200" required value="<%= values[:email] %>" />
|
||||
<% if errors[:email] %><span class="form-error"><%= errors[:email] %></span><% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label for="cf-subject">Subject <span class="optional">(optional)</span></label>
|
||||
<input id="cf-subject" type="text" name="subject" maxlength="200" value="<%= values[:subject] %>" />
|
||||
<% if errors[:subject] %><span class="form-error"><%= errors[:subject] %></span><% end %>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<label for="cf-message">Message</label>
|
||||
<textarea id="cf-message" name="message" rows="6" maxlength="5000" required><%= values[:message] %></textarea>
|
||||
<% if errors[:message] %><span class="form-error"><%= errors[:message] %></span><% end %>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<button type="submit">Send</button>
|
||||
</div>
|
||||
</form>
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
<div class="header">
|
||||
<h1>Thanks! Your message is on its way.</h1>
|
||||
<span class="ka">A confirmation copy has been sent to your inbox.</span>
|
||||
</div>
|
||||
|
||||
<section class="section">
|
||||
<p>I'll get back to you as soon as possible. If you don't hear back within a few days, feel free to reach out directly:</p>
|
||||
<dl class="kv">
|
||||
<dt>Email</dt><dd><a href="mailto:ie@asxp.io">ie@asxp.io</a></dd>
|
||||
<dt>Telegram</dt><dd><a href="https://t.me/ie_asxpi">t.me/ie_asxpi</a></dd>
|
||||
</dl>
|
||||
<p><a href="/">← Back to the front page</a></p>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue