Spaces:
Running
Running
Adicione um código colorido com o background de onde fica o código nessa cor:
Browse files- README.md +8 -4
- index.html +55 -17
README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji: 🏆
|
| 4 |
colorFrom: green
|
| 5 |
-
colorTo:
|
|
|
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: CodeCraft Studio 🎨
|
|
|
|
| 3 |
colorFrom: green
|
| 4 |
+
colorTo: yellow
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
| 14 |
+
|
index.html
CHANGED
|
@@ -1,19 +1,57 @@
|
|
| 1 |
-
<!
|
| 2 |
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
<html>
|
| 3 |
+
<head>
|
| 4 |
+
<title>My app</title>
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<meta charset="utf-8">
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
</head>
|
| 9 |
+
<body class="flex justify-center items-center h-screen overflow-hidden bg-white font-sans text-center px-6">
|
| 10 |
+
|
| 11 |
+
<div id="codeModal" class="fixed inset-0 z-50 bg-gray-900 bg-opacity-50 flex items-center justify-center">
|
| 12 |
+
<div class="bg-white rounded-lg shadow-lg w-full max-w-5xl h-[75vh] flex flex-col p-6">
|
| 13 |
+
<!-- Cabeçalho -->
|
| 14 |
+
<div class="flex justify-between items-center mb-4 border-b pb-2">
|
| 15 |
+
<h2 class="text-xl font-semibold text-gray-800">Código para Ollama</h2>
|
| 16 |
+
<button id="closeModal" class="text-gray-500 hover:text-gray-700 text-xl leading-none">✕</button>
|
| 17 |
+
</div>
|
| 18 |
+
|
| 19 |
+
<!-- Linha do select + botões -->
|
| 20 |
+
<div class="flex items-end space-x-3 mb-4">
|
| 21 |
+
<div class="flex-1">
|
| 22 |
+
<label for="languageSelect" class="block text-sm font-medium text-gray-700 mb-1">Linguagem:</label>
|
| 23 |
+
<select
|
| 24 |
+
id="languageSelect"
|
| 25 |
+
class="w-full border border-gray-300 rounded-md px-3 py-2 focus:outline-none focus:ring-2 focus:ring-[#ff580f]"
|
| 26 |
+
>
|
| 27 |
+
<option value="python">Python</option>
|
| 28 |
+
<option value="javascript">JavaScript</option>
|
| 29 |
+
<option value="java">Java</option>
|
| 30 |
+
<option value="csharp">C#</option>
|
| 31 |
+
</select>
|
| 32 |
+
</div>
|
| 33 |
+
|
| 34 |
+
<button
|
| 35 |
+
id="copyCodeBtn"
|
| 36 |
+
class="inline-flex items-center px-3 py-2 border border-gray-300 rounded-md text-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none"
|
| 37 |
+
>
|
| 38 |
+
<i data-feather="copy" class="mr-2 w-4 h-4"></i>
|
| 39 |
+
Copiar Código
|
| 40 |
+
</button>
|
| 41 |
+
|
| 42 |
+
<button
|
| 43 |
+
id="viewDocsBtn"
|
| 44 |
+
class="inline-flex items-center px-3 py-2 border border-gray-300 rounded-md text-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none"
|
| 45 |
+
>
|
| 46 |
+
<i data-feather="book-open" class="mr-2 w-4 h-4"></i>
|
| 47 |
+
Ver Documentação
|
| 48 |
+
</button>
|
| 49 |
+
</div>
|
| 50 |
+
<!-- Código com highlight -->
|
| 51 |
+
<div class="flex-1 rounded-md p-4 overflow-auto border border-gray-700" style="background-color: #21223a;">
|
| 52 |
+
<pre class="h-full"><code id="exampleCode" class="language-python"></code></pre>
|
| 53 |
+
</div>
|
| 54 |
+
</div>
|
| 55 |
+
</div>
|
| 56 |
+
</body>
|
| 57 |
</html>
|