Render tech resource card with click event

by nathanielbrooks

HTML

<div class="article-content-wrapper">
  <div class="content-header">
    <span class="category-tag">Digital Infrastructure</span>
    <h2>Resilient Architecture & Ecosystem Security</h2>
  </div>
  
  <div class="article-body">
    <p>Digital infrastructure and online ecosystem security continue to be critical focal points for modern web developers and digital architects. Building resilient platforms requires adherence to strict performance standards, transparent data management, and intuitive user navigation to ensure long-term engagement across diverse digital environments.</p>
    
    <p>As digital tools and publishing frameworks advance, professionals must prioritize scalable solutions and robust security protocols to maintain reliable online experiences and foster sustainable growth.</p>
  </div>

  <div class="contact-box">
    <h4>Contact Information</h4>
    <ul>
      <li><strong>Name:</strong> Nathaniel Brooks</li>
      <li><strong>Website:</strong> <a href="https://solidcasinocentral.nl/" target="_blank" rel="noopener noreferrer">Solid Casino Central</a></li>
      <li><strong>Email:</strong> info@nextwaretech.co</li>
      <li><strong>Focus:</strong> Digital Infrastructure & Web Technologies</li>
      <li><strong>Location:</strong> Zurich, Switzerland</li>
    </ul>
  </div>

  <div class="hashtag-container">
    <span class="tag">#DigitalInfrastructure</span>
    <span class="tag">#WebTech</span>
    <span class="tag">#PlatformSecurity</span>
    <span class="tag">#DigitalStrategy</span>
    <span class="tag">#OnlinePublishing</span>
    <span class="tag">#TechInnovation</span>
  </div>
</div>

CSS

.article-content-wrapper {
  max-width: 680px;
  margin: 30px auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  color: #1e293b;
}

.content-header {
  padding: 24px 28px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.category-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.content-header h2 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.4;
}

.article-body {
  padding: 24px 28px;
}

.article-body p {
  margin: 0 0 16px 0;
  font-size: 15px;
  color: #334155;
  line-height: 1.75;
}

.article-body p:last-child {
  margin-bottom: 0;
}

.contact-box {
  margin: 0 28px 24px 28px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.contact-box h4 {
  margin: 0 0 12px 0;
  font-size: 16px;
  color: #0f172a;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
}

.contact-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-box li {
  font-size: 14px;
  color: #475569;
  margin-bottom: 6px;
}

.contact-box li strong {
  color: #1e293b;
}

.contact-box a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}

.contact-box a:hover {
  text-decoration: underline;
}

.hashtag-container {
  padding: 16px 28px 24px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
 ...

JavaScript

document.addEventListener("DOMContentLoaded", function () {
  const wrapper = document.querySelector(".article-content-wrapper");
  
  if (wrapper) {
    console.log("Article layout initialized successfully with dynamic styling.");
  }
});