-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathget-started.js
More file actions
32 lines (25 loc) · 860 Bytes
/
get-started.js
File metadata and controls
32 lines (25 loc) · 860 Bytes
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
import styles from "./get-started.module.css";
export default class GetStarted extends HTMLElement {
connectedCallback() {
const code = "npx @greenwood/init@latest";
this.innerHTML = `
<div class="${styles.container}">
<h3 class="${styles.heading}">Get started in seconds 🚀</h3>
<div class="${styles.snippet}">
<pre>$ ${code}</pre>
<app-ctc-button content="${code}">
</app-ctc-button>
</div>
<div>
<a href="/docs/introduction/about/" class="${styles.buttonSecondary}">
<span>Learn More</span>
</a>
<a href="/guides/getting-started/" class="${styles.buttonPrimary}">
<span>Get Started</span>
</a>
</div>
</div>
`;
}
}
customElements.define("app-get-started", GetStarted);