aakgur commited on
Commit
dbf83e7
·
verified ·
1 Parent(s): f886fc1

🧠 ArcStore DataSync MVP Prompt

Browse files

System Objective:
Bir SaaS uygulaması geliştir.
Bu uygulama, kullanıcıların Google hesaplarından alınan API kimlik bilgileriyle (API key, OAuth token veya Measurement Protocol ID’leri) index ve analitik verilerini Google’a geri yüklemesini sağlar.
Yükleme işlemleri parça parça, zamanlanmış, güvenli ve Google limitlerine uygun biçimde yapılır.

🔧 Technical Stack (zorunlu)

Frontend: Blazor WebAssembly (.NET 8)

Backend: ASP.NET Core Web API (.NET 8)

Background Jobs: IHostedService tabanlı Worker veya Hangfire

Database: PostgreSQL 15

Queue: PostgreSQL veya Redis (basit versiyonda DB queue)

Security: OAuth 2.0 + AES-256 veri şifreleme

Deployment: Docker Compose (app + db + nginx)

Logging: Serilog + Grafana (opsiyonel)

🧩 Core Modules

User Auth & OAuth Integration

Kullanıcı Google ile bağlanır → Access token + refresh token alınır ve AES-256 ile şifrelenip saklanır.

İzinler:

https://www.googleapis.com/auth/webmasters (Search Console)

https://www.googleapis.com/auth/analytics.edit (GA4)

Data Upload Module

Kullanıcı CSV veya JSON yükler.

İki veri tipi:
a. URL listesi (Search Index verisi)
b. Analytics events (purchase, view_item vb.)

Scheduler / Worker

Her tenant için kuyruk oluşturur.

Worker batch boyutlarını kontrol eder (ör. 50–200 URL ya da 500 event).

Gönderim oranını dinamik olarak ayarlar (rate limiting).

Başarısız yüklemeleri tekrar dener (retry + exponential backoff).

Google Integration Layer

Search Console API: Sitemap veya Indexing API ile URL bildirimleri.

Measurement Protocol (GA4): JSON POST ile event gönderimi.

Error Handling: 429, 403 ve 5xx yanıtları için otomatik bekleme ve tekrar deneme.

Monitoring / Dashboard

Blazor UI: her tenant için gönderim durumu, başarısız batch listesi, quota kullanımı.

“Yükleme Durumu” = Bekliyor / Gönderiliyor / Tamamlandı / Hata.

Security & Storage

Tüm token ve API anahtarları AES-256-GCM ile şifrelenmiş sütunlarda saklanır.

HTTPS + HSTS zorunlu.

Audit log: kim hangi veriyi ne zaman yükledi.

⚙️ Google API Usage

Indexing API (isteğe bağlı):

POST https://indexing.googleapis.com/v3/urlNotifications:publish
{
"url": "https://example.com/item/123 ",
"type": "URL_UPDATED"
}


Search Console Sitemap Submit:

PUT https://www.googleapis.com/webmasters/v3/sites/ {siteUrl}/sitemaps/{sitemapUrl}


GA4 Measurement Protocol:

POST https://www.google-analytics.com/mp/collect?measurement_id=MEAS_ID&api_secret=SECRET
{
"client_id": "123.456",
"events": [ { "name": "purchase", "params": { "value": 150, "currency": "TRY" }} ]
}

🧠 AI Behavior Instructions

Kod üretirken tüm işlevleri tam ve çalışır halde yaz; PLACEHOLDER veya boş fonksiyon kullanma.

Her servis ve controller’ı açıklayıcı yorumlarla (docstring) açıkla.

Her API endpoint’inde async/await kullan.

Hata yakalama bloklarında (log.Error) ayrıntılı mesaj yaz.

Tüm config’ler appsettings.json ve Environment Variable üzerinden okunmalı.

Token yenileme (refresh) akışını otomatik yaz.

Rate Limiter ve Retry politikalarını kodla (HttpRequestMessage, Policy ile).

