Skip to content

Commit

Permalink
feat: remove grid from projects page (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp authored Oct 4, 2023
1 parent 43aac37 commit 3887c0a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 28 deletions.
17 changes: 17 additions & 0 deletions src/pages/projects.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.ProjectsPage__Container {
display: flex;
flex-direction: row;
gap: 32px;
}

.ProjectsPage__Sidebar {
display: none;
width: 100%;
}

@media (min-width: 768px) {
.ProjectsPage__Sidebar {
display: block;
max-width: var(--dao-sidebar-width);
}
}
55 changes: 27 additions & 28 deletions src/pages/projects.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import React, { useMemo } from 'react'
import { useMemo } from 'react'

import Head from 'decentraland-gatsby/dist/components/Head/Head'
import { NotMobile } from 'decentraland-ui/dist/components/Media/Media'
import toSnakeCase from 'lodash/snakeCase'
import Grid from 'semantic-ui-react/dist/commonjs/collections/Grid/Grid'

import WiderContainer from '../components/Common/WiderContainer'
import BurgerMenuLayout from '../components/Layout/BurgerMenu/BurgerMenuLayout'
Expand All @@ -29,6 +28,8 @@ import useProjects from '../hooks/useProjects'
import useURLSearchParams from '../hooks/useURLSearchParams'
import { isUnderMaintenance } from '../utils/maintenance'

import './projects.css'

function filterDisplayableProjects(
projects: ProjectWithUpdate[] | undefined,
type: string | undefined,
Expand Down Expand Up @@ -118,32 +119,30 @@ export default function ProjectsPage() {
<BurgerMenuLayout navigationOnly activeTab={NavigationTab.Grants}>
<WiderContainer>
<ProjectsBanner />
<Grid stackable>
<Grid.Row>
<Grid.Column tablet="3">
<NotMobile>
<CategoryFilter
filterType={ProjectTypeFilter}
categoryCount={counter}
startOpen
showAllFilter={false}
/>
<StatusFilter statusType={ProjectStatus} startOpen />
<RequestBanner />
</NotMobile>
</Grid.Column>
<Grid.Column tablet="13">
{displayableProjects && (
<CurrentProjectsList
projects={displayableProjects}
selectedType={type}
selectedSubtype={subtype}
status={toProjectStatus(status)}
/>
)}
</Grid.Column>
</Grid.Row>
</Grid>
<div className="ProjectsPage__Container">
<div className="ProjectsPage__Sidebar">
<NotMobile>
<CategoryFilter
filterType={ProjectTypeFilter}
categoryCount={counter}
startOpen
showAllFilter={false}
/>
<StatusFilter statusType={ProjectStatus} startOpen />
<RequestBanner />
</NotMobile>
</div>
<div>
{displayableProjects && (
<CurrentProjectsList
projects={displayableProjects}
selectedType={type}
selectedSubtype={subtype}
status={toProjectStatus(status)}
/>
)}
</div>
</div>
</WiderContainer>
</BurgerMenuLayout>
)}
Expand Down

0 comments on commit 3887c0a

Please sign in to comment.