triflix commited on
Commit
b464313
·
verified ·
1 Parent(s): b1957ae

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +61 -29
templates/index.html CHANGED
@@ -6,9 +6,20 @@
6
  <title>Notepad App | Developed by Aditya Devarshi</title>
7
 
8
  <!-- SEO Meta Tags -->
9
- <meta name="description" content="Notepad App by Aditya Devarshi. Create notes with text, emojis, and image URLs. Check out Aditya's portfolio and social links.">
10
- <meta name="keywords" content="Notepad, FastAPI, Tailwind, Aditya Devarshi, Portfolio, Developer, Python, SQLAlchemy">
11
  <meta name="author" content="Aditya Devarshi">
 
 
 
 
 
 
 
 
 
 
 
12
 
13
  <!-- Font Awesome for Icons -->
14
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-pap6k1gE+T1/2y5P5/9e6e+fDqBpcFjeDFMEBWfMJrP+y6O78x4AbMFTaQ3WkZs9F6h4vY+PC2ZChT1fIN7S3g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
@@ -22,27 +33,44 @@
22
  spacing: {
23
  '18': '4.5rem',
24
  },
 
 
 
25
  }
26
  }
27
  }
28
  </script>
29
 
30
  <style>
31
- /* Popup modal styling */
32
  .modal {
33
- transition: opacity 0.25s ease;
 
34
  }
35
  .modal-active {
36
- overflow-x: hidden;
37
- overflow-y: visible !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
39
  </style>
40
  </head>
41
  <body class="bg-white min-h-screen">
42
  <!-- Popup Modal for Developer Info -->
43
- <div id="devModal" class="modal fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 opacity-0 pointer-events-none">
44
  <div class="bg-white rounded-lg shadow-xl max-w-md w-full p-6 relative">
45
- <button onclick="toggleModal()" class="absolute top-2 right-2 text-gray-500 hover:text-gray-700">
46
  <i class="fas fa-times"></i>
47
  </button>
48
  <h2 class="text-2xl font-bold text-center mb-4">About Aditya Devarshi</h2>
@@ -71,11 +99,6 @@
71
  </div>
72
  </div>
73
 
74
- <!-- Button to Open Developer Popup -->
75
- <button onclick="toggleModal()" class="fixed bottom-5 right-5 bg-black text-white p-3 rounded-full shadow-lg hover:bg-gray-800 focus:outline-none">
76
- <i class="fas fa-info"></i>
77
- </button>
78
-
79
  <!-- Main Container -->
80
  <div class="container mx-auto px-4 py-8 sm:py-12">
81
  <div class="max-w-xl mx-auto bg-white rounded-lg shadow-sm border border-gray-200 p-5 sm:p-8">
@@ -146,25 +169,34 @@
146
  }
147
  }
148
 
149
- // Modal toggle functionality
150
- function toggleModal() {
151
  const modal = document.getElementById('devModal');
152
- if (modal.classList.contains('opacity-0')) {
153
- modal.classList.remove('opacity-0', 'pointer-events-none');
154
- document.body.classList.add('modal-active');
155
- } else {
156
- modal.classList.add('opacity-0', 'pointer-events-none');
157
- document.body.classList.remove('modal-active');
158
- }
159
  }
160
 
161
- // Log developer info in the console
162
- console.log("About Aditya Devarshi");
163
- console.log("Personal Website: https://www.adityadevarshi.online");
164
- console.log("Portfolio: https://github.com/devarshiadi/");
165
- console.log("LinkedIn: https://www.linkedin.com/in/aditya-devarshi/");
166
- console.log("Instagram: https://www.instagram.com/curseofwitcher/");
167
- console.log("Medium: https://medium.com/@devarshia5");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  </script>
169
  </body>
170
  </html>
 
6
  <title>Notepad App | Developed by Aditya Devarshi</title>
7
 
8
  <!-- SEO Meta Tags -->
9
+ <meta name="description" content="Notepad App by Aditya Devarshi. Create notes with text, emojis, and image URLs. Explore Aditya's portfolio and social profiles.">
10
+ <meta name="keywords" content="Notepad, FastAPI, Tailwind, Aditya Devarshi, Portfolio, Developer, Python, SQLAlchemy, Minimalist, Monochrome">
11
  <meta name="author" content="Aditya Devarshi">