UI tasarımında sade ve şeffaf dashboard oluştur (Blazor Component + Table + ProgressBar).

Deploy çıktısı olarak Dockerfile ve docker-compose.yml oluştur.

💾 Expected Outputs for MVP

Blazor UI (kullanıcı girişi, veri yükleme, durum paneli)

API Katmanı (AuthController, UploadController, StatusController)

BackgroundWorker (DataUploadWorker.cs)

PostgreSQL schema (users, uploads, batches, tokens, logs)

docker-compose.yml (app + db + nginx)

README.md (kurulum ve Google API kimlik adımları)

✅ Goal

Bu MVP, Google API limitlerine uyumlu bir “veri yeniden yükleme platformu”dur.
Kullanıcı, Blazor üzerinden bağlanır, verisini yükler, sistem otomatik olarak Google’a parça parça gönderir ve durumu izler.

Files changed (6) hide show
  1. README.md +7 -4
  2. components/footer.js +59 -0
  3. components/navbar.js +112 -0
  4. index.html +83 -19
  5. script.js +80 -0
  6. style.css +58 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Google Data Sync Wizard
3
- emoji: 📈
4
  colorFrom: yellow
5
- colorTo: purple
 
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: Google Data Sync Wizard 🧙‍♂️
 
3
  colorFrom: yellow
