imseldrith commited on
Commit
0d187ac
·
verified ·
1 Parent(s): c9fbf41

Add more features

Browse files
Files changed (4) hide show
  1. components/footer.js +3 -3
  2. components/navbar.js +2 -2
  3. features.html +151 -0
  4. style.css +17 -1
components/footer.js CHANGED
@@ -88,10 +88,10 @@ class CustomFooter extends HTMLElement {
88
  <div class="footer-section">
89
  <h3>Quick Links</h3>
90
  <ul>
91
- <li><a href="#">Home</a></li>
92
- <li><a href="#">Features</a></li>
93
  <li><a href="#">About</a></li>
94
- <li><a href="#">Contact</a></li>
95
  </ul>
96
  </div>
97
  <div class="footer-section">
 
88
  <div class="footer-section">
89
  <h3>Quick Links</h3>
90
  <ul>
91
+ <li><a href="/">Home</a></li>
92
+ <li><a href="/features.html">Features</a></li>
93
  <li><a href="#">About</a></li>
94
+ <li><a href="#">Contact</a></li>
95
  </ul>
96
  </div>
97
  <div class="footer-section">
components/navbar.js CHANGED
@@ -67,9 +67,9 @@ class CustomNavbar extends HTMLElement {
67
  </a>
68
  <ul>
69
  <li><a href="/">Home</a></li>
70
- <li><a href="#">Features</a></li>
71
  <li><a href="#">About</a></li>
72
- <li>
73
  <a href="https://github.com/saurabhdaware/text-to-handwriting" target="_blank" class="github-btn">
74
  <i data-feather="github"></i>
75
  GitHub
 
67
  </a>
68
  <ul>
69
  <li><a href="/">Home</a></li>
70
+ <li><a href="/features.html">Features</a></li>
71
  <li><a href="#">About</a></li>
72
+ <li>
73
  <a href="https://github.com/saurabhdaware/text-to-handwriting" target="_blank" class="github-btn">
74
  <i data-feather="github"></i>
75
  GitHub
features.html ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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>ScribbleToScript - Features</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
+ </head>
11
+ <body class="bg-gray-50 min-h-screen flex flex-col">
12
+ <custom-navbar></custom-navbar>
13
+
14
+ <main class="flex-grow container mx-auto px-4 py-12">
15
+ <div class="max-w-6xl mx-auto">
16
+ <h1 class="text-4xl font-bold text-gray-800 mb-4 text-center">Advanced Features</h1>
17
+ <p class="text-xl text-gray-600 mb-12 text-center max-w-3xl mx-auto">Explore all the powerful tools to customize your handwriting experience</p>
18
+
19
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
20
+ <!-- Feature 1 -->
21
+ <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition">
22
+ <div class="p-6">
23
+ <div class="flex items-center gap-3 mb-4">
24
+ <div class="p-3 rounded-full bg-indigo-100 text-indigo-600">
25
+ <i data-feather="type"></i>
26
+ </div>
27
+ <h3 class="text-xl font-semibold text-gray-800">Multiple Fonts</h3>
28
+ </div>
29
+ <p class="text-gray-600">Choose from 10+ realistic handwriting styles to match your personal writing</p>
30
+ <div class="mt-4">
31
+ <select class="w-full border border-gray-300 rounded-lg px-4 py-2">
32
+ <option>Standard Handwriting</option>
33
+ <option>Neat Print</option>
34
+ <option>Casual Script</option>
35
+ <option>Formal Cursive</option>
36
+ </select>
37
+ </div>
38
+ </div>
39
+ </div>
40
+
41
+ <!-- Feature 2 -->
42
+ <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition">
43
+ <div class="p-6">
44
+ <div class="flex items-center gap-3 mb-4">
45
+ <div class="p-3 rounded-full bg-pink-100 text-pink-600">
46
+ <i data-feather="droplet"></i>
47
+ </div>
48
+ <h3 class="text-xl font-semibold text-gray-800">Ink Colors</h3>
49
+ </div>
50
+ <p class="text-gray-600">Customize with various ink colors and textures</p>
51
+ <div class="mt-4 flex gap-2 flex-wrap">
52
+ <div class="w-8 h-8 rounded-full bg-black cursor-pointer border-2 border-gray-200"></div>
53
+ <div class="w-8 h-8 rounded-full bg-blue-600 cursor-pointer"></div>
54
+ <div class="w-8 h-8 rounded-full bg-red-600 cursor-pointer"></div>
55
+ <div class="w-8 h-8 rounded-full bg-green-600 cursor-pointer"></div>
56
+ <div class="w-8 h-8 rounded-full bg-yellow-500 cursor-pointer"></div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+
61
+ <!-- Feature 3 -->
62
+ <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition">
63
+ <div class="p-6">
64
+ <div class="flex items-center gap-3 mb-4">
65
+ <div class="p-3 rounded-full bg-purple-100 text-purple-600">
66
+ <i data-feather="paperclip"></i>
67
+ </div>
68
+ <h3 class="text-xl font-semibold text-gray-800">Paper Styles</h3>
69
+ </div>
70
+ <p class="text-gray-600">Select different paper backgrounds and textures</p>
71
+ <div class="mt-4 grid grid-cols-3 gap-2">
72
+ <div class="h-12 bg-white border cursor-pointer"></div>
73
+ <div class="h-12 bg-gray-50 border cursor-pointer"></div>
74
+ <div class="h-12 bg-amber-50 border cursor-pointer"></div>
75
+ </div>
76
+ </div>
77
+ </div>
78
+
79
+ <!-- Feature 4 -->
80
+ <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition">
81
+ <div class="p-6">
82
+ <div class="flex items-center gap-3 mb-4">
83
+ <div class="p-3 rounded-full bg-blue-100 text-blue-600">
84
+ <i data-feather="download-cloud"></i>
85
+ </div>
86
+ <h3 class="text-xl font-semibold text-gray-800">Export Options</h3>
87
+ </div>
88
+ <p class="text-gray-600">Save your work in multiple formats</p>
89
+ <div class="mt-4 flex gap-3">
90
+ <button class="px-4 py-2 bg-blue-100 text-blue-600 rounded-lg text-sm font-medium">PNG</button>
91
+ <button class="px-4 py-2 bg-blue-100 text-blue-600 rounded-lg text-sm font-medium">PDF</button>
92
+ <button class="px-4 py-2 bg-blue-100 text-blue-600 rounded-lg text-sm font-medium">SVG</button>
93
+ </div>
94
+ </div>
95
+ </div>
96
+
97
+ <!-- Feature 5 -->
98
+ <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition">
99
+ <div class="p-6">
100
+ <div class="flex items-center gap-3 mb-4">
101
+ <div class="p-3 rounded-full bg-green-100 text-green-600">
102
+ <i data-feather="share-2"></i>
103
+ </div>
104
+ <h3 class="text-xl font-semibold text-gray-800">Sharing</h3>
105
+ </div>
106
+ <p class="text-gray-600">Share directly to social media or generate a link</p>
107
+ <div class="mt-4 flex gap-3">
108
+ <button class="px-4 py-2 bg-green-100 text-green-600 rounded-lg text-sm font-medium flex items-center gap-1">
109
+ <i data-feather="twitter" class="w-4 h-4"></i> Tweet
110
+ </button>
111
+ <button class="px-4 py-2 bg-green-100 text-green-600 rounded-lg text-sm font-medium">Copy Link</button>
112
+ </div>
113
+ </div>
114
+ </div>
115
+
116
+ <!-- Feature 6 -->
117
+ <div class="bg-white rounded-xl shadow-md overflow-hidden hover:shadow-lg transition">
118
+ <div class="p-6">
119
+ <div class="flex items-center gap-3 mb-4">
120
+ <div class="p-3 rounded-full bg-yellow-100 text-yellow-600">
121
+ <i data-feather="settings"></i>
122
+ </div>
123
+ <h3 class="text-xl font-semibold text-gray-800">Advanced Settings</h3>
124
+ </div>
125
+ <p class="text-gray-600">Fine-tune your handwriting appearance</p>
126
+ <div class="mt-4 space-y-3">
127
+ <div class="flex items-center justify-between">
128
+ <span class="text-sm text-gray-600">Letter Spacing</span>
129
+ <input type="range" class="w-24">
130
+ </div>
131
+ <div class="flex items-center justify-between">
132
+ <span class="text-sm text-gray-600">Line Height</span>
133
+ <input type="range" class="w-24">
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ </main>
141
+
142
+ <custom-footer></custom-footer>
143
+
144
+ <script src="components/navbar.js"></script>
145
+ <script src="components/footer.js"></script>
146
+ <script src="script.js"></script>
147
+ <script>
148
+ feather.replace();
149
+ </script>
150
+ </body>
151
+ </html>
style.css CHANGED
@@ -14,6 +14,23 @@ body {
14
  .handwriting {
15
  font-family: 'Handwriting', cursive;
16
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  /* Animation for the generate button */
19
  @keyframes pulse {
@@ -21,7 +38,6 @@ body {
21
  50% { transform: scale(1.05); }
22
  100% { transform: scale(1); }
23
  }
24
-
25
  .animate-pulse {
26
  animation: pulse 1.5s infinite;
27
  }
 
14
  .handwriting {
15
  font-family: 'Handwriting', cursive;
16
  }
17
+ /* Feature cards animation */
18
+ @keyframes fadeInUp {
19
+ from { opacity: 0; transform: translateY(20px); }
20
+ to { opacity: 1; transform: translateY(0); }
21
+ }
22
+
23
+ .feature-card {
24
+ animation: fadeInUp 0.5s ease-out forwards;
25
+ opacity: 0;
26
+ }
27
+
28
+ .feature-card:nth-child(1) { animation-delay: 0.1s; }
29
+ .feature-card:nth-child(2) { animation-delay: 0.2s; }
30
+ .feature-card:nth-child(3) { animation-delay: 0.3s; }
31
+ .feature-card:nth-child(4) { animation-delay: 0.4s; }
32
+ .feature-card:nth-child(5) { animation-delay: 0.5s; }
33
+ .feature-card:nth-child(6) { animation-delay: 0.6s; }
34
 
35
  /* Animation for the generate button */
36
  @keyframes pulse {
 
38
  50% { transform: scale(1.05); }
39
  100% { transform: scale(1); }
40
  }
 
41
  .animate-pulse {
42
  animation: pulse 1.5s infinite;
43
  }