File size: 2,333 Bytes
c262010
 
 
 
 
 
 
 
 
 
 
 
 
 
196faa4
 
d7e960f
c262010
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c0efe1f
c262010
 
 
 
 
 
196faa4
c0efe1f
c262010
 
 
 
 
 
c0efe1f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en" class="light">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cloudy Connections</title>
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest"></script>
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/universal-sentence-encoder"></script>
</head>
<body>
    <background-clouds></background-clouds>
<main class="container mx-auto px-4 py-8 relative z-10">
<header class="text-center mb-12">
            <h1 class="text-4xl font-bold text-gray-800 mb-2">Cloudy Connections</h1>
            <p class="text-lg text-gray-600">See how your text relates to our fluffy cloud concepts</p>
        </header>

        <div class="max-w-2xl mx-auto mb-12">
            <div class="relative">
                <input type="text" id="text-input" placeholder="Type something here..." 
                    class="w-full px-6 py-4 rounded-full border-2 border-gray-200 focus:outline-none focus:border-blue-400 text-lg shadow-sm">
                <button id="analyze-btn" class="absolute right-2 top-1/2 transform -translate-y-1/2 bg-blue-500 text-white p-2 rounded-full hover:bg-blue-600 transition">
                    <i data-feather="search"></i>
                </button>
            </div>
        </div>

        <div id="cloud-container" class="relative h-96 mb-12">
            <!-- Clouds will be dynamically inserted here -->
        </div>

<div id="results" class="hidden bg-white rounded-xl p-6 shadow-md max-w-2xl mx-auto">
            <h2 class="text-xl font-semibold mb-4">Analysis Results</h2>
            <div id="similarity-results" class="space-y-3">
                <!-- Results will be shown here -->
            </div>
        </div>
    </main>
    <script src="components/background-clouds.js"></script>
    <script src="components/cloud.js"></script>
    <script src="script.js"></script>
    <script>
        feather.replace();
    </script>
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
</body>
</html>