Skip to content

Commit

Permalink
chore(website): sticky footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yakutoc committed Jun 21, 2024
1 parent 07db233 commit 8668d32
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
13 changes: 12 additions & 1 deletion website/plasma-website/components/roster/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import styled, { css } from 'styled-components';
import { TextS } from '@salutejs/plasma-b2c';
import { secondary } from '@salutejs/plasma-tokens-b2c';

import { multipleMediaQuery } from '../../mixins';
import { IconGitHub, MainCommunityMenu } from '../index';

const community = [
Expand All @@ -16,7 +17,17 @@ const community = [
const currentYear = new Date().getFullYear();

const StyledFooter = styled.footer`
padding-bottom: 2rem;
padding: 0 4rem 2rem;
${multipleMediaQuery(['M'])(css`
padding-right: 3.5rem;
padding-left: 3.5rem;
`)}
${multipleMediaQuery(['S'])(css`
padding-right: 1rem;
padding-left: 1rem;
`)}
`;

const StyledMainCommunityMenu = styled(MainCommunityMenu)`
Expand Down
20 changes: 15 additions & 5 deletions website/plasma-website/pages/icons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ import Head from 'next/head';

import { Header, Main, SearchForm, IconsList, Footer } from '../components/roster';

const StyledSection = styled.section`
display: grid;
grid-template-rows: auto 1fr auto;
grid-template-columns: 100%;
min-height: 100vh;
`;

const StyledMain = styled(Main)`
--common-transition-config: 120ms ease-in;
Expand All @@ -30,12 +38,14 @@ export default function Home() {
<Head>
<title>Plasma Icons</title>
</Head>
<Header />
<StyledMain>
<SearchForm onInput={onSearchInput} />
<IconsList searchQuery={searchQuery} />
<StyledSection>
<Header />
<StyledMain>
<SearchForm onInput={onSearchInput} />
<IconsList searchQuery={searchQuery} />
</StyledMain>
<Footer />
</StyledMain>
</StyledSection>
</ToastProvider>
);
}

0 comments on commit 8668d32

Please sign in to comment.