Brijesh's Git Server — web-components-demo @ 082a49484ec39d386b9603423b0ee818e51f514f

this is for demo, will be deleted soon

index.html (view raw)

 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
<!doctype html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Web Component Example</title>
        <script src="https://cdn.tailwindcss.com"></script>

        <script src="helper.js"></script>
        <script src="component.js" defer></script>
    </head>
    <body>
        <div class="container mx-auto p-4">
            <h1 class="text-lg font-semibold mb-4">Web Components Demo</h1>
            <div class="flex flex-col lg:flex-row gap-4">
                <my-component
                    title="Welcome"
                    content="This is a custom web component"
                ></my-component>
                <my-component
                    title="Another Example"
                    content="This is reusable"
                ></my-component>
            </div>
        </div>
    </body>
</html>