D3faultnull commited on
Commit
0d453b8
·
verified ·
1 Parent(s): 11389b8

make a website for giveaway that choose a random comment from and instagram link video or post and that is designed like IOS 26 with an about section and a contact me section

Browse files
Files changed (8) hide show
  1. README.md +8 -5
  2. about.html +56 -0
  3. components/footer.js +39 -0
  4. components/navbar.js +36 -0
  5. contact.html +75 -0
  6. index.html +76 -19
  7. script.js +63 -0
  8. style.css +59 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Instapicker Pro
3
- emoji: 🏆
4
- colorFrom: purple
5
- colorTo: indigo
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: InstaPicker Pro 🎰
3
+ colorFrom: green
4
+ colorTo: gray
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).
about.html ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>About - InstaPicker Pro</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="components/navbar.js"></script>
10
+ <script src="components/footer.js"></script>
11
+ </head>
12
+ <body class="bg-gray-50 min-h-screen flex flex-col">
13
+ <custom-navbar></custom-navbar>
14
+
15
+ <main class="flex-grow container mx-auto px-4 py-12">
16
+ <div class="max-w-3xl mx-auto bg-white rounded-2xl shadow-sm overflow-hidden p-8">
17
+ <div class="text-center mb-8">
18
+ <h1 class="text-3xl font-bold text-gray-800 mb-2">About InstaPicker Pro</h1>
19
+ <p class="text-gray-600">The fairest way to pick Instagram giveaway winners</p>
20
+ </div>
21
+
22
+ <div class="space-y-6">
23
+ <div class="bg-gray-50 p-6 rounded-xl">
24
+ <h2 class="text-xl font-semibold text-gray-800 mb-4">Our Mission</h2>
25
+ <p class="text-gray-700">We created InstaPicker Pro to make Instagram giveaways transparent and fair. Our tool ensures every participant has an equal chance to win, with no favoritism or bias.</p>
26
+ </div>
27
+
28
+ <div class="bg-gray-50 p-6 rounded-xl">
29
+ <h2 class="text-xl font-semibold text-gray-800 mb-4">How It Works</h2>
30
+ <ol class="list-decimal list-inside space-y-2 text-gray-700">
31
+ <li>Paste your Instagram post URL</li>
32
+ <li>We retrieve all valid comments</li>
33
+ <li>Our algorithm selects a random winner</li>
34
+ <li>You get a verifiable result instantly</li>
35
+ </ol>
36
+ </div>
37
+
38
+ <div class="bg-gray-50 p-6 rounded-xl">
39
+ <h2 class="text-xl font-semibold text-gray-800 mb-4">Features</h2>
40
+ <ul class="list-disc list-inside space-y-2 text-gray-700">
41
+ <li>iOS-inspired clean design</li>
42
+ <li>Fast and reliable processing</li>
43
+ <li>Verifiable random selection</li>
44
+ <li>No login required</li>
45
+ <li>Completely free to use</li>
46
+ </ul>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ </main>
51
+
52
+ <custom-footer></custom-footer>
53
+
54
+ <script src="script.js"></script>
55
+ </body>
56
+ </html>
components/footer.js ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomFooter extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ footer {
7
+ background-color: #f5f5f7;
8
+ color: #86868b;
9
+ border-top: 1px solid #d2d2d7;
10
+ }
11
+ .footer-link:hover {
12
+ color: #a5b4fc;
13
+ }
14
+ </style>
15
+ <footer class="text-gray-300 py-8">
16
+ <div class="container mx-auto px-4">
17
+ <div class="flex flex-col md:flex-row justify-between items-center">
18
+ <div class="mb-4 md:mb-0">
19
+ <div class="flex items-center space-x-2">
20
+ <i data-feather="award"></i>
21
+ <span class="text-lg font-medium">InstaRaffle</span>
22
+ </div>
23
+ <p class="text-sm mt-2">Making Instagram giveaways fair and fun</p>
24
+ </div>
25
+ <div class="flex flex-col md:flex-row md:space-x-8 space-y-2 md:space-y-0 text-sm">
26
+ <a href="#" class="footer-link hover:text-007AFF transition-colors">Terms</a>
27
+ <a href="#" class="footer-link hover:text-007AFF transition-colors">Privacy</a>
28
+ <a href="contact.html" class="footer-link hover:text-007AFF transition-colors">Contact</a>
29
+ </div>
30
+ </div>
31
+ <div class="border-t border-indigo-900 mt-6 pt-6 text-center text-xs">
32
+ <p>© ${new Date().getFullYear()} InstaRaffle. All rights reserved.</p>
33
+ </div>
34
+ </div>
35
+ </footer>
36
+ `;
37
+ }
38
+ }
39
+ customElements.define('custom-footer', CustomFooter);
components/navbar.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class CustomNavbar extends HTMLElement {
2
+ connectedCallback() {
3
+ this.attachShadow({ mode: 'open' });
4
+ this.shadowRoot.innerHTML = `
5
+ <style>
6
+ .navbar {
7
+ background: linear-gradient(135deg, #007AFF 0%, #34C759 100%);
8
+ backdrop-filter: blur(10px);
9
+ -webkit-backdrop-filter: blur(10px);
10
+ }
11
+ .nav-link:hover {
12
+ color: #e0e7ff;
13
+ }
14
+ </style>
15
+ <nav class="navbar text-white shadow-lg">
16
+ <div class="container mx-auto px-4 py-4">
17
+ <div class="flex justify-between items-center">
18
+ <div class="flex items-center space-x-2">
19
+ <i data-feather="award"></i>
20
+ <span class="text-xl font-bold">InstaRaffle</span>
21
+ </div>
22
+ <div class="hidden md:flex items-center space-x-6">
23
+ <a href="index.html" class="nav-link hover:text-white transition-colors">Home</a>
24
+ <a href="about.html" class="nav-link hover:text-white transition-colors">About</a>
25
+ <a href="contact.html" class="nav-link hover:text-white transition-colors">Contact</a>
26
+ </div>
27
+ <button class="md:hidden focus:outline-none">
28
+ <i data-feather="menu"></i>
29
+ </button>
30
+ </div>
31
+ </div>
32
+ </nav>
33
+ `;
34
+ }
35
+ }
36
+ customElements.define('custom-navbar', CustomNavbar);
contact.html ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>Contact - InstaPicker Pro</title>
7
+ <link rel="stylesheet" href="style.css">
8
+ <script src="https://cdn.tailwindcss.com"></script>
9
+ <script src="components/navbar.js"></script>
10
+ <script src="components/footer.js"></script>
11
+ </head>
12
+ <body class="bg-gray-50 min-h-screen flex flex-col">
13
+ <custom-navbar></custom-navbar>
14
+
15
+ <main class="flex-grow container mx-auto px-4 py-12">
16
+ <div class="max-w-3xl mx-auto bg-white rounded-2xl shadow-sm overflow-hidden p-8">
17
+ <div class="text-center mb-8">
18
+ <h1 class="text-3xl font-bold text-gray-800 mb-2">Contact Us</h1>
19
+ <p class="text-gray-600">Have questions? We're here to help!</p>
20
+ </div>
21
+
22
+ <div class="space-y-6">
23
+ <div class="bg-gray-50 p-6 rounded-xl">
24
+ <h2 class="text-xl font-semibold text-gray-800 mb-4">Get in Touch</h2>
25
+ <form class="space-y-4">
26
+ <div>
27
+ <label for="name" class="block text-sm font-medium text-gray-700 mb-1">Name</label>
28
+ <input type="text" id="name" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
29
+ </div>
30
+ <div>
31
+ <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
32
+ <input type="email" id="email" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500">
33
+ </div>
34
+ <div>
35
+ <label for="message" class="block text-sm font-medium text-gray-700 mb-1">Message</label>
36
+ <textarea id="message" rows="4" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"></textarea>
37
+ </div>
38
+ <button type="submit" class="w-full bg-blue-500 text-white px-6 py-3 rounded-lg hover:bg-blue-600 transition-colors">
39
+ Send Message
40
+ </button>
41
+ </form>
42
+ </div>
43
+
44
+ <div class="bg-gray-50 p-6 rounded-xl">
45
+ <h2 class="text-xl font-semibold text-gray-800 mb-4">Other Ways to Connect</h2>
46
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
47
+ <div class="text-center p-4 border border-gray-200 rounded-lg">
48
+ <i data-feather="mail" class="w-6 h-6 mx-auto text-blue-500 mb-2"></i>
49
+ <h3 class="font-medium text-gray-800">Email</h3>
50
+ <p class="text-sm text-gray-600">hello@instapicker.pro</p>
51
+ </div>
52
+ <div class="text-center p-4 border border-gray-200 rounded-lg">
53
+ <i data-feather="twitter" class="w-6 h-6 mx-auto text-blue-400 mb-2"></i>
54
+ <h3 class="font-medium text-gray-800">Twitter</h3>
55
+ <p class="text-sm text-gray-600">@instapickerpro</p>
56
+ </div>
57
+ <div class="text-center p-4 border border-gray-200 rounded-lg">
58
+ <i data-feather="instagram" class="w-6 h-6 mx-auto text-pink-500 mb-2"></i>
59
+ <h3 class="font-medium text-gray-800">Instagram</h3>
60
+ <p class="text-sm text-gray-600">@instapickerpro</p>
61
+ </div>
62
+ </div>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </main>
67
+
68
+ <custom-footer></custom-footer>
69
+
70
+ <script src="script.js"></script>
71
+ <script>
72
+ feather.replace();
73
+ </script>
74
+ </body>
75
+ </html>
index.html CHANGED
@@ -1,19 +1,76 @@
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>InstaRaffle - Instagram Giveaway Picker</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
+ <script src="components/navbar.js"></script>
12
+ <script src="components/footer.js"></script>
13
+ </head>
14
+ <body class="bg-gray-50 min-h-screen flex flex-col">
15
+ <custom-navbar></custom-navbar>
16
+ <main class="flex-grow container mx-auto px-4 py-12">
17
+ <div class="max-w-3xl mx-auto bg-white rounded-2xl shadow-ios overflow-hidden p-8">
18
+ <div class="text-center mb-8">
19
+ <h1 class="text-3xl font-bold text-gray-800 mb-2">InstaRaffle Magic Wand</h1>
20
+ <p class="text-gray-600">Pick a random winner from your Instagram giveaway comments</p>
21
+ </div>
22
+
23
+ <div class="space-y-6">
24
+ <div class="bg-indigo-50 p-6 rounded-lg">
25
+ <h2 class="text-xl font-semibold text-indigo-800 mb-4">How it works</h2>
26
+ <ol class="list-decimal list-inside space-y-2 text-gray-700">
27
+ <li>Paste your Instagram post URL below</li>
28
+ <li>We'll fetch all the comments</li>
29
+ <li>Our magic wand will pick a random winner</li>
30
+ <li>Celebrate your giveaway winner!</li>
31
+ </ol>
32
+ </div>
33
+
34
+ <div class="space-y-4">
35
+ <label for="instagram-url" class="block text-sm font-medium text-gray-700">Instagram Post URL</label>
36
+ <div class="flex">
37
+ <input type="text" id="instagram-url" placeholder="https://www.instagram.com/p/..."
38
+ class="input-ios flex-grow rounded-r-none">
39
+ <button id="fetch-btn" class="button-ios bg-blue-500 text-white rounded-l-none hover:bg-blue-600">
40
+ Fetch Comments
41
+ </button>
42
+ </div>
43
+ </div>
44
+
45
+ <div id="loading" class="hidden text-center py-8">
46
+ <div class="animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-indigo-500 mx-auto mb-4"></div>
47
+ <p class="text-gray-600">Fetching comments from Instagram...</p>
48
+ </div>
49
+
50
+ <div id="results" class="hidden space-y-6">
51
+ <div class="bg-green-50 p-4 rounded-lg">
52
+ <h3 class="text-lg font-medium text-green-800 mb-2">🎉 And the winner is...</h3>
53
+ <div id="winner" class="text-2xl font-bold text-green-600"></div>
54
+ </div>
55
+
56
+ <div>
57
+ <h3 class="text-lg font-medium text-gray-800 mb-2">All Participants</h3>
58
+ <div id="participants" class="bg-gray-50 p-4 rounded-lg max-h-60 overflow-y-auto"></div>
59
+ </div>
60
+ <button id="pick-again" class="button-ios w-full bg-blue-500 text-white hover:bg-blue-600">
61
+ Pick Another Winner
62
+ </button>
63
+ </div>
64
+ </div>
65
+ </div>
66
+ </main>
67
+
68
+ <custom-footer></custom-footer>
69
+
70
+ <script src="script.js"></script>
71
+ <script>
72
+ feather.replace();
73
+ </script>
74
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
75
+ </body>
76
+ </html>
script.js ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+ const fetchBtn = document.getElementById('fetch-btn');
3
+ const instagramUrl = document.getElementById('instagram-url');
4
+ const loading = document.getElementById('loading');
5
+ const results = document.getElementById('results');
6
+ const winner = document.getElementById('winner');
7
+ const participants = document.getElementById('participants');
8
+ const pickAgain = document.getElementById('pick-again');
9
+
10
+ // Mock data for demonstration
11
+ const mockParticipants = [
12
+ "@user123", "@giveawaylover", "@instafan", "@shopaholic",
13
+ "@fitnessguru", "@travelbug", "@foodieforever", "@techgeek",
14
+ "@fashionista", "@bookworm", "@petlover", "@musicfan",
15
+ "@artistlife", "@photographypro", "@entrepreneur", "@studentlife"
16
+ ];
17
+
18
+ fetchBtn.addEventListener('click', function() {
19
+ if (!instagramUrl.value) {
20
+ alert('Please enter an Instagram post URL');
21
+ return;
22
+ }
23
+
24
+ // Show loading state
25
+ loading.classList.remove('hidden');
26
+ results.classList.add('hidden');
27
+
28
+ // Simulate API call with timeout
29
+ setTimeout(() => {
30
+ loading.classList.add('hidden');
31
+ results.classList.remove('hidden');
32
+
33
+ // Display all participants
34
+ participants.innerHTML = '';
35
+ mockParticipants.forEach(participant => {
36
+ const p = document.createElement('p');
37
+ p.textContent = participant;
38
+ p.className = 'py-1 border-b border-gray-100 last:border-0';
39
+ participants.appendChild(p);
40
+ });
41
+
42
+ // Pick a random winner
43
+ pickRandomWinner();
44
+ }, 2000);
45
+ });
46
+
47
+ pickAgain.addEventListener('click', pickRandomWinner);
48
+
49
+ function pickRandomWinner() {
50
+ // Reset animation
51
+ winner.classList.remove('winner-pulse');
52
+
53
+ // Force reflow to restart animation
54
+ void winner.offsetWidth;
55
+
56
+ // Pick random winner
57
+ const randomIndex = Math.floor(Math.random() * mockParticipants.length);
58
+ winner.textContent = mockParticipants[randomIndex];
59
+
60
+ // Add animation
61
+ winner.classList.add('winner-pulse');
62
+ }
63
+ });
style.css CHANGED
@@ -1,28 +1,69 @@
 
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
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
2
  body {
3
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
4
+ -webkit-font-smoothing: antialiased;
5
  }
6
 
7
+ /* iOS-like rounded corners */
8
+ .rounded-ios {
9
+ border-radius: 14px;
10
  }
11
 
12
+ /* iOS-like buttons */
13
+ .button-ios {
14
+ font-size: 17px;
15
+ font-weight: 600;
16
+ padding: 12px 24px;
17
+ border-radius: 12px;
18
+ transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
19
  }
20
 
21
+ .button-ios:active {
22
+ transform: scale(0.98);
 
 
 
 
23
  }
24
 
25
+ /* iOS-like card shadows */
26
+ .shadow-ios {
27
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
28
  }
29
+
30
+ /* iOS-like input fields */
31
+ .input-ios {
32
+ border-radius: 10px;
33
+ border: 1px solid #c7c7cc;
34
+ font-size: 16px;
35
+ padding: 12px 16px;
36
+ }
37
+
38
+ .input-ios:focus {
39
+ border-color: #007AFF;
40
+ }
41
+ /* Custom scrollbar for participants list */
42
+ #participants::-webkit-scrollbar {
43
+ width: 8px;
44
+ }
45
+
46
+ #participants::-webkit-scrollbar-track {
47
+ background: #f1f1f1;
48
+ border-radius: 4px;
49
+ }
50
+
51
+ #participants::-webkit-scrollbar-thumb {
52
+ background: #c7d2fe;
53
+ border-radius: 4px;
54
+ }
55
+
56
+ #participants::-webkit-scrollbar-thumb:hover {
57
+ background: #a5b4fc;
58
+ }
59
+
60
+ /* Animation for winner reveal */
61
+ @keyframes pulse {
62
+ 0% { transform: scale(1); }
63
+ 50% { transform: scale(1.05); }
64
+ 100% { transform: scale(1); }
65
+ }
66
+
67
+ .winner-pulse {
68
+ animation: pulse 0.5s ease-in-out 3;
69
+ }