12
+ <!-- Open Graph / Facebook -->
13
+ <meta property="og:type" content="website">
14
+ <meta property="og:title" content="Notepad App | Developed by Aditya Devarshi">
15
+ <meta property="og:description" content="Create notes with text, emojis, and image URLs. Check out Aditya Devarshi's portfolio and social profiles.">
16
+ <meta property="og:url" content="https://triflix-notepad.hf.space">
17
+ <meta property="og:image" content="https://triflix-notepad.hf.space/static/og-image.jpg">
18
+ <!-- Twitter -->
19
+ <meta name="twitter:card" content="summary_large_image">
20
+ <meta name="twitter:title" content="Notepad App | Developed by Aditya Devarshi">
21
+ <meta name="twitter:description" content="Create notes with text, emojis, and image URLs. Explore Aditya Devarshi's work.">
22
+ <meta name="twitter:image" content="https://triflix-notepad.hf.space/static/og-image.jpg">
23
 
24
  <!-- Font Awesome for Icons -->
25
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" integrity="sha512-pap6k1gE+T1/2y5P5/9e6e+fDqBpcFjeDFMEBWfMJrP+y6O78x4AbMFTaQ3WkZs9F6h4vY+PC2ZChT1fIN7S3g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
 
33
  spacing: {
34
  '18': '4.5rem',
35
  },
36
+ transitionDuration: {
37
+ '400': '400ms'
38
+ }
39
  }
40
  }
41
  }
42
  </script>
43
 
44
  <style>
45
+ /* Popup modal styling with animation */
46
  .modal {
47
+ transition: opacity 0.4s ease, transform 0.4s ease;
48
+ transform: translateY(-20px);
49
  }
50
  .modal-active {
51
+ opacity: 1;
52
+ transform: translateY(0);
53
+ }
54
+ .modal-hidden {
55
+ opacity: 0;
56
+ pointer-events: none;
57
+ }
58
+ /* Monochrome error effect */
59
+ .error-effect {
60
+ animation: shake 0.5s;
61
+ }
62
+ @keyframes shake {
63
+ 0%, 100% { transform: translateX(0); }
64
+ 20%, 60% { transform: translateX(-10px); }
65
+ 40%, 80% { transform: translateX(10px); }
66
  }
67
  </style>
68
  </head>
69
  <body class="bg-white min-h-screen">
70
  <!-- Popup Modal for Developer Info -->
71
+ <div id="devModal" class="modal fixed inset-0 flex items-center justify-center bg-black bg-opacity-50 modal-hidden">
72
  <div class="bg-white rounded-lg shadow-xl max-w-md w-full p-6 relative">
73
+ <button onclick="closeModal()" class="absolute top-2 right-2 text-gray-500 hover:text-gray-700">
74
  <i class="fas fa-times"></i>
75
  </button>
76
  <h2 class="text-2xl font-bold text-center mb-4">About Aditya Devarshi</h2>
 
99
  </div>
100
  </div>
101
 
 
 
 
 
 
102
  <!-- Main Container -->
103
  <div class="container mx-auto px-4 py-8 sm:py-12">
104
  <div class="max-w-xl mx-auto bg-white rounded-lg shadow-sm border border-gray-200 p-5 sm:p-8">
 
169
  }
170
  }
171
 
172
+ // Modal functions
173
+ function showModal() {
174
  const modal = document.getElementById('devModal');
175
+ modal.classList.remove('modal-hidden');
176
+ modal.classList.add('modal-active');
 
 
 
 
 
177
  }
178
 
179
+ function closeModal() {
180
+ const modal = document.getElementById('devModal');
181
+ modal.classList.remove('modal-active');
182
+ modal.classList.add('modal-hidden');
183
+ }
184
+
185
+ // Auto-show modal once per user using localStorage
186
+ window.addEventListener('load', function() {
187
+ if (!localStorage.getItem('modalShown')) {
188
+ showModal();
189
+ localStorage.setItem('modalShown', 'true');
190
+ }
191
+ });
192
+
193
+ // Attractive console logs with styling
194
+ console.log("%cAbout Aditya Devarshi", "color: white; background-color: black; font-size: 20px; padding: 4px 8px;");
195
+ console.log("%cPersonal Website: %chttps://www.adityadevarshi.online", "color: black; font-weight: bold;", "color: blue;");
196
+ console.log("%cPortfolio: %chttps://github.com/devarshiadi/", "color: black; font-weight: bold;", "color: blue;");
197
+ console.log("%cLinkedIn: %chttps://www.linkedin.com/in/aditya-devarshi/", "color: black; font-weight: bold;", "color: blue;");
198
+ console.log("%cInstagram: %chttps://www.instagram.com/curseofwitcher/", "color: black; font-weight: bold;", "color: blue;");
199
+ console.log("%cMedium: %chttps://medium.com/@devarshia5", "color: black; font-weight: bold;", "color: blue;");
200
  </script>
201
  </body>
202
  </html>