Skip to content

Commit

Permalink
fix: const file for breakpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
josephgregoryii committed Jan 4, 2022
1 parent 2f613fe commit 52d1376
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/components/InstantObservability/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const COLLAPSE_BREAKPOINT = '760px';
7 changes: 4 additions & 3 deletions src/components/PackTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {
} from '@newrelic/gatsby-theme-newrelic';
import { SHIELD_LEVELS, RESERVED_QUICKSTART_IDS } from '../data/constants';
import PackImg from './PackImg';
import { COLLAPSE_BREAKPOINT } from './InstantObservability/constants';

const VIEWS = {
GRID: 'Grid view',
Expand Down Expand Up @@ -79,7 +80,7 @@ const PackTile = ({
flex-direction: row;
`}
@media screen and (max-width: 760px) {
@media screen and (max-width: ${COLLAPSE_BREAKPOINT}) {
flex-direction: row;
}
`}
Expand Down Expand Up @@ -109,7 +110,7 @@ const PackTile = ({
}
`}
@media screen and (max-width: 760px) {
@media screen and (max-width: ${COLLAPSE_BREAKPOINT}) {
display: none;
}
`}
Expand Down Expand Up @@ -154,7 +155,7 @@ const PackTile = ({
span {
color: var(--color-brand-500);
}
@media screen and (max-width: 760px) {
@media screen and (max-width: ${COLLAPSE_BREAKPOINT}) {
flex-direction: column;
justify-content: flex-end;
}
Expand Down
3 changes: 1 addition & 2 deletions src/pages/instant-observability.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ import { useDebounce } from 'react-use';
import { sortFeaturedQuickstarts } from '../utils/sortFeaturedQuickstarts';
import { QUICKSTARTS_REPO, RESERVED_QUICKSTART_IDS } from '../data/constants';
import CATEGORIES from '../data/instant-observability-categories';
import { COLLAPSE_BREAKPOINT } from '../components/InstantObservability/constants';

import SuperTiles from '../components/SuperTiles';

const COLLAPSE_BREAKPOINT = '760px';

const VIEWS = {
GRID: 'Grid view',
LIST: 'List view',
Expand Down

0 comments on commit 52d1376

Please sign in to comment.