Spaces:
Running
Running
Commit
·
66c73b7
1
Parent(s):
d4e9a0d
Add 3 files
Browse files- index.html +2 -19
- main.js +36 -0
- style.css +5 -28
index.html
CHANGED
@@ -1,19 +1,2 @@
|
|
1 |
-
|
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>Prototyper</title><meta name="viewport" content="width=device-width, initial-scale=1.0"></head><body>
|
2 |
+
<div class="prose"><h1>Prototyper</h1><form x-data="form"><label for="title" x-text="form.t('title')"></label><input type="text" id="title" x-bind.prop="label" x-init="label = 'Title'" x-model="form.title"></input><label for="description" x-text="form.t('description')"></label><textarea id="description" x-bind.prop="description" x-init="description = 'Description'" x-model="form.description"></textarea><label for="invention" x-text="form.t('invention')"></label><textarea id="invention" x-bind.prop="invention" x-init="invention = 'Invention'" x-model="form.invention"></textarea><button x-text="form.t('submit')" type="submit"></button></form></div></body></html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main.js
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
document.addEventListener('alpine:init', () => {
|
2 |
+
// Add Alpine.js event listeners here
|
3 |
+
Alpine.store('form', {
|
4 |
+
title: 'Prototyper',
|
5 |
+
description: 'A tool for generating, researching, and prototyping inventions.',
|
6 |
+
invention: '',
|
7 |
+
submit() {
|
8 |
+
// Add a click event listener to the button that submits the form
|
9 |
+
this.$dispatch('form-submitted', { title: this.title, description: this.description, invention: this.invention });
|
10 |
+
}
|
11 |
+
});
|
12 |
+
});
|
13 |
+
|
14 |
+
document.addEventListener('alpine:initialized', () => {
|
15 |
+
// Add Alpine.js data objects and components here
|
16 |
+
Alpine.data('prototyper', () => ({
|
17 |
+
// Add Alpine.js data to interact with the form
|
18 |
+
form: Alpine.store('form'),
|
19 |
+
// Add Alpine.js methods to generate new ideas and research inventions
|
20 |
+
generateIdeas() {
|
21 |
+
// Generate new ideas for inventions
|
22 |
+
},
|
23 |
+
researchInventions() {
|
24 |
+
// Research and analyze the feasibility of the inventions
|
25 |
+
},
|
26 |
+
developPrototypes() {
|
27 |
+
// Develop prototypes for inventions with high potential
|
28 |
+
},
|
29 |
+
patentAndFund() {
|
30 |
+
// Patent the inventions and seek funding for further development
|
31 |
+
},
|
32 |
+
monetize() {
|
33 |
+
// Monetize the inventions by licensing or selling the patents
|
34 |
+
}
|
35 |
+
}));
|
36 |
+
});
|
style.css
CHANGED
@@ -1,28 +1,5 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
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 |
+
margin: 0;
|
3 |
+
padding: 0;
|
4 |
+
box-sizing: border-box;
|
5 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|