Spaces:
Configuration error
Configuration error
SuperScoobyDoo
commited on
Commit
β’
49cc1fb
1
Parent(s):
ee5b3a6
Add 4 files
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
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 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
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 |
-
|
2 |
-
|
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 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
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 |
+
}
|
|
|
|