Skip to content
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

Update homepage based on latest specs #398

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from
Open
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
30 changes: 24 additions & 6 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use client";
'use client';

import { css } from "@emotion/css";
import { Body, H1 } from "@leafygreen-ui/typography";
import { spacing } from "@leafygreen-ui/tokens";
import { ComponentCard, HomeCard } from "@/components/home";
import { css } from '@emotion/css';
import { Body, H1 } from '@leafygreen-ui/typography';
import { spacing } from '@leafygreen-ui/tokens';
import { ComponentCard, HomeCard } from '@/components/home';

export default function Home() {
return (
Expand Down Expand Up @@ -36,6 +36,7 @@ export default function Home() {

<HomeCard
key="Foundations"
id="Foundations"
title="Foundations"
description="These define broader guidance on typography, iconography, and our
color palette."
Expand All @@ -44,10 +45,27 @@ export default function Home() {

<HomeCard
key="Resources"
id="Resources"
title="Resources"
description=" Resources include guidelines on accessibility, and icon creation."
description="Resources include guidelines on accessibility, and icon creation."
link="/resources/accessibility"
/>

<HomeCard
key="Design"
id="Blog"
title="Design Blog"
description="Read about our recent projects and featured articles from across UX & Design, including Product UX, and Brand Creative."
link="https://medium.com/"
/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to just link to Medium?


<HomeCard
key="Careers"
id="Careers"
title="Careers at MongoDB"
description="Check out our open jobs. Let us know which interests you the most."
link="https://www.mongodb.com/company/careers/teams/product-management-and-design"
/>
</div>
</div>
);
Expand Down
1 change: 0 additions & 1 deletion src/components/global/SideNavigation/SideNavLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export function SideNavLabel({

return (
<h4
key={label}
className={css`
color: ${darkMode ? palette.green.light1 : palette.green.dark2};
text-transform: uppercase;
Expand Down
8 changes: 4 additions & 4 deletions src/components/global/SideNavigation/SideNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function SideNavigation() {
const navContent = (
<>
<SideNavLabel
key="Foundations"
key="foundations-label"
label="Foundations"
glyph={
<UniversityIcon
Expand All @@ -62,14 +62,14 @@ export function SideNavigation() {
/>
<SideNavList key="foundation-list">
<SideNavItem
key="grid"
key="chat"
active={pathname === '/foundations/chat/'}
href={'/foundations/chat'}
>
Chat
</SideNavItem>
<SideNavItem
key="grid"
key="form-guidelines"
active={pathname === '/foundations/forms/'}
href={'/foundations/forms'}
>
Expand Down Expand Up @@ -113,7 +113,7 @@ export function SideNavigation() {
</SideNavList>

<SideNavLabel
key="resources"
key="resources-label"
label="Resources"
glyph={
<GovernmentBuildingIcon
Expand Down
Loading
Loading