remove contact form
All checks were successful
Build and Deploy to Production / test (push) Successful in 45s
Build and Deploy to Production / build (push) Successful in 1m6s
Build and Deploy to Production / deploy (push) Successful in 46s

This commit is contained in:
Sergei Poljanski 2026-08-04 01:25:50 +04:00
commit 1f059dc2f6
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
7 changed files with 26 additions and 250 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>