File size: 2,765 Bytes
bbf5330
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
class CustomHero extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        :host {
          display: block;
          margin-bottom: 4rem;
        }
        .hero {
          background-image: linear-gradient(to right, rgba(59, 130, 246, 0.8), rgba(29, 78, 216, 0.8)), url('http://static.photos/people/1200x630/42');
          background-size: cover;
          background-position: center;
          border-radius: 1rem;
          padding: 4rem 2rem;
          color: white;
          text-align: center;
          position: relative;
          overflow: hidden;
        }
        .hero-content {
          max-width: 800px;
          margin: 0 auto;
          position: relative;
          z-index: 1;
        }
        .hero-title {
          font-size: 2.5rem;
          font-weight: 700;
          margin-bottom: 1rem;
        }
        .hero-subtitle {
          font-size: 1.25rem;
          margin-bottom: 2rem;
          opacity: 0.9;
        }
        .hero-buttons {
          display: flex;
          gap: 1rem;
          justify-content: center;
          flex-wrap: wrap;
        }
        .hero-button {
          padding: 0.75rem 1.5rem;
          border-radius: 0.5rem;
          font-weight: 600;
          transition: all 0.2s;
        }
        .primary-button {
          background-color: white;
          color: #3b82f6;
        }
        .primary-button:hover {
          transform: translateY(-2px);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .secondary-button {
          background-color: transparent;
          border: 2px solid white;
          color: white;
        }
        .secondary-button:hover {
          background-color: rgba(255, 255, 255, 0.1);
        }
        @media (max-width: 640px) {
          .hero-title {
            font-size: 2rem;
          }
          .hero-subtitle {
            font-size: 1.1rem;
          }
        }
      </style>
      <div class="hero">
        <div class="hero-content">
          <h1 class="hero-title">Your Pathway to a Better Life</h1>
          <p class="hero-subtitle">
            Navigate government services, access benefits, learn English, and track your immigration journey all in one place.
          </p>
          <div class="hero-buttons">
            <a href="#benefits" class="hero-button primary-button">
              <i data-feather="gift" class="mr-2"></i> Find Benefits
            </a>
            <a href="#language" class="hero-button secondary-button">
              <i data-feather="book" class="mr-2"></i> Learn English
            </a>
          </div>
        </div>
      </div>
    `;
  }
}

customElements.define('custom-hero', CustomHero);