Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit 4d13103

Browse files
committed
profile page
1 parent 668242a commit 4d13103

File tree

5 files changed

+314
-5
lines changed

5 files changed

+314
-5
lines changed

source/_layouts/nav.blade.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
Submit new component
1818
</a>
1919

20-
<div class="relative" @mouseover="dropdown = true" @mouseover.away="dropdown = false" x-data="{ dropdown: true }">
20+
<div class="relative" @mouseover="dropdown = true" @mouseover.away="dropdown = false" x-data="{ dropdown: false }">
2121
<!-- Dropdown toggle button -->
2222
<button class="flex items-center justify-center space-x-2 focus:outline-none">
2323
<img class="object-cover w-8 h-8 border-2 rounded-full border-primary lg:w-10 lg:h-10 " src="https://images.unsplash.com/photo-1502767882403-636aee14f873?ixid=MXwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHw%3D&ixlib=rb-1.2.1&auto=format&fit=crop&w=634&q=80" alt="avatar">
@@ -33,14 +33,19 @@
3333
x-transition:leave="transition ease-in duration-75 transform"
3434
x-transition:leave-start="opacity-100 scale-100"
3535
x-transition:leave-end="opacity-0 scale-95"
36-
class="absolute right-0 z-20 w-48 py-1 mt-2 bg-white border border-gray-100 rounded-md shadow-xl dark:bg-gray-800">
37-
<a href="#" class="block px-4 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 transform dark:text-gray-300 hover:bg-primary hover:text-white dark:hover:text-white">
36+
class="absolute left-0 z-20 w-48 py-1 mt-2 bg-white border border-gray-100 rounded-md shadow-xl lg:left-auto lg:right-0 dark:bg-gray-800">
37+
<a href="/profile" class="block px-4 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 transform dark:text-gray-300 hover:bg-primary hover:text-white dark:hover:text-white">
3838
your profile
3939
</a>
4040

41+
<a href="#" class="block px-4 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 transform dark:text-gray-300 hover:bg-primary hover:text-white dark:hover:text-white">
42+
Your Favourites
43+
</a>
44+
4145
<a href="#" class="block px-4 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 transform dark:text-gray-300 hover:bg-primary hover:text-white dark:hover:text-white">
4246
Settings
4347
</a>
48+
4449
<hr>
4550
<a href="#" class="block px-4 py-2 text-sm text-gray-700 capitalize transition-colors duration-200 transform dark:text-gray-300 hover:bg-primary hover:text-white dark:hover:text-white">
4651
Log Out

source/components.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@
360360
</div>
361361

362362
<div class="flex justify-center mt-10">
363-
<button class="flex items-center px-4 py-2 space-x-3 text-gray-600 transition-colors duration-200 transform border rounded-lg hover:bg-gray-200">
363+
<button class="flex items-center px-4 py-2 space-x-3 text-gray-600 transition-colors duration-200 transform border rounded-lg hover:bg-gray-100 focus:outline-none">
364364
<span>Next</span>
365365
<svg class="w-4 h-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor">
366366
<path fill-rule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clip-rule="evenodd" />

source/index.blade.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,5 +374,11 @@
374374
</div>
375375
</div>
376376
</div>
377+
378+
<div class="flex justify-center mt-10">
379+
<a href="#" class="px-4 py-2 mt-2 text-gray-600 transition-colors duration-200 transform border rounded-lg hover:bg-gray-100 focus:outline-none">
380+
See more components
381+
</a>
382+
</div>
377383
</section>
378384
@endsection

0 commit comments

Comments
 (0)