<p dir="auto">This PR addresses parts of <a href="https://github.com/openstreetmap/openstreetmap-website/issues/3532" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/3532/hovercard">#3532</a> by making the error layout more consistent with the rest of the site's UI.</p>
<p dir="auto"><strong>Changes:</strong></p>
<ul dir="auto">
<li>Encapsulated meta tags into the <code class="notranslate">layouts/head</code> partial for better organization.</li>
<li>Applied Bootstrap's <code class="notranslate">container</code> class to the <code class="notranslate"><body></code> for a consistent layout.</li>
<li>Added a <code class="notranslate">main</code> element with <code class="notranslate">mt-4</code> to improve spacing.</li>
<li>Introduced a "Home" button with <code class="notranslate">btn btn-primary</code> to facilitate easier navigation.</li>
</ul>
<p dir="auto">These updates enhance the overall design and user experience of the error pages.</p>
<h3 dir="auto">Screenshots:</h3>
<h4 dir="auto">Before</h4>
<a href="https://github.com/user-attachments/assets/49d5b06a-d09f-4955-8ab9-f52d9d6706c5">Screenshot.2024-08-29.at.20.34.27.png (view on web)</a>
<h4 dir="auto">After</h4>
<a href="https://github.com/user-attachments/assets/105f2d75-0d19-4a47-ae62-60108884d2b1">Screenshot.2024-08-29.at.20.35.04.png (view on web)</a>
<a href="https://github.com/user-attachments/assets/5a856faa-7916-4a91-8c50-b1a5797d436f">Screenshot.2024-08-29.at.20.35.19.png (view on web)</a>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5130'>https://github.com/openstreetmap/openstreetmap-website/pull/5130</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5130/commits/3ce2a9f1189bfe2b6ae904125dea9eb2f2d92905" class="commit-link">3ce2a9f</a>  Refactor error layout</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5130/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5130/files#diff-32662374155481d62f434c2617848b7d00825d0e4ea6e85d3a274dd82cc710d3">app/views/layouts/error.html.erb</a>
    (21)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5130.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5130.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5130.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5130.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5130">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLK5JVYF25JKWLYDI7DZT5S7LAVCNFSM6AAAAABNK76WA2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4TKMRYGA3DOMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLPO5DVMNJK2YIS45M3ZT5S7LA5CNFSM6AAAAABNK76WA2WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHJJOXWEE.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5130</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5130",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5130",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>