it shouldn't be a hacker terminal make it look like I'm coding and creating a basic AI tool
Browse files- index.html +48 -43
- script.js +17 -18
- style.css +2 -3
index.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
|
| 7 |
-
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
<script src="https://unpkg.com/feather-icons"></script>
|
|
@@ -13,70 +13,75 @@
|
|
| 13 |
theme: {
|
| 14 |
extend: {
|
| 15 |
colors: {
|
| 16 |
-
|
| 17 |
-
50: '#
|
| 18 |
-
100: '#
|
| 19 |
-
200: '#
|
| 20 |
-
300: '#
|
| 21 |
-
400: '#
|
| 22 |
-
500: '#
|
| 23 |
-
600: '#
|
| 24 |
-
700: '#
|
| 25 |
-
800: '#
|
| 26 |
-
900: '#
|
| 27 |
}
|
| 28 |
}
|
| 29 |
}
|
| 30 |
}
|
| 31 |
}
|
| 32 |
-
|
| 33 |
</head>
|
| 34 |
-
<body class="bg-
|
| 35 |
<div class="container mx-auto px-4 h-screen flex flex-col">
|
| 36 |
-
<!--
|
| 37 |
-
<div class="flex items-center justify-between bg-
|
| 38 |
<div class="flex items-center space-x-2">
|
| 39 |
<div class="w-3 h-3 rounded-full bg-red-500"></div>
|
| 40 |
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
|
| 41 |
<div class="w-3 h-3 rounded-full bg-green-500"></div>
|
| 42 |
</div>
|
| 43 |
-
<div class="text-sm">
|
| 44 |
-
<div class="
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
</div>
|
| 46 |
|
| 47 |
-
<!--
|
| 48 |
-
<div class="flex-grow bg-
|
| 49 |
<div class="typing-animation">
|
| 50 |
-
<p class="text-
|
| 51 |
-
<p class="text-
|
| 52 |
-
<p class="text-
|
| 53 |
-
<p class="text-
|
| 54 |
-
<p class="text-
|
| 55 |
-
<p class="text-
|
| 56 |
-
<p class="text-
|
| 57 |
-
<p class="text-
|
| 58 |
-
<p class="text-
|
| 59 |
-
<p class="text-
|
| 60 |
-
<p class="text-
|
| 61 |
-
<p class="text-
|
| 62 |
-
<p class="text-
|
|
|
|
| 63 |
</div>
|
| 64 |
</div>
|
| 65 |
|
| 66 |
-
<!--
|
| 67 |
-
<div class="bg-
|
| 68 |
<div class="flex space-x-4">
|
| 69 |
-
<span>
|
| 70 |
-
<span>
|
| 71 |
-
<span>
|
| 72 |
</div>
|
| 73 |
<div class="flex space-x-4">
|
| 74 |
-
<span>CPU:
|
| 75 |
-
<span>
|
| 76 |
-
<span>
|
| 77 |
</div>
|
| 78 |
</div>
|
| 79 |
-
|
| 80 |
|
| 81 |
<script src="script.js"></script>
|
| 82 |
<script>feather.replace();</script>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="UTF-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>AI Development Terminal</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 10 |
<script src="https://unpkg.com/feather-icons"></script>
|
|
|
|
| 13 |
theme: {
|
| 14 |
extend: {
|
| 15 |
colors: {
|
| 16 |
+
blue: {
|
| 17 |
+
50: '#f0f9ff',
|
| 18 |
+
100: '#e0f2fe',
|
| 19 |
+
200: '#bae6fd',
|
| 20 |
+
300: '#7dd3fc',
|
| 21 |
+
400: '#38bdf8',
|
| 22 |
+
500: '#0ea5e9',
|
| 23 |
+
600: '#0284c7',
|
| 24 |
+
700: '#0369a1',
|
| 25 |
+
800: '#075985',
|
| 26 |
+
900: '#0c4a6e',
|
| 27 |
}
|
| 28 |
}
|
| 29 |
}
|
| 30 |
}
|
| 31 |
}
|
| 32 |
+
</script>
|
| 33 |
</head>
|
| 34 |
+
<body class="bg-gray-900 text-blue-400 font-mono overflow-hidden">
|
| 35 |
<div class="container mx-auto px-4 h-screen flex flex-col">
|
| 36 |
+
<!-- IDE Header -->
|
| 37 |
+
<div class="flex items-center justify-between bg-gray-800 p-2 rounded-t-lg border-b border-gray-700">
|
| 38 |
<div class="flex items-center space-x-2">
|
| 39 |
<div class="w-3 h-3 rounded-full bg-red-500"></div>
|
| 40 |
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
|
| 41 |
<div class="w-3 h-3 rounded-full bg-green-500"></div>
|
| 42 |
</div>
|
| 43 |
+
<div class="text-sm">dev@ai-tool:~/project</div>
|
| 44 |
+
<div class="flex space-x-4 text-xs">
|
| 45 |
+
<span>main.py</span>
|
| 46 |
+
<span>app.py</span>
|
| 47 |
+
<span>README.md</span>
|
| 48 |
+
</div>
|
| 49 |
</div>
|
| 50 |
|
| 51 |
+
<!-- IDE Body -->
|
| 52 |
+
<div class="flex-grow bg-gray-950 p-4 overflow-y-auto terminal-content">
|
| 53 |
<div class="typing-animation">
|
| 54 |
+
<p class="text-blue-300 mb-4">$ git init</p>
|
| 55 |
+
<p class="text-blue-300 mb-4">Initialized empty Git repository</p>
|
| 56 |
+
<p class="text-blue-300 mb-4">$ pip install numpy pandas tensorflow</p>
|
| 57 |
+
<p class="text-blue-300 mb-4">Installing dependencies...</p>
|
| 58 |
+
<p class="text-blue-300 mb-4">$ python main.py --train-model</p>
|
| 59 |
+
<p class="text-blue-300 mb-4">Loading training data...</p>
|
| 60 |
+
<p class="text-blue-300 mb-4">Preprocessing 10,000 samples...</p>
|
| 61 |
+
<p class="text-blue-300 mb-4">Training neural network (epoch 1/10)...</p>
|
| 62 |
+
<p class="text-blue-300 mb-4">Accuracy: 92.4%</p>
|
| 63 |
+
<p class="text-blue-300 mb-4">$ python app.py</p>
|
| 64 |
+
<p class="text-blue-300 mb-4">Starting AI service on http://localhost:5000</p>
|
| 65 |
+
<p class="text-blue-300 mb-4">API endpoints ready:</p>
|
| 66 |
+
<p class="text-blue-300 mb-4">POST /predict - Accepts JSON input</p>
|
| 67 |
+
<p class="text-blue-300 mb-4">$ <span class="cursor-blink">β</span></p>
|
| 68 |
</div>
|
| 69 |
</div>
|
| 70 |
|
| 71 |
+
<!-- Status Bar -->
|
| 72 |
+
<div class="bg-gray-800 p-2 text-xs flex justify-between items-center rounded-b-lg">
|
| 73 |
<div class="flex space-x-4">
|
| 74 |
+
<span>Python 3.9.7</span>
|
| 75 |
+
<span>TensorFlow 2.8.0</span>
|
| 76 |
+
<span>Git: main</span>
|
| 77 |
</div>
|
| 78 |
<div class="flex space-x-4">
|
| 79 |
+
<span>CPU: 45%</span>
|
| 80 |
+
<span>GPU: NVIDIA RTX 3090</span>
|
| 81 |
+
<span>PORT: 5000</span>
|
| 82 |
</div>
|
| 83 |
</div>
|
| 84 |
+
</div>
|
| 85 |
|
| 86 |
<script src="script.js"></script>
|
| 87 |
<script>feather.replace();</script>
|
script.js
CHANGED
|
@@ -8,9 +8,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 8 |
const ctx = canvas.getContext('2d');
|
| 9 |
canvas.width = window.innerWidth;
|
| 10 |
canvas.height = window.innerHeight;
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
const fontSize = 14;
|
| 14 |
const columns = canvas.width / fontSize;
|
| 15 |
const drops = [];
|
| 16 |
|
|
@@ -21,9 +20,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 21 |
function draw() {
|
| 22 |
ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
|
| 23 |
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
ctx.font = fontSize + 'px monospace';
|
| 27 |
|
| 28 |
for (let i = 0; i < drops.length; i++) {
|
| 29 |
const text = characters.charAt(Math.floor(Math.random() * characters.length));
|
|
@@ -61,19 +59,20 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 61 |
setTimeout(() => {
|
| 62 |
const terminal = document.querySelector('.typing-animation');
|
| 63 |
const commands = [
|
| 64 |
-
"$
|
| 65 |
-
"$
|
| 66 |
-
"$
|
| 67 |
-
"
|
| 68 |
-
"
|
| 69 |
-
"$
|
| 70 |
-
"
|
| 71 |
-
"$
|
| 72 |
-
"
|
| 73 |
-
"
|
|
|
|
|
|
|
| 74 |
];
|
| 75 |
-
|
| 76 |
-
let delay = 25000; // Start after initial animation
|
| 77 |
|
| 78 |
commands.forEach(cmd => {
|
| 79 |
setTimeout(() => {
|
|
|
|
| 8 |
const ctx = canvas.getContext('2d');
|
| 9 |
canvas.width = window.innerWidth;
|
| 10 |
canvas.height = window.innerHeight;
|
| 11 |
+
const characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
| 12 |
+
const fontSize = 14;
|
|
|
|
| 13 |
const columns = canvas.width / fontSize;
|
| 14 |
const drops = [];
|
| 15 |
|
|
|
|
| 20 |
function draw() {
|
| 21 |
ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
|
| 22 |
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
| 23 |
+
ctx.fillStyle = '#0ea5e9';
|
| 24 |
+
ctx.font = fontSize + 'px monospace';
|
|
|
|
| 25 |
|
| 26 |
for (let i = 0; i < drops.length; i++) {
|
| 27 |
const text = characters.charAt(Math.floor(Math.random() * characters.length));
|
|
|
|
| 59 |
setTimeout(() => {
|
| 60 |
const terminal = document.querySelector('.typing-animation');
|
| 61 |
const commands = [
|
| 62 |
+
"$ git add .",
|
| 63 |
+
"$ git commit -m 'Add model training script'",
|
| 64 |
+
"$ python test.py",
|
| 65 |
+
"Running unit tests...",
|
| 66 |
+
"12 tests passed",
|
| 67 |
+
"$ tensorboard --logdir=logs",
|
| 68 |
+
"TensorBoard running at http://localhost:6006",
|
| 69 |
+
"$ docker build -t ai-tool .",
|
| 70 |
+
"Building Docker image...",
|
| 71 |
+
"Successfully built 1a2b3c4d5e6f",
|
| 72 |
+
"$ docker run -p 5000:5000 ai-tool",
|
| 73 |
+
"AI service started successfully"
|
| 74 |
];
|
| 75 |
+
let delay = 25000; // Start after initial animation
|
|
|
|
| 76 |
|
| 77 |
commands.forEach(cmd => {
|
| 78 |
setTimeout(() => {
|
style.css
CHANGED
|
@@ -4,10 +4,9 @@ body {
|
|
| 4 |
font-family: 'Source Code Pro', monospace;
|
| 5 |
background-color: #000;
|
| 6 |
}
|
| 7 |
-
|
| 8 |
.terminal-content {
|
| 9 |
-
background-image: radial-gradient(rgba(
|
| 10 |
-
|
| 11 |
}
|
| 12 |
|
| 13 |
.cursor-blink {
|
|
|
|
| 4 |
font-family: 'Source Code Pro', monospace;
|
| 5 |
background-color: #000;
|
| 6 |
}
|
|
|
|
| 7 |
.terminal-content {
|
| 8 |
+
background-image: radial-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px);
|
| 9 |
+
background-size: 20px 20px;
|
| 10 |
}
|
| 11 |
|
| 12 |
.cursor-blink {
|