THEZYZSTUDIO commited on
Commit
1dccf53
·
verified ·
1 Parent(s): 5e2b758

Delete components/hero.js

Browse files
Files changed (1) hide show
  1. components/hero.js +0 -132
components/hero.js DELETED
@@ -1,132 +0,0 @@
1
- class Hero extends HTMLElement {
2
- connectedCallback() {
3
- this.attachShadow({ mode: 'open' });
4
-
5
- const styles = `
6
- <style>
7
- @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');
8
-
9
- :host {
10
- display: block;
11
- padding: 5rem 1.5rem;
12
- max-width: 1280px;
13
- margin: 0 auto;
14
- text-align: center;
15
- }
16
-
17
- .badge {
18
- display: inline-flex;
19
- align-items: center;
20
- gap: 0.5rem;
21
- background-color: #e0e7ff;
22
- color: #4338ca;
23
- padding: 0.5rem 1rem;
24
- border-radius: 9999px;
25
- font-size: 0.875rem;
26
- font-weight: 600;
27
- margin-bottom: 1.5rem;
28
- }
29
-
30
- h1 {
31
- font-family: 'Inter', sans-serif;
32
- font-size: 3.5rem;
33
- font-weight: 900;
34
- line-height: 1.1;
35
- color: #0f172a;
36
- margin: 0 0 1.5rem 0;
37
- letter-spacing: -0.025em;
38
- }
39
-
40
- h1 span {
41
- background: linear-gradient(135deg, #4f46e5 0%, #14b8a6 100%);
42
- -webkit-background-clip: text;
43
- -webkit-text-fill-color: transparent;
44
- }
45
-
46
- p {
47
- font-family: 'Inter', sans-serif;
48
- font-size: 1.25rem;
49
- color: #64748b;
50
- max-width: 700px;
51
- margin: 0 auto 2.5rem auto;
52
- line-height: 1.6;
53
- }
54
-
55
- .actions {
56
- display: flex;
57
- justify-content: center;
58
- gap: 1rem;
59
- flex-wrap: wrap;
60
- }
61
-
62
- .btn {
63
- padding: 1rem 2rem;
64
- border-radius: 0.75rem;
65
- font-family: 'Inter', sans-serif;
66
- font-weight: 600;
67
- font-size: 1rem;
68
- text-decoration: none;
69
- transition: all 0.2s;
70
- display: inline-flex;
71
- align-items: center;
72
- gap: 0.5rem;
73
- }
74
-
75
- .btn-primary {
76
- background-color: #4f46e5;
77
- color: white;
78
- box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
79
- }
80
-
81
- .btn-primary:hover {
82
- background-color: #4338ca;
83
- transform: translateY(-2px);
84
- box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
85
- }
86
-
87
- .btn-secondary {
88
- background-color: white;
89
- color: #0f172a;
90
- border: 1px solid #e2e8f0;
91
- }
92
-
93
- .btn-secondary:hover {
94
- background-color: #f8fafc;
95
- border-color: #cbd5e1;
96
- }
97
-
98
- @media (max-width: 768px) {
99
- h1 {
100
- font-size: 2.5rem;
101
- }
102
- p {
103
- font-size: 1.1rem;
104
- }
105
- }
106
- </style>
107
- `;
108
-
109
- this.shadowRoot.innerHTML = `
110
- ${styles}
111
- <div class="badge">
112
- <span style="width: 8px; height: 8px; background: #14b8a6; border-radius: 50%;"></span>
113
- v2.0 is now live
114
- </div>
115
- <h1>Crafting Digital <br><span>Excellence</span> for Everyone</h1>
116
- <p>Build stunning websites and applications with our next-generation platform. Fast, secure, and infinitely scalable for your ambitions.</p>
117
-
118
- <div class="actions">
119
- <a href="#" class="btn btn-primary">
120
- Start Building Free
121
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg>
122
- </a>
123
- <a href="#" class="btn btn-secondary">
124
- <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="5 3 19 12 5 21 5 3"></polygon></svg>
125
- Watch Demo
126
- </a>
127
- </div>
128
- `;
129
- }
130
- }
131
-
132
- customElements.define('app-hero', Hero);