Sentineli2P commited on
Commit
de33948
·
verified ·
1 Parent(s): b27afa1

awesome also enable the interface for the users. - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +36 -7
index.html CHANGED
@@ -59,8 +59,20 @@
59
  </div>
60
  </div>
61
  <div class="hidden md:flex items-center">
62
- <a href="#" class="text-gray-500 hover:text-indigo-600 px-3 py-2 rounded-md text-sm font-medium">Log In</a>
63
- <a href="#" class="ml-4 inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white gradient-bg shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">Sign Up</a>
 
 
 
 
 
 
 
 
 
 
 
 
64
  </div>
65
  <div class="-mr-2 flex items-center md:hidden">
66
  <button id="mobile-menu-button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
@@ -80,10 +92,9 @@
80
  <a href="#about" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">About</a>
81
  <a href="#contact" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Contact</a>
82
  <div class="mt-4 px-4">
83
- <a href="#" class="w-full flex items-center justify-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white gradient-bg hover:bg-indigo-700">Sign Up</a>
84
- <p class="mt-2 text-center text-sm text-gray-600">
85
- Already have an account? <a href="#" class="font-medium text-indigo-600 hover:text-indigo-500">Log in</a>
86
- </p>
87
  </div>
88
  </div>
89
  </div>
@@ -854,7 +865,7 @@
854
  Join thousands of users saving time and increasing their results with SocialAuto.
855
  </p>
856
  <div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4">
857
- <a href="#" class="inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-indigo-600 bg-white hover:bg-gray-100 shadow-lg">Start Free Trial</a>
858
  <a href="#" class="inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-700 bg-opacity-60 hover:bg-opacity-70">Schedule a Demo</a>
859
  </div>
860
  </div>
@@ -953,6 +964,24 @@
953
  mobileMenu.classList.toggle('open');
954
  });
955
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
956
  // Pricing toggle
957
  const monthlyToggle = document.getElementById('monthly-toggle');
958
  const yearlyToggle = document.getElementById('yearly-toggle');
 
59
  </div>
60
  </div>
61
  <div class="hidden md:flex items-center">
62
+ <!-- User dropdown -->
63
+ <div class="ml-3 relative">
64
+ <div class="flex items-center">
65
+ <button type="button" class="flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" id="user-menu-button" aria-expanded="false" aria-haspopup="true">
66
+ <span class="sr-only">Open user menu</span>
67
+ <img class="h-8 w-8 rounded-full" src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="">
68
+ </button>
69
+ </div>
70
+ <div class="origin-top-right absolute right-0 mt-2 w-48 rounded-md shadow-lg py-1 bg-white ring-1 ring-black ring-opacity-5 focus:outline-none hidden" role="menu" aria-orientation="vertical" aria-labelledby="user-menu-button" tabindex="-1">
71
+ <a href="/dashboard" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" role="menuitem" tabindex="-1" id="user-menu-item-0">Dashboard</a>
72
+ <a href="/settings" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" role="menuitem" tabindex="-1" id="user-menu-item-1">Settings</a>
73
+ <a href="/logout" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100" role="menuitem" tabindex="-1" id="user-menu-item-2">Sign out</a>
74
+ </div>
75
+ </div>
76
  </div>
77
  <div class="-mr-2 flex items-center md:hidden">
78
  <button id="mobile-menu-button" class="inline-flex items-center justify-center p-2 rounded-md text-gray-400 hover:text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
 
92
  <a href="#about" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">About</a>
93
  <a href="#contact" class="border-transparent text-gray-600 hover:bg-gray-50 hover:border-gray-300 hover:text-gray-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">Contact</a>
94
  <div class="mt-4 px-4">
95
+ <a href="/dashboard" class="block px-4 py-2 text-base font-medium text-gray-600 hover:text-indigo-800">Dashboard</a>
96
+ <a href="/settings" class="block px-4 py-2 text-base font-medium text-gray-600 hover:text-indigo-800">Settings</a>
97
+ <a href="/logout" class="block px-4 py-2 text-base font-medium text-gray-600 hover:text-indigo-800">Sign Out</a>
 
98
  </div>
99
  </div>
100
  </div>
 
865
  Join thousands of users saving time and increasing their results with SocialAuto.
866
  </p>
867
  <div class="flex flex-col sm:flex-row justify-center space-y-4 sm:space-y-0 sm:space-x-4">
868
+ <a href="/signup" class="inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-indigo-600 bg-white hover:bg-gray-100 shadow-lg">Start Free Trial</a>
869
  <a href="#" class="inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-700 bg-opacity-60 hover:bg-opacity-70">Schedule a Demo</a>
870
  </div>
871
  </div>
 
964
  mobileMenu.classList.toggle('open');
965
  });
966
 
967
+ // User dropdown toggle
968
+ const userMenuButton = document.getElementById('user-menu-button');
969
+ const userMenu = document.querySelector('[role="menu"]');
970
+
971
+ userMenuButton.addEventListener('click', () => {
972
+ const expanded = userMenuButton.getAttribute('aria-expanded') === 'true';
973
+ userMenuButton.setAttribute('aria-expanded', !expanded);
974
+ userMenu.classList.toggle('hidden');
975
+ });
976
+
977
+ // Close dropdown when clicking outside
978
+ document.addEventListener('click', (e) => {
979
+ if (!userMenuButton.contains(e.target) && !userMenu.contains(e.target)) {
980
+ userMenuButton.setAttribute('aria-expanded', 'false');
981
+ userMenu.classList.add('hidden');
982
+ }
983
+ });
984
+
985
  // Pricing toggle
986
  const monthlyToggle = document.getElementById('monthly-toggle');
987
  const yearlyToggle = document.getElementById('yearly-toggle');