4
+ colorTo: pink
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://huggingface.co/deepsite).
components/footer.js ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background-color: #f9fafb;
8
+ }
9
+ </style>
10
+ <footer class="border-t border-gray-200 mt-12">
11
+ <div class="max-w-7xl mx-auto py-12 px-4 overflow-hidden sm:px-6 lg:px-8">
12
+ <nav class="-mx-5 -my-2 flex flex-wrap justify-center" aria-label="Footer">
13
+ <div class="px-5 py-2">
14
+ <a href="#" class="text-gray-500 hover:text-gray-900">
15
+ About
16
+ </a>
17
+ </div>
18
+ <div class="px-5 py-2">
19
+ <a href="#" class="text-gray-500 hover:text-gray-900">
20
+ Privacy
21
+ </a>
22
+ </div>
23
+ <div class="px-5 py-2">
24
+ <a href="#" class="text-gray-500 hover:text-gray-900">
25
+ Terms
26
+ </a>
27
+ </div>
28
+ <div class="px-5 py-2">
29
+ <a href="#" class="text-gray-500 hover:text-gray-900">
30
+ Documentation
31
+ </a>
32
+ </div>
33
+ <div class="px-5 py-2">
34
+ <a href="#" class="text-gray-500 hover:text-gray-900">
35
+ Contact
36
+ </a>
37
+ </div>
38
+ </nav>
39
+ <div class="mt-8 flex justify-center space-x-6">
40
+ <a href="#" class="text-gray-400 hover:text-gray-500">
41
+ <i data-feather="twitter" class="w-6 h-6"></i>
42
+ </a>
43
+ <a href="#" class="text-gray-400 hover:text-gray-500">
44
+ <i data-feather="github" class="w-6 h-6"></i>
45
+ </a>
46
+ <a href="#" class="text-gray-400 hover:text-gray-500">
47
+ <i data-feather="linkedin" class="w-6 h-6"></i>
48
+ </a>
49
+ </div>
50
+ <p class="mt-8 text-center text-base text-gray-400">
51
+ &copy; ${new Date().getFullYear()} DataSync Wizard. All rights reserved.
52
+ </p>
53
+ </div>
54
+ </footer>
55
+ `;
56
+ }
57
+ }
58
+
59
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .navbar {
7
+ transition: all 0.3s ease;
8
+ }
9
+ .navbar-scrolled {
10
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
11
+ }
12
+ </style>
13
+ <nav class="navbar bg-white border-b border-gray-200 fixed w-full z-10">
14
+ <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
15
+ <div class="flex justify-between h-16">
16
+ <div class="flex">
17
+ <div class="flex-shrink-0 flex items-center">
18
+ <i data-feather="upload-cloud" class="text-blue-500 w-8 h-8"></i>
19
+ <span class="ml-2 text-xl font-bold text-gray-800">DataSync Wizard</span>
20
+ </div>
21
+ <div class="hidden sm:ml-6 sm:flex sm:space-x-8">
22
+ <a href="/" class="border-blue-500 text-gray-900 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
23
+ <i data-feather="home" class="w-4 h-4 mr-1"></i>
24
+ Home
25
+ </a>
26
+ <a href="/search-console" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
27
+ <i data-feather="search" class="w-4 h-4 mr-1"></i>
28
+ Search Console
29
+ </a>
30
+ <a href="/analytics" class="border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
31
+ <i data-feather="bar-chart-2" class="w-4 h-4 mr-1"></i>
32
+ Analytics
33
+ </a>
34
+ </div>
35
+ </div>
36
+ <div class="hidden sm:ml-6 sm:flex sm:items-center">
37
+ <div class="ml-3 relative">
38
+ <div class="flex items-center space-x-4">
39
+ <button onclick="document.getElementById('googleSignInButton').click()" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
40
+ <i data-feather="log-in" class="w-4 h-4 mr-2"></i>
41
+ Sign in with Google
42
+ </button>
43
+ <div id="googleSignInButton" class="g-signin2" data-onsuccess="handleGoogleSignIn" style="display: none;"></div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ <div class="-mr-2 flex items-center sm:hidden">
48
+ <button type="button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500" aria-controls="mobile-menu" aria-expanded="false">
49
+ <i data-feather="menu"></i>
50
+ </button>
51
+ </div>
52
+ </div>
53
+ </div>
54
+
55
+ <div class="sm:hidden hidden" id="mobile-menu">
56
+ <div class="pt-2 pb-3 space-y-1">
57
+ <a href="/" class="bg-blue-50 border-blue-500 text-blue-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
58
+ <i data-feather="home" class="w-4 h-4 mr-2 inline"></i>
59
+ Home
60
+ </a>
61
+ <a href="/search-console" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
62
+ <i data-feather="search" class="w-4 h-4 mr-2 inline"></i>
63
+ Search Console
64
+ </a>
65
+ <a href="/analytics" class="border-transparent text-gray-500 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-700 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
66
+ <i data-feather="bar-chart-2" class="w-4 h-4 mr-2 inline"></i>
67
+ Analytics
68
+ </a>
69
+ <div class="pl-3 pr-4 py-2">
70
+ <button onclick="document.getElementById('googleSignInButton').click()" class="w-full inline-flex justify-center items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
71
+ <i data-feather="log-in" class="w-4 h-4 mr-2"></i>
72
+ Sign in with Google
73
+ </button>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </nav>
78
+
79
+ <div class="h-16"></div> <!-- Spacer for fixed navbar -->
80
+ `;
81
+
82
+ // Add mobile menu toggle functionality
83
+ const mobileMenuButton = this.shadowRoot.querySelector('button[aria-controls="mobile-menu"]');
84
+ const mobileMenu = this.shadowRoot.getElementById('mobile-menu');
85
+
86
+ mobileMenuButton.addEventListener('click', () => {
87
+ const expanded = mobileMenuButton.getAttribute('aria-expanded') === 'true';
88
+ mobileMenuButton.setAttribute('aria-expanded', !expanded);
89
+ mobileMenu.classList.toggle('hidden', expanded);
90
+ mobileMenu.classList.toggle('block', !expanded);
91
+ });
92
+
93
+ // Load Google Sign-In script
94
+ const script = document.createElement('script');
95
+ script.src = 'https://accounts.google.com/gsi/client';
96
+ script.async = true;
97
+ script.defer = true;
98
+ document.head.appendChild(script);
99
+
100
+ // Add scroll behavior to navbar
101
+ window.addEventListener('scroll', () => {
102
+ const nav = this.shadowRoot.querySelector('.navbar');
103
+ if (window.scrollY > 10) {
104
+ nav.classList.add('navbar-scrolled');
105
+ } else {
106
+ nav.classList.remove('navbar-scrolled');
107
+ }
108
+ });
109
+ }
110
+ }
111
+
112
+ customElements.define('custom-navbar', CustomNavbar);
index.html CHANGED
@@ -1,19 +1,83 @@
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 lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Google Data Sync Wizard</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>
11
+ </head>
12
+ <body class="bg-gray-100 min-h-screen">
13
+ <custom-navbar></custom-navbar>
14
+
15
+ <main class="container mx-auto px-4 py-8">
16
+ <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 mb-8">
17
+ <div class="flex items-center mb-6">
18
+ <i data-feather="upload-cloud" class="text-blue-500 w-8 h-8 mr-3"></i>
19
+ <h1 class="text-3xl font-bold text-gray-800">Google Data Sync Wizard</h1>
20
+ </div>
21
+
22
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-6">
23
+ <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
24
+ <div class="flex items-center mb-4">
25
+ <i data-feather="search" class="text-purple-500 w-6 h-6 mr-2"></i>
26
+ <h2 class="text-xl font-semibold text-gray-700">Search Console Sync</h2>
27
+ </div>
28
+ <p class="text-gray-600 mb-4">Upload your URL lists to sync with Google Search Console indexing API</p>
29
+ <div class="flex flex-col space-y-3">
30
+ <a href="/search-console" class="inline-flex items-center justify-center px-4 py-2 bg-purple-600 text-white rounded-md hover:bg-purple-700 transition">
31
+ <i data-feather="arrow-right" class="w-4 h-4 mr-2"></i>
32
+ Go to Search Console
33
+ </a>
34
+ </div>
35
+ </div>
36
+
37
+ <div class="bg-gray-50 p-6 rounded-lg border border-gray-200">
38
+ <div class="flex items-center mb-4">
39
+ <i data-feather="bar-chart-2" class="text-blue-500 w-6 h-6 mr-2"></i>
40
+ <h2 class="text-xl font-semibold text-gray-700">Analytics Sync</h2>
41
+ </div>
42
+ <p class="text-gray-600 mb-4">Upload your analytics events to sync with Google Analytics Measurement Protocol</p>
43
+ <div class="flex flex-col space-y-3">
44
+ <a href="/analytics" class="inline-flex items-center justify-center px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition">
45
+ <i data-feather="arrow-right" class="w-4 h-4 mr-2"></i>
46
+ Go to Analytics
47
+ </a>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ </div>
52
+
53
+ <div class="bg-white rounded-xl shadow-md overflow-hidden p-6">
54
+ <h2 class="text-xl font-semibold text-gray-800 mb-4">Recent Sync Activities</h2>
55
+ <div class="overflow-x-auto">
56
+ <table class="min-w-full divide-y divide-gray-200">
57
+ <thead class="bg-gray-50">
58
+ <tr>
59
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th>
60
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
61
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Items</th>
62
+ <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
63
+ </tr>
64
+ </thead>
65
+ <tbody class="bg-white divide-y divide-gray-200" id="activityTable">
66
+ <!-- Will be populated by JavaScript -->
67
+ </tbody>
68
+ </table>
69
+ </div>
70
+ </div>
71
+ </main>
72
+
73
+ <custom-footer></custom-footer>
74
+
75
+ <script src="components/navbar.js"></script>
76
+ <script src="components/footer.js"></script>
77
+ <script src="script.js"></script>
78
+ <script>
79
+ feather.replace();
80
+ </script>
81
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
82
+ </body>
83
+ </html>
script.js ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+ // Sample activity data - in a real app this would come from an API
3
+ const activities = [
4
+ {
5
+ type: 'Search Console',
6
+ status: 'Completed',
7
+ items: 142,
8
+ date: new Date(Date.now() - 3600000).toLocaleString(),
9
+ icon: 'search'
10
+ },
11
+ {
12
+ type: 'Analytics',
13
+ status: 'In Progress',
14
+ items: 327,
15
+ date: new Date(Date.now() - 7200000).toLocaleString(),
16
+ icon: 'bar-chart-2'
17
+ },
18
+ {
19
+ type: 'Search Console',
20
+ status: 'Failed',
21
+ items: 83,
22
+ date: new Date(Date.now() - 86400000).toLocaleString(),
23
+ icon: 'search'
24
+ },
25
+ {
26
+ type: 'Analytics',
27
+ status: 'Completed',
28
+ items: 256,
29
+ date: new Date(Date.now() - 172800000).toLocaleString(),
30
+ icon: 'bar-chart-2'
31
+ }
32
+ ];
33
+
34
+ const activityTable = document.getElementById('activityTable');
35
+
36
+ // Populate the activity table
37
+ activities.forEach(activity => {
38
+ const row = document.createElement('tr');
39
+
40
+ // Status color
41
+ let statusColor = 'bg-green-100 text-green-800';
42
+ if (activity.status === 'In Progress') {
43
+ statusColor = 'bg-blue-100 text-blue-800';
44
+ } else if (activity.status === 'Failed') {
45
+ statusColor = 'bg-red-100 text-red-800';
46
+ }
47
+
48
+ row.innerHTML = `
49
+ <td class="px-6 py-4 whitespace-nowrap">
50
+ <div class="flex items-center">
51
+ <i data-feather="${activity.icon}" class="w-4 h-4 mr-2"></i>
52
+ <span class="text-sm font-medium text-gray-900">${activity.type}</span>
53
+ </div>
54
+ </td>
55
+ <td class="px-6 py-4 whitespace-nowrap">
56
+ <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full ${statusColor}">
57
+ ${activity.status}
58
+ </span>
59
+ </td>
60
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
61
+ ${activity.items} items
62
+ </td>
63
+ <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
64
+ ${activity.date}
65
+ </td>
66
+ `;
67
+
68
+ activityTable.appendChild(row);
69
+ });
70
+
71
+ // Initialize feather icons again after adding dynamic content
72
+ feather.replace();
73
+ });
74
+
75
+ // Google Sign-In handler
76
+ function handleGoogleSignIn(response) {
77
+ console.log('Google Sign-In response:', response);
78
+ // In a real app, you would send this to your backend for verification
79
+ // and then handle the user session
80
+ }
style.css CHANGED
@@ -1,28 +1,68 @@
 
 
 
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
 
 
 
 
 
 
 
 
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
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
  body {
6
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
7
+ }
8
+
9
+ /* Custom scrollbar */
10
+ ::-webkit-scrollbar {
11
+ width: 8px;
12
+ height: 8px;
13
+ }
14
+
15
+ ::-webkit-scrollbar-track {
16
+ background: #f1f1f1;
17
  }
