Spaces:
Running
Running
maket it user friendlu
Browse files- README.md +8 -5
- components/footer.js +87 -0
- components/navbar.js +79 -0
- index.html +85 -19
- script.js +51 -0
- style.css +34 -18
README.md
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Friendly
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Friendly UI Wizard ✨
|
| 3 |
+
colorFrom: gray
|
| 4 |
+
colorTo: green
|
| 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,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
width: 100%;
|
| 9 |
+
background-color: white;
|
| 10 |
+
border-top: 1px solid #e5e7eb;
|
| 11 |
+
}
|
| 12 |
+
.footer-container {
|
| 13 |
+
max-width: 1200px;
|
| 14 |
+
margin: 0 auto;
|
| 15 |
+
}
|
| 16 |
+
.footer-link:hover {
|
| 17 |
+
color: #3b82f6;
|
| 18 |
+
text-decoration: underline;
|
| 19 |
+
}
|
| 20 |
+
.social-icon {
|
| 21 |
+
transition: all 0.3s ease;
|
| 22 |
+
}
|
| 23 |
+
.social-icon:hover {
|
| 24 |
+
transform: translateY(-2px);
|
| 25 |
+
}
|
| 26 |
+
</style>
|
| 27 |
+
<footer class="py-12 px-4 sm:px-6 lg:px-8">
|
| 28 |
+
<div class="footer-container">
|
| 29 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 30 |
+
<div>
|
| 31 |
+
<h3 class="text-lg font-semibold mb-4">Friendly UI Wizard</h3>
|
| 32 |
+
<p class="text-gray-600">Making the web a friendlier place, one interface at a time.</p>
|
| 33 |
+
</div>
|
| 34 |
+
<div>
|
| 35 |
+
<h4 class="text-lg font-semibold mb-4">Product</h4>
|
| 36 |
+
<ul class="space-y-2">
|
| 37 |
+
<li><a href="#" class="footer-link text-gray-600">Features</a></li>
|
| 38 |
+
<li><a href="#" class="footer-link text-gray-600">Pricing</a></li>
|
| 39 |
+
<li><a href="#" class="footer-link text-gray-600">Documentation</a></li>
|
| 40 |
+
<li><a href="#" class="footer-link text-gray-600">Releases</a></li>
|
| 41 |
+
</ul>
|
| 42 |
+
</div>
|
| 43 |
+
<div>
|
| 44 |
+
<h4 class="text-lg font-semibold mb-4">Company</h4>
|
| 45 |
+
<ul class="space-y-2">
|
| 46 |
+
<li><a href="#" class="footer-link text-gray-600">About</a></li>
|
| 47 |
+
<li><a href="#" class="footer-link text-gray-600">Blog</a></li>
|
| 48 |
+
<li><a href="#" class="footer-link text-gray-600">Careers</a></li>
|
| 49 |
+
<li><a href="#" class="footer-link text-gray-600">Contact</a></li>
|
| 50 |
+
</ul>
|
| 51 |
+
</div>
|
| 52 |
+
<div>
|
| 53 |
+
<h4 class="text-lg font-semibold mb-4">Connect</h4>
|
| 54 |
+
<div class="flex space-x-4">
|
| 55 |
+
<a href="#" class="social-icon text-gray-600 hover:text-blue-500">
|
| 56 |
+
<i data-feather="twitter"></i>
|
| 57 |
+
</a>
|
| 58 |
+
<a href="#" class="social-icon text-gray-600 hover:text-blue-500">
|
| 59 |
+
<i data-feather="github"></i>
|
| 60 |
+
</a>
|
| 61 |
+
<a href="#" class="social-icon text-gray-600 hover:text-blue-500">
|
| 62 |
+
<i data-feather="linkedin"></i>
|
| 63 |
+
</a>
|
| 64 |
+
<a href="#" class="social-icon text-gray-600 hover:text-blue-500">
|
| 65 |
+
<i data-feather="facebook"></i>
|
| 66 |
+
</a>
|
| 67 |
+
</div>
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
<div class="border-t border-gray-200 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
|
| 71 |
+
<p class="text-gray-500 text-sm">© 2023 Friendly UI Wizard. All rights reserved.</p>
|
| 72 |
+
<div class="flex space-x-6 mt-4 md:mt-0">
|
| 73 |
+
<a href="#" class="text-gray-500 text-sm hover:text-blue-500">Privacy Policy</a>
|
| 74 |
+
<a href="#" class="text-gray-500 text-sm hover:text-blue-500">Terms of Service</a>
|
| 75 |
+
<a href="#" class="text-gray-500 text-sm hover:text-blue-500">Cookies</a>
|
| 76 |
+
</div>
|
| 77 |
+
</div>
|
| 78 |
+
</div>
|
| 79 |
+
</footer>
|
| 80 |
+
`;
|
| 81 |
+
|
| 82 |
+
// Initialize feather icons
|
| 83 |
+
feather.replace();
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
customElements.define('custom-footer', CustomFooter);
|
components/navbar.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
connectedCallback() {
|
| 3 |
+
this.attachShadow({ mode: 'open' });
|
| 4 |
+
this.shadowRoot.innerHTML = `
|
| 5 |
+
<style>
|
| 6 |
+
:host {
|
| 7 |
+
display: block;
|
| 8 |
+
width: 100%;
|
| 9 |
+
}
|
| 10 |
+
nav {
|
| 11 |
+
background-color: white;
|
| 12 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
| 13 |
+
}
|
| 14 |
+
.nav-container {
|
| 15 |
+
max-width: 1200px;
|
| 16 |
+
margin: 0 auto;
|
| 17 |
+
}
|
| 18 |
+
.nav-link:hover {
|
| 19 |
+
color: #3b82f6;
|
| 20 |
+
}
|
| 21 |
+
.mobile-menu {
|
| 22 |
+
transition: all 0.3s ease;
|
| 23 |
+
}
|
| 24 |
+
</style>
|
| 25 |
+
<nav class="py-4 px-4 sm:px-6 lg:px-8">
|
| 26 |
+
<div class="nav-container flex justify-between items-center">
|
| 27 |
+
<a href="/" class="flex items-center space-x-2">
|
| 28 |
+
<i data-feather="zap" class="text-blue-500"></i>
|
| 29 |
+
<span class="text-xl font-bold">Friendly UI</span>
|
| 30 |
+
</a>
|
| 31 |
+
|
| 32 |
+
<div class="hidden md:flex items-center space-x-8">
|
| 33 |
+
<a href="#features" class="nav-link text-gray-600 hover:text-blue-500 transition duration-300">Features</a>
|
| 34 |
+
<a href="#demo" class="nav-link text-gray-600 hover:text-blue-500 transition duration-300">Demo</a>
|
| 35 |
+
<a href="#" class="nav-link text-gray-600 hover:text-blue-500 transition duration-300">Pricing</a>
|
| 36 |
+
<a href="#" class="nav-link text-gray-600 hover:text-blue-500 transition duration-300">Contact</a>
|
| 37 |
+
<button class="px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition duration-300">
|
| 38 |
+
Get Started
|
| 39 |
+
</button>
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
<button id="mobile-menu-button" class="md:hidden text-gray-600">
|
| 43 |
+
<i data-feather="menu"></i>
|
| 44 |
+
</button>
|
| 45 |
+
</div>
|
| 46 |
+
|
| 47 |
+
<div id="mobile-menu" class="mobile-menu hidden md:hidden mt-4 space-y-2">
|
| 48 |
+
<a href="#features" class="block px-3 py-2 rounded-lg hover:bg-gray-100">Features</a>
|
| 49 |
+
<a href="#demo" class="block px-3 py-2 rounded-lg hover:bg-gray-100">Demo</a>
|
| 50 |
+
<a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-100">Pricing</a>
|
| 51 |
+
<a href="#" class="block px-3 py-2 rounded-lg hover:bg-gray-100">Contact</a>
|
| 52 |
+
<button class="w-full mt-2 px-4 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600">
|
| 53 |
+
Get Started
|
| 54 |
+
</button>
|
| 55 |
+
</div>
|
| 56 |
+
</nav>
|
| 57 |
+
`;
|
| 58 |
+
|
| 59 |
+
// Initialize mobile menu toggle
|
| 60 |
+
const menuButton = this.shadowRoot.getElementById('mobile-menu-button');
|
| 61 |
+
const mobileMenu = this.shadowRoot.getElementById('mobile-menu');
|
| 62 |
+
|
| 63 |
+
menuButton.addEventListener('click', () => {
|
| 64 |
+
mobileMenu.classList.toggle('hidden');
|
| 65 |
+
const icon = menuButton.querySelector('i');
|
| 66 |
+
if (mobileMenu.classList.contains('hidden')) {
|
| 67 |
+
icon.setAttribute('data-feather', 'menu');
|
| 68 |
+
} else {
|
| 69 |
+
icon.setAttribute('data-feather', 'x');
|
| 70 |
+
}
|
| 71 |
+
feather.replace();
|
| 72 |
+
});
|
| 73 |
+
|
| 74 |
+
// Initialize feather icons
|
| 75 |
+
feather.replace();
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
customElements.define('custom-navbar', CustomNavbar);
|
index.html
CHANGED
|
@@ -1,19 +1,85 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Friendly UI Wizard</title>
|
| 7 |
+
<link rel="stylesheet" href="style.css">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script src="components/navbar.js"></script>
|
| 12 |
+
<script src="components/footer.js"></script>
|
| 13 |
+
</head>
|
| 14 |
+
<body class="bg-gray-50 text-gray-800 min-h-screen flex flex-col">
|
| 15 |
+
<custom-navbar></custom-navbar>
|
| 16 |
+
|
| 17 |
+
<main class="flex-grow container mx-auto px-4 py-8">
|
| 18 |
+
<section class="max-w-4xl mx-auto text-center mb-12">
|
| 19 |
+
<h1 class="text-4xl md:text-5xl font-bold mb-6">Welcome to Friendly UI Wizard</h1>
|
| 20 |
+
<p class="text-xl text-gray-600 mb-8">Where user experience meets simplicity and elegance</p>
|
| 21 |
+
<div class="flex justify-center gap-4">
|
| 22 |
+
<a href="#features" class="px-6 py-3 bg-blue-500 hover:bg-blue-600 text-white rounded-lg transition duration-300">Explore Features</a>
|
| 23 |
+
<a href="#demo" class="px-6 py-3 border border-blue-500 text-blue-500 hover:bg-blue-50 rounded-lg transition duration-300">See Demo</a>
|
| 24 |
+
</div>
|
| 25 |
+
</section>
|
| 26 |
+
|
| 27 |
+
<section id="features" class="py-12">
|
| 28 |
+
<h2 class="text-3xl font-bold text-center mb-12">Key Features</h2>
|
| 29 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 30 |
+
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition duration-300">
|
| 31 |
+
<div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4">
|
| 32 |
+
<i data-feather="zap" class="text-blue-500"></i>
|
| 33 |
+
</div>
|
| 34 |
+
<h3 class="text-xl font-semibold mb-2">Lightning Fast</h3>
|
| 35 |
+
<p class="text-gray-600">Optimized for speed and performance with minimal loading times.</p>
|
| 36 |
+
</div>
|
| 37 |
+
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition duration-300">
|
| 38 |
+
<div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4">
|
| 39 |
+
<i data-feather="smartphone" class="text-blue-500"></i>
|
| 40 |
+
</div>
|
| 41 |
+
<h3 class="text-xl font-semibold mb-2">Responsive Design</h3>
|
| 42 |
+
<p class="text-gray-600">Looks great on all devices from mobile to desktop.</p>
|
| 43 |
+
</div>
|
| 44 |
+
<div class="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition duration-300">
|
| 45 |
+
<div class="w-12 h-12 bg-blue-100 rounded-lg flex items-center justify-center mb-4">
|
| 46 |
+
<i data-feather="heart" class="text-blue-500"></i>
|
| 47 |
+
</div>
|
| 48 |
+
<h3 class="text-xl font-semibold mb-2">User Friendly</h3>
|
| 49 |
+
<p class="text-gray-600">Intuitive interface designed with users in mind.</p>
|
| 50 |
+
</div>
|
| 51 |
+
</div>
|
| 52 |
+
</section>
|
| 53 |
+
|
| 54 |
+
<section id="demo" class="py-12 bg-white rounded-xl shadow-sm p-6 mb-12">
|
| 55 |
+
<h2 class="text-3xl font-bold text-center mb-8">Interactive Demo</h2>
|
| 56 |
+
<div class="max-w-2xl mx-auto">
|
| 57 |
+
<div class="mb-6">
|
| 58 |
+
<label class="block text-gray-700 mb-2">Try our friendly input</label>
|
| 59 |
+
<input type="text" placeholder="Type something..." class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none transition duration-300">
|
| 60 |
+
</div>
|
| 61 |
+
<div class="mb-6">
|
| 62 |
+
<label class="block text-gray-700 mb-2">Select an option</label>
|
| 63 |
+
<select class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none transition duration-300">
|
| 64 |
+
<option>Option 1</option>
|
| 65 |
+
<option>Option 2</option>
|
| 66 |
+
<option>Option 3</option>
|
| 67 |
+
</select>
|
| 68 |
+
</div>
|
| 69 |
+
<button class="w-full py-3 bg-blue-500 hover:bg-blue-600 text-white rounded-lg transition duration-300 flex items-center justify-center gap-2">
|
| 70 |
+
<i data-feather="send"></i>
|
| 71 |
+
Submit
|
| 72 |
+
</button>
|
| 73 |
+
</div>
|
| 74 |
+
</section>
|
| 75 |
+
</main>
|
| 76 |
+
|
| 77 |
+
<custom-footer></custom-footer>
|
| 78 |
+
|
| 79 |
+
<script>
|
| 80 |
+
feather.replace();
|
| 81 |
+
</script>
|
| 82 |
+
<script src="script.js"></script>
|
| 83 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 84 |
+
</body>
|
| 85 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Main application script
|
| 2 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 3 |
+
// Initialize tooltips
|
| 4 |
+
const tooltipTriggers = document.querySelectorAll('[data-tooltip]');
|
| 5 |
+
tooltipTriggers.forEach(trigger => {
|
| 6 |
+
const tooltip = document.createElement('div');
|
| 7 |
+
tooltip.className = 'hidden absolute z-50 bg-gray-800 text-white text-xs rounded py-1 px-2';
|
| 8 |
+
tooltip.textContent = trigger.getAttribute('data-tooltip');
|
| 9 |
+
trigger.appendChild(tooltip);
|
| 10 |
+
|
| 11 |
+
trigger.addEventListener('mouseenter', () => {
|
| 12 |
+
tooltip.classList.remove('hidden');
|
| 13 |
+
});
|
| 14 |
+
|
| 15 |
+
trigger.addEventListener('mouseleave', () => {
|
| 16 |
+
tooltip.classList.add('hidden');
|
| 17 |
+
});
|
| 18 |
+
});
|
| 19 |
+
|
| 20 |
+
// Smooth scroll for anchor links
|
| 21 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 22 |
+
anchor.addEventListener('click', function(e) {
|
| 23 |
+
e.preventDefault();
|
| 24 |
+
const target = document.querySelector(this.getAttribute('href'));
|
| 25 |
+
if (target) {
|
| 26 |
+
target.scrollIntoView({
|
| 27 |
+
behavior: 'smooth'
|
| 28 |
+
});
|
| 29 |
+
}
|
| 30 |
+
});
|
| 31 |
+
});
|
| 32 |
+
|
| 33 |
+
// Toast notification example
|
| 34 |
+
function showToast(message, type = 'info') {
|
| 35 |
+
const toast = document.createElement('div');
|
| 36 |
+
toast.className = `fixed bottom-4 right-4 px-4 py-2 rounded-lg shadow-lg text-white ${
|
| 37 |
+
type === 'error' ? 'bg-red-500' :
|
| 38 |
+
type === 'success' ? 'bg-green-500' : 'bg-blue-500'
|
| 39 |
+
}`;
|
| 40 |
+
toast.textContent = message;
|
| 41 |
+
document.body.appendChild(toast);
|
| 42 |
+
|
| 43 |
+
setTimeout(() => {
|
| 44 |
+
toast.classList.add('opacity-0', 'transition-opacity', 'duration-300');
|
| 45 |
+
setTimeout(() => toast.remove(), 300);
|
| 46 |
+
}, 3000);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
// Example usage
|
| 50 |
+
// showToast('Welcome to Friendly UI Wizard!', 'success');
|
| 51 |
+
});
|
style.css
CHANGED
|
@@ -1,28 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Custom styles that complement Tailwind */
|
| 2 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 3 |
+
|
| 4 |
body {
|
| 5 |
+
font-family: 'Inter', sans-serif;
|
| 6 |
+
line-height: 1.6;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
/* Smooth scrolling */
|
| 10 |
+
html {
|
| 11 |
+
scroll-behavior: smooth;
|
| 12 |
}
|
| 13 |
|
| 14 |
+
/* Custom focus styles */
|
| 15 |
+
*:focus {
|
| 16 |
+
outline: none;
|
| 17 |
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
|
| 18 |
}
|
| 19 |
|
| 20 |
+
/* Animation for hover effects */
|
| 21 |
+
.transition-all {
|
| 22 |
+
transition-property: all;
|
| 23 |
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
| 24 |
+
transition-duration: 150ms;
|
| 25 |
}
|
| 26 |
|
| 27 |
+
/* Custom scrollbar */
|
| 28 |
+
::-webkit-scrollbar {
|
| 29 |
+
width: 8px;
|
| 30 |
+
height: 8px;
|
|
|
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
+
::-webkit-scrollbar-track {
|
| 34 |
+
background: #f1f1f1;
|
| 35 |
}
|
| 36 |
+
|
| 37 |
+
::-webkit-scrollbar-thumb {
|
| 38 |
+
background: #888;
|
| 39 |
+
border-radius: 4px;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
::-webkit-scrollbar-thumb:hover {
|
| 43 |
+
background: #555;
|
| 44 |
+
}
|