ruby rework with contact form
All checks were successful
Build and Deploy to Production / build (push) Successful in 51s
Build and Deploy to Production / deploy (push) Successful in 34s

This commit is contained in:
Sergei Poljanski 2026-05-05 00:45:27 +04:00
commit 1ab09043ee
Signed by: asxpi
GPG key ID: 4F8851660FA4121B
26 changed files with 932 additions and 221 deletions

217
public/style.css Normal file
View file

@ -0,0 +1,217 @@
body {
background-color: #121212;
color: #AAAAAA;
font-family: 'Open Sans', sans-serif;
margin: 0;
line-height: 1.5;
}
main {
max-width: 720px;
margin: 0 auto;
padding: 40px 20px 80px;
}
.header {
text-align: center;
margin-bottom: 40px;
}
.header h1 {
font-size: 1.4rem;
font-weight: 400;
color: #DDDDDD;
margin: 0;
}
.header .ka {
display: block;
font-size: 0.85rem;
color: #666666;
margin-top: 6px;
}
.section {
margin: 36px 0;
}
.section h2 {
font-size: 1rem;
font-weight: 600;
color: #DDDDDD;
text-transform: uppercase;
letter-spacing: 0.08em;
border-bottom: 1px solid #2A2A2A;
padding-bottom: 6px;
margin: 0 0 16px;
}
ul.services {
list-style: none;
padding: 0;
margin: 0;
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px 24px;
}
ul.services li {
padding-left: 14px;
position: relative;
}
ul.services li::before {
content: '';
position: absolute;
left: 0;
color: #555555;
}
dl.kv {
display: grid;
grid-template-columns: max-content 1fr;
gap: 6px 18px;
margin: 0;
}
dl.kv dt {
color: #777777;
font-size: 0.9rem;
}
dl.kv dd {
margin: 0;
color: #CCCCCC;
}
dl.kv dd.mono,
.mono {
font-family: 'Hack', monospace;
font-size: 0.92rem;
}
.ka-note {
color: #666666;
font-size: 0.85rem;
margin-top: 4px;
}
pre {
position: relative;
background: #222222;
padding: 10px;
font-size: 14px;
font-family: 'Hack', monospace;
word-wrap: break-word;
white-space: pre-wrap;
border: 1px solid #020202;
margin: 8px 0;
}
.copy-button {
position: absolute;
top: 5px;
right: 10px;
cursor: pointer;
color: #424242;
background: #111111;
border-radius: 0.5em;
padding: 2px 7px;
}
.copy-button:hover {
color: #000;
}
a {
color: #BBBBBB;
text-decoration: none;
border-bottom: 1px dotted #444444;
}
a:hover {
color: #FFFFFF;
border-bottom-color: #888888;
}
.footer {
text-align: center;
color: #555555;
font-size: 0.8rem;
padding: 24px 20px;
border-top: 1px solid #1E1E1E;
}
/* Contact form */
.contact-form {
margin: 0 0 24px;
}
.contact-form .hp {
position: absolute;
left: -10000px;
width: 1px;
height: 1px;
overflow: hidden;
}
.contact-form .field {
margin-bottom: 14px;
}
.contact-form label {
display: block;
color: #888888;
font-size: 0.85rem;
margin-bottom: 4px;
}
.contact-form .optional {
color: #555555;
font-size: 0.8rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
width: 100%;
box-sizing: border-box;
background: #1A1A1A;
color: #DDDDDD;
border: 1px solid #2A2A2A;
border-radius: 3px;
padding: 8px 10px;
font-family: inherit;
font-size: 0.95rem;
}
.contact-form textarea {
font-family: 'Hack', monospace;
font-size: 0.9rem;
resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
outline: none;
border-color: #555555;
background: #1E1E1E;
}
.contact-form button {
background: #2A2A2A;
color: #DDDDDD;
border: 1px solid #3A3A3A;
border-radius: 3px;
padding: 8px 20px;
font-family: inherit;
font-size: 0.95rem;
cursor: pointer;
}
.contact-form button:hover {
background: #333333;
border-color: #555555;
}
.form-error {
display: block;
color: #C97070;
font-size: 0.85rem;
margin-top: 4px;
}
.form-error-base {
background: #2A1414;
border: 1px solid #4A1F1F;
padding: 10px;
border-radius: 3px;
margin-bottom: 16px;
}
.contact-direct {
margin-top: 16px;
padding-top: 16px;
border-top: 1px dashed #2A2A2A;
}
@media (max-width: 560px) {
ul.services {
grid-template-columns: 1fr;
}
dl.kv {
grid-template-columns: 1fr;
gap: 2px 0;
}
dl.kv dd {
margin-bottom: 8px;
}
}