FourLabs-UN2 commited on
Commit
87b9e54
·
verified ·
1 Parent(s): d91c222

Adicione um código colorido com o background de onde fica o código nessa cor:

Browse files
Files changed (2) hide show
  1. README.md +8 -4
  2. index.html +55 -17
README.md CHANGED
@@ -1,10 +1,14 @@
1
  ---
2
- title: Codecraft Studio
3
- emoji: 🏆
4
  colorFrom: green
5
- colorTo: gray
 
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
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
- <!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
+ <!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>