18
 
19
+ ::-webkit-scrollbar-thumb {
20
+ background: #888;
21
+ border-radius: 4px;
22
  }
23
 
24
+ ::-webkit-scrollbar-thumb:hover {
25
+ background: #555;
 
 
 
26
  }
27
 
28
+ /* Animation for loading */
29
+ @keyframes pulse {
30
+ 0%, 100% {
31
+ opacity: 1;
32
+ }
33
+ 50% {
34
+ opacity: 0.5;
35
+ }
36
  }
37
 
38
+ .animate-pulse {
39
+ animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
40
  }
41
+
42
+ /* Custom tooltip */
43
+ .tooltip {
44
+ position: relative;
45
+ display: inline-block;
46
+ }
47
+
48
+ .tooltip .tooltip-text {
49
+ visibility: hidden;
50
+ width: 200px;
51
+ background-color: #333;
52
+ color: #fff;
53
+ text-align: center;
54
+ border-radius: 6px;
55
+ padding: 5px;
56
+ position: absolute;
57
+ z-index: 1;
58
+ bottom: 125%;
59
+ left: 50%;
60
+ transform: translateX(-50%);
61
+ opacity: 0;
62
+ transition: opacity 0.3s;
63
+ }
64
+
65
+ .tooltip:hover .tooltip-text {
66
+ visibility: visible;
67
+ opacity: 1;
68
+ }