Skip to content

[dashboard] Change font stack, update logo, change menu colors #3478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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