Skip to content

Commit

Permalink
[dashboard] Change font stack, update logo, change menu colors (#3478)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsiolis authored Mar 17, 2021
1 parent d6cddf6 commit f1b574d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 19 deletions.
16 changes: 8 additions & 8 deletions components/dashboard/public/gitpod.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions components/dashboard/src/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ interface Entry {
}

function MenuItem(entry: Entry) {
let classes = "flex block text-sm font-medium lg:px-3 px-0 py-2 rounded-md";
let classes = "flex block text-sm font-medium lg:px-3 px-0 py-1.5 rounded-md";
if (window.location.pathname.toLowerCase() === entry.link.toLowerCase()) {
classes += " bg-gray-200";
} else {
classes += " text-gray-500 hover:bg-gray-300 ";
classes += " text-gray-600 hover:bg-gray-100 ";
}
return <li key={entry.title}>
{entry.link.startsWith('https://')
Expand Down Expand Up @@ -57,7 +57,7 @@ function Menu(props: { left: Entry[], right: Entry[] }) {
{props.right.map(MenuItem)}
</ul>
</nav>
<Link className="lg:ml-4 flex items-center justify-start lg:mb-0 mb-4 pointer-cursor m-l-auto rounded-full border-2 hover:border-gray-400 p-0.5" to="/account">
<Link className="lg:ml-3 flex items-center justify-start lg:mb-0 mb-4 pointer-cursor m-l-auto rounded-full border-2 border-white hover:border-gray-200 p-0.5" to="/account">
<img className="rounded-full w-6 h-6"
src={user?.avatarUrl || ''} alt={user?.name || 'Anonymous'} />
</Link>
Expand Down
14 changes: 7 additions & 7 deletions components/dashboard/src/tailwind.output.css
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ ul {
*/

html {
font-family: Inter, Helvetica, Arial, sans-serif; /* 1 */
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; /* 1 */
line-height: 1.5; /* 2 */
}

Expand Down Expand Up @@ -12671,7 +12671,7 @@ input[type=text]::placeholder {
}

.font-sans {
font-family: Inter, Helvetica, Arial, sans-serif !important;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji !important;
}

.font-thin {
Expand Down Expand Up @@ -46975,7 +46975,7 @@ input[type=text]::placeholder {
}

.sm\:font-sans {
font-family: Inter, Helvetica, Arial, sans-serif !important;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji !important;
}

.sm\:font-thin {
Expand Down Expand Up @@ -80680,7 +80680,7 @@ input[type=text]::placeholder {
}

.md\:font-sans {
font-family: Inter, Helvetica, Arial, sans-serif !important;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji !important;
}

.md\:font-thin {
Expand Down Expand Up @@ -114385,7 +114385,7 @@ input[type=text]::placeholder {
}

.lg\:font-sans {
font-family: Inter, Helvetica, Arial, sans-serif !important;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji !important;
}

.lg\:font-thin {
Expand Down Expand Up @@ -148090,7 +148090,7 @@ input[type=text]::placeholder {
}

.xl\:font-sans {
font-family: Inter, Helvetica, Arial, sans-serif !important;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji !important;
}

.xl\:font-thin {
Expand Down Expand Up @@ -181795,7 +181795,7 @@ input[type=text]::placeholder {
}

.\32xl\:font-sans {
font-family: Inter, Helvetica, Arial, sans-serif !important;
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji !important;
}

.\32xl\:font-thin {
Expand Down
17 changes: 16 additions & 1 deletion components/dashboard/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,22 @@ module.exports = {
},
},
fontFamily: {
'sans': ['Inter', 'Helvetica', 'Arial', 'sans-serif'],
sans: [
'Inter',
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Helvetica Neue',
'Arial',
'Noto Sans',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji',
],
},
underlineThickness: {
'thin': '2px',
Expand Down

0 comments on commit f1b574d

Please sign in to comment.