Skip to content

Commit

Permalink
Work on project
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwcomeau committed Jan 13, 2021
1 parent 26603e9 commit 2d35711
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .eslintcache

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/components/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import ShoeIndex from '../ShoeIndex';
const App = () => {
const [sortId, setSortId] = React.useState('newest');

console.log(sortId);
return (
<>
<Header />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Breadcrumbs/Breadcrumbs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from 'styled-components';
import styled from 'styled-components/macro';

import { COLORS } from '../../constants';

Expand Down
12 changes: 8 additions & 4 deletions src/components/Header/Header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from 'styled-components';
import styled from 'styled-components/macro';

import { COLORS, WEIGHTS } from '../../constants';
import SearchInput from '../SearchInput';
Expand Down Expand Up @@ -75,15 +75,19 @@ const MainHeader = styled.div`
`;

const Side = styled.div`
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
flex: 1;
&:first-of-type {
margin-right: 48px;
}
`;

const Nav = styled.nav`
display: flex;
margin: 0 48px;
gap: 48px;
/* TODO: Use this, maybe with clamp? */
gap: max(calc(10vw - 60px), 32px);
`;

const NavLink = styled.a`
Expand Down
2 changes: 1 addition & 1 deletion src/components/Logo/Logo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from 'styled-components';
import styled from 'styled-components/macro';

import { WEIGHTS } from '../../constants';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Select/Select.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from 'styled-components';
import styled from 'styled-components/macro';

import { COLORS, WEIGHTS } from '../../constants';
import Icon from '../Icon';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ShoeCard/ShoeCard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from 'styled-components';
import styled from 'styled-components/macro';

import { COLORS, WEIGHTS } from '../../constants';
import { formatPrice, pluralize, isNewShoe } from '../../utils';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ShoeGrid/ShoeGrid.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from 'styled-components';
import styled from 'styled-components/macro';

import SHOES from '../../data';
import ShoeCard from '../ShoeCard';
Expand Down
4 changes: 2 additions & 2 deletions src/components/ShoeIndex/ShoeIndex.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import styled from 'styled-components';
import styled from 'styled-components/macro';

import { WEIGHTS, COLORS } from '../../constants';
import { WEIGHTS } from '../../constants';

import Breadcrumbs from '../Breadcrumbs';
import Select from '../Select';
Expand Down
2 changes: 1 addition & 1 deletion src/components/ShoeSidebar/ShoeSidebar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import styled from 'styled-components';
import styled from 'styled-components/macro';

import { COLORS, WEIGHTS } from '../../constants';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Spacer/Spacer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import styled from 'styled-components';
import styled from 'styled-components/macro';

function getHeight({ axis, size }) {
return axis === 'horizontal' ? 1 : size;
Expand Down

0 comments on commit 2d35711

Please sign in to comment.