SuperScoobyDoo commited on
Commit
49cc1fb
β€’
1 Parent(s): ee5b3a6

Add 4 files

Browse files
Files changed (4) hide show
  1. README.md +6 -10
  2. index.html +7 -19
  3. main.js +19 -0
  4. style.css +11 -26
README.md CHANGED
@@ -1,11 +1,7 @@
1
- ---
2
- title: Sf 8b0
3
- emoji: 🐨
4
- colorFrom: pink
5
- colorTo: pink
6
- sdk: static
7
- pinned: false
8
- license: mit
9
- ---
10
 
11
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
1
+ # Scooby-Doo image creator
 
 
 
 
 
 
 
 
2
 
3
+ A simple HTML/JS app that uses AlpineJS, DaisyUI, and Tailwind to create a Scooby-themed image creator.
4
+
5
+ ## Usage
6
+
7
+ Run the following command in the root directory:
index.html CHANGED
@@ -1,19 +1,7 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
1
+ <html><head><link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/full.css" rel="stylesheet" type="text/css" /><script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/cdn.min.js"></script><script src="https://cdn.tailwindcss.com?plugins=forms,typography,aspect-ratio"></script><script defer src="https://cdnjs.cloudflare.com/ajax/libs/three.js/0.156.1/three.min.js"></script><script type="module" src="main.js"></script><title>Scooby-Doo image creator</title></head><body>
2
+ {{# > πŸ‘¨β€πŸ’»}}
3
+ <header class="flex justify-between items-center pt-32 pb-32 pl-16 pr-16">
4
+ <h1 class="text-4xl">Scooby-Doo image creator</h1>
5
+ </header>
6
+ {{/ > πŸ‘¨β€πŸ’»}}
7
+ </body></html>
 
 
 
 
 
 
 
 
 
 
 
 
main.js ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener("DOMContentLoaded", () => {
2
+ const app = alpinejs();
3
+ const scooby = {
4
+ title: "Scooby-Doo",
5
+ image: "../assets/scooby.jpg",
6
+ };
7
+
8
+ app.init({
9
+ state: {
10
+ scooby,
11
+ },
12
+ func: {
13
+ onSubmit(key) {
14
+ // Code to create the image goes here
15
+ console.log("Submitted!");
16
+ },
17
+ },
18
+ });
19
+ });
style.css CHANGED
@@ -1,28 +1,13 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
1
+ * {
2
+ box-sizing: border-box;
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  }
4
 
5
+ body {
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ height: 100vh;
10
+ padding: 20px;
11
+ background: white;
12
+ font-family: Arial, sans-serif;
13
+ }