Skip to content

Commit

Permalink
feat: upgraded to the new public directory for static assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Kaudinov authored and Amir Kaudinov committed Feb 21, 2023
1 parent e1ad021 commit 3df17f1
Show file tree
Hide file tree
Showing 32 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions app/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export default function Head() {
<>
<title>{content.social.title}</title>
<meta name='viewport' content='initial-scale=1.0, width=device-width' />
<link rel='shortcut icon' href='/static/favicon.ico' />
<link rel='icon' href='/static/favicon.ico' />
<link rel='shortcut icon' href='/favicon.ico' />
<link rel='icon' href='/favicon.ico' />

<meta property='og:type' content='website' />
<meta property='og:url' content={content.social.url} />
Expand Down
2 changes: 1 addition & 1 deletion components/AboutSection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const AboutSection = ({ side, image, title, body, cta, carousel }) => (
<div className={styles.container} data-side={side}>
{image && (
<div className={styles.image}>
<img src={`/static/img/about/${image}`} alt='' />
<img src={`/img/about/${image}`} alt='' />
</div>
)}
<div className={styles.text}>
Expand Down
12 changes: 6 additions & 6 deletions components/Carousel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import styles from './Carousel.module.css';

const slides = [
{
image: '/static/img/about/image-billionoyster.jpg',
image: '/img/about/image-billionoyster.jpg',
description:
'four people, knee deep in a river, frontmost person smiling and holding a basket full of oysters',
title: 'Billion Oyster Project',
Expand All @@ -31,7 +31,7 @@ const slides = [
),
},
{
image: '/static/img/about/image-nywatertrails.jpg',
image: '/img/about/image-nywatertrails.jpg',
title: 'New York Water Trail Association',
description:
'four people, knee deep in a river, frontmost person smiling and holding a basket full of oysters',
Expand All @@ -53,7 +53,7 @@ const slides = [
),
},
{
image: '/static/img/about/image-riverkeeper.jpg',
image: '/img/about/image-riverkeeper.jpg',
description: 'a 20-foot boat named riverkeeper',
title: 'Riverkeeper',
body: (
Expand All @@ -76,7 +76,7 @@ const slides = [
),
},
{
image: '/static/img/about/image-newtoncreek.jpg',
image: '/img/about/image-newtoncreek.jpg',
title: 'Newtown Creek Alliance',
description: 'a 20-foot boat with the manhattan skyline behind it',
body: (
Expand All @@ -100,7 +100,7 @@ const slides = [
),
},
{
image: '/static/img/about/image-gowanuscanal.jpg',
image: '/img/about/image-gowanuscanal.jpg',
description:
'a two person kayak, paddling in front of an overpass in the gowanus canal',
title: 'Gowanus Canal Conservancy',
Expand All @@ -122,7 +122,7 @@ const slides = [
),
},
{
image: '/static/img/about/image-bronxalliance.jpg',
image: '/img/about/image-bronxalliance.jpg',
description:
'Four people in the middle of weeds that are taller than all of them. the rightmost person is leaning on a bird house',
title: 'Bronx River Alliance',
Expand Down
4 changes: 2 additions & 2 deletions components/Navbar/Navbar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@
width: 14px;
height: 14px;
margin-right: 14px;
background-image: url('/static/img/[email protected]');
background-image: url('/img/[email protected]');
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
}

@media (min-width: 850px) {
.logo {
background-image: url('/static/img/[email protected]');
background-image: url('/img/[email protected]');
width: 74px;
height: 14px;
}
Expand Down
2 changes: 1 addition & 1 deletion content/social.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ export default {
url: BASE_URL,
title: '+ POOL Water Quality Data Dashboard',
description: 'A detailed dashboard for visualizing the components of water quality in the + POOL floating pool in the East River of NYC.',
imageUrl: `${BASE_URL}/static/img/og-image.png`
imageUrl: `${BASE_URL}/img/og-image.png`
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
8 changes: 4 additions & 4 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
font-weight: 400;
font-style: normal;
/* TODO: This is a test version of the woff2 font file. We still need to purchase a real license */
src: url('/static/fonts/StyreneA-Regular-Test.woff2') format('woff2');
src: url('/fonts/StyreneA-Regular-Test.woff2') format('woff2');
}

@font-face {
font-family: 'Styrene B';
font-weight: 400;
font-style: normal;
/* TODO: This is a test version of the woff2 font file. We still need to purchase a real license */
src: url('/static/fonts/StyreneB-Regular-Test.woff2') format('woff2');
src: url('/fonts/StyreneB-Regular-Test.woff2') format('woff2');
}

:root {
Expand Down Expand Up @@ -337,7 +337,7 @@ svg {
.rc-slider-rail.rc-slider-rail {
border-radius: 0;
background: transparent;
background-image: url('/static/img/bar-lines-mobile.svg');
background-image: url('/img/bar-lines-mobile.svg');
background-position: 0 bottom;
background-size: 100% auto;
background-repeat: no-repeat;
Expand Down Expand Up @@ -400,7 +400,7 @@ svg {
.rc-slider-rail.rc-slider-rail {
border-radius: 0;
background: transparent;
background-image: url('/static/img/bar-lines-desktop.svg');
background-image: url('/img/bar-lines-desktop.svg');
background-position: 0 0;
background-size: auto 100%;
background-repeat: no-repeat;
Expand Down

1 comment on commit 3df17f1

@vercel
Copy link

@vercel vercel bot commented on 3df17f1 Feb 21, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.