Skip to content

Commit 23c103a

Browse files
committed
Nav bar rework
1 parent 7815644 commit 23c103a

File tree

1 file changed

+14
-67
lines changed

1 file changed

+14
-67
lines changed

www/src/pages/components/NavBar.tsx

Lines changed: 14 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -37,45 +37,37 @@ function NavBarSytling() {
3737
<div className="flex items-center">
3838
<div className="ml-6 flex-shrink-0">
3939
<img
40-
className="block h-8 w-auto lg:hidden"
40+
className="block h-9 w-auto lg:hidden"
4141
src="https://i.imgur.com/ELBAyVb.png"
4242
alt="Your Company"
4343
/>
4444
<img
45-
className="hidden h-8 w-auto lg:block"
45+
className="hidden h-9 w-auto lg:block"
4646
src="https://i.imgur.com/ELBAyVb.png"
4747
alt="Your Company"
4848
/>
4949
</div>
50-
<span className="inline-flex items-center mx-4 rounded-full bg-red-200 px-2.5 py-0.5 text-xs font-medium text-red-800">
50+
<h2 className="font-bold text-2xl pl-1 mt-2">Reactime</h2>
51+
<span className="inline-flex items-center mt-2 mx-4 rounded-full bg-red-200 px-2.5 py-0.5 text-xs font-medium text-red-800">
5152
v17.0.0
5253
</span>
5354

5455
</div>
5556

5657
<div className="hidden sm:ml-6 sm:block">
5758
<div className="flex space-x-4">
58-
{/* Current: "bg-gray-900 text-white", Default: "text-gray-300 hover:bg-gray-700 hover:text-white" */}
59-
<a href="#" className="rounded-md bg-gray-900 px-3 py-2 text-sm font-medium text-white">
60-
Dashboard
61-
</a>
62-
<a
63-
href="#"
64-
className="rounded-md px-3 py-2 text-sm font-medium text-gray-500 hover:bg-gray-700 hover:text-white"
65-
>
66-
Team
67-
</a>
6859
<a
69-
href="#"
60+
href="http://github.com/open-source-labs/reactime"
61+
target="_blank"
7062
className="rounded-md px-3 py-2 text-sm font-medium text-gray-500 hover:bg-gray-700 hover:text-white"
7163
>
72-
Projects
64+
Github
7365
</a>
74-
<a
75-
href="#"
76-
className="rounded-md px-3 py-2 text-sm font-medium text-gray-500 hover:bg-gray-700 hover:text-white"
77-
>
78-
Calendar
66+
<a
67+
href="https://chrome.google.com/webstore/detail/reactime/cgibknllccemdnfhfpmjhffpjfeidjga?hl=en-US"
68+
target="_blank"
69+
className="rounded-md bg-gray-900 px-3 py-2 text-sm font-medium text-white hover:bg-gray-700 hover:text-white">
70+
Download
7971
</a>
8072
</div>
8173
</div>
@@ -88,9 +80,9 @@ function NavBarSytling() {
8880
<Disclosure.Button
8981
as="a"
9082
href="#"
91-
className="block rounded-md bg-gray-900 px-3 py-2 text-base font-medium text-white"
83+
className="block rounded-md px-3 py-2 text-base font-medium text-gray-300 hover:bg-gray-700 hover:text-white"
9284
>
93-
Dashboard
85+
Team
9486
</Disclosure.Button>
9587
<Disclosure.Button
9688
as="a"
@@ -114,51 +106,6 @@ function NavBarSytling() {
114106
Calendar
115107
</Disclosure.Button>
116108
</div>
117-
<div className="border-t border-gray-700 pt-4 pb-3">
118-
<div className="flex items-center px-5">
119-
<div className="flex-shrink-0">
120-
<img
121-
className="h-10 w-10 rounded-full"
122-
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"
123-
alt=""
124-
/>
125-
</div>
126-
<div className="ml-3">
127-
<div className="text-base font-medium text-white">Tom Cook</div>
128-
<div className="text-sm font-medium text-gray-400">[email protected]</div>
129-
</div>
130-
<button
131-
type="button"
132-
className="ml-auto flex-shrink-0 rounded-full bg-gray-800 p-1 text-gray-400 hover:text-white focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-gray-800"
133-
>
134-
<span className="sr-only">View notifications</span>
135-
<BellIcon className="h-6 w-6" aria-hidden="true" />
136-
</button>
137-
</div>
138-
<div className="mt-3 space-y-1 px-2">
139-
<Disclosure.Button
140-
as="a"
141-
href="#"
142-
className="block rounded-md px-3 py-2 text-base font-medium text-gray-400 hover:bg-gray-700 hover:text-white"
143-
>
144-
Your Profile
145-
</Disclosure.Button>
146-
<Disclosure.Button
147-
as="a"
148-
href="#"
149-
className="block rounded-md px-3 py-2 text-base font-medium text-gray-400 hover:bg-gray-700 hover:text-white"
150-
>
151-
Settings
152-
</Disclosure.Button>
153-
<Disclosure.Button
154-
as="a"
155-
href="#"
156-
className="block rounded-md px-3 py-2 text-base font-medium text-gray-400 hover:bg-gray-700 hover:text-white"
157-
>
158-
Sign out
159-
</Disclosure.Button>
160-
</div>
161-
</div>
162109
</Disclosure.Panel>
163110
</>
164111
)}

0 commit comments

Comments
 (0)