|
30 | 30 |
|
31 | 31 | <div class="flex flex-col gap-4 sm:flex-row sm:items-center"> |
32 | 32 | <% if current_user %> |
33 | | - <%= link_to raw_profile_path(current_user.login), class: "inline-flex items-center justify-center gap-2 rounded-full bg-slate-700 text-white px-8 py-4 text-lg font-semibold shadow-lg transition-all duration-200 hover:shadow-xl hover:scale-105 hover:bg-slate-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 dark:bg-slate-600 dark:hover:bg-slate-500" do %> |
| 33 | + <%= link_to profile_path(username: current_user.login), class: "inline-flex items-center justify-center gap-2 rounded-full bg-slate-700 text-white px-8 py-4 text-lg font-semibold shadow-lg transition-all duration-200 hover:shadow-xl hover:scale-105 hover:bg-slate-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 dark:bg-slate-600 dark:hover:bg-slate-500" do %> |
34 | 34 | <span>View My Profile</span> |
35 | 35 | <svg class="h-5 w-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
36 | 36 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6" /> |
|
196 | 196 | DevOps engineer and open source contributor with expertise in Rails, Docker, and cloud infrastructure. |
197 | 197 | </p> |
198 | 198 | <div class="flex gap-3"> |
199 | | - <%= link_to raw_profile_path("loftwah"), class: "inline-flex items-center gap-2 rounded-full bg-slate-700 text-white px-6 py-3 text-sm font-semibold transition-all duration-200 hover:scale-105 hover:bg-slate-600 dark:bg-slate-600 dark:hover:bg-slate-500" do %> |
| 199 | + <%= link_to profile_path(username: "loftwah"), class: "inline-flex items-center gap-2 rounded-full bg-slate-700 text-white px-6 py-3 text-sm font-semibold transition-all duration-200 hover:scale-105 hover:bg-slate-600 dark:bg-slate-600 dark:hover:bg-slate-500" do %> |
200 | 200 | <span>View Profile</span> |
201 | 201 | <svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
202 | 202 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6" /> |
203 | 203 | </svg> |
204 | 204 | <% end %> |
205 | | - <%= link_to raw_profile_path("loftwah", format: :json), class: "inline-flex items-center gap-2 rounded-full border border-slate-200 bg-white px-6 py-3 text-sm font-semibold text-slate-900 transition hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700" do %> |
| 205 | + <%= link_to profile_path(username: "loftwah", format: :json), class: "inline-flex items-center gap-2 rounded-full border border-slate-200 bg-white px-6 py-3 text-sm font-semibold text-slate-900 transition hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700" do %> |
206 | 206 | <svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
207 | 207 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" /> |
208 | 208 | </svg> |
|
227 | 227 | Co-creator of TecHub, passionate about developer tools and open source collaboration. |
228 | 228 | </p> |
229 | 229 | <div class="flex gap-3"> |
230 | | - <%= link_to raw_profile_path("jrh89"), class: "inline-flex items-center gap-2 rounded-full bg-slate-700 text-white px-6 py-3 text-sm font-semibold transition-all duration-200 hover:scale-105 hover:bg-slate-600 dark:bg-slate-600 dark:hover:bg-slate-500" do %> |
| 230 | + <%= link_to profile_path(username: "jrh89"), class: "inline-flex items-center gap-2 rounded-full bg-slate-700 text-white px-6 py-3 text-sm font-semibold transition-all duration-200 hover:scale-105 hover:bg-slate-600 dark:bg-slate-600 dark:hover:bg-slate-500" do %> |
231 | 231 | <span>View Profile</span> |
232 | 232 | <svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
233 | 233 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7l5 5m0 0l-5 5m5-5H6" /> |
234 | 234 | </svg> |
235 | 235 | <% end %> |
236 | | - <%= link_to raw_profile_path("jrh89", format: :json), class: "inline-flex items-center gap-2 rounded-full border border-slate-200 bg-white px-6 py-3 text-sm font-semibold text-slate-900 transition hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700" do %> |
| 236 | + <%= link_to profile_path(username: "jrh89", format: :json), class: "inline-flex items-center gap-2 rounded-full border border-slate-200 bg-white px-6 py-3 text-sm font-semibold text-slate-900 transition hover:bg-slate-50 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-100 dark:hover:bg-slate-700" do %> |
237 | 237 | <svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"> |
238 | 238 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" /> |
239 | 239 | </svg> |
|
247 | 247 | <!-- Try Your Own --> |
248 | 248 | <div class="mt-12 text-center"> |
249 | 249 | <div class="mx-auto max-w-2xl rounded-2xl border border-slate-200 bg-white p-8 shadow-lg dark:border-slate-800 dark:bg-slate-900"> |
250 | | - <h3 class="mb-4 text-2xl font-bold text-slate-900 dark:text-slate-100">Try Any GitHub Username</h3> |
| 250 | + <h3 class="mb-4 text-2xl font-bold text-slate-900 dark:text-slate-100">Add Your GitHub Profile</h3> |
251 | 251 | <p class="mb-6 text-slate-600 dark:text-slate-400"> |
252 | | - Simply visit <code class="rounded bg-slate-100 px-2 py-1 text-sm text-slate-900 dark:bg-slate-800 dark:text-slate-100">/raw_profiles/<username></code> to view any profile |
| 252 | + Sign in and submit your username to generate your TecHub profile. |
253 | 253 | </p> |
254 | | - <form id="profileSearch" class="flex flex-col sm:flex-row gap-3"> |
| 254 | + <form id="profileSearch" class="flex flex-col sm:flex-row gap-3 hidden"> |
255 | 255 | <input |
256 | 256 | type="text" |
257 | 257 | id="usernameInput" |
|
274 | 274 | e.preventDefault(); |
275 | 275 | const username = document.getElementById('usernameInput').value.trim(); |
276 | 276 | if (username) { |
277 | | - window.location.href = '/raw_profiles/' + encodeURIComponent(username); |
| 277 | + window.location.href = '/profiles/' + encodeURIComponent(username); |
278 | 278 | } |
279 | 279 | }); |
280 | 280 | </script> |
|
0 commit comments