-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update image asset paths to
public
(#654)
Move uploaded images and other static image assets to the public folder, thus passing nodejs and giving us better control over caching via Nginx.
- Loading branch information
Showing
147 changed files
with
88 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,13 +22,13 @@ | |
} | ||
|
||
// Logo images: color, white, dark | ||
.img-retina('/modules/core/img/logo/color.png', '/modules/core/img/logo/[email protected]', @logo-size, @logo-size); | ||
.img-retina('/img/logo/color.png', '/img/logo/[email protected]', @logo-size, @logo-size); | ||
|
||
&.logo-white { | ||
.img-retina('/modules/core/img/logo/white.png', '/modules/core/img/logo/[email protected]', @logo-size, @logo-size); | ||
.img-retina('/img/logo/white.png', '/img/logo/[email protected]', @logo-size, @logo-size); | ||
} | ||
&.logo-dark { | ||
.img-retina('/modules/core/img/logo/dark.png', '/modules/core/img/logo/[email protected]', @logo-size, @logo-size); | ||
.img-retina('/img/logo/dark.png', '/img/logo/[email protected]', @logo-size, @logo-size); | ||
} | ||
} | ||
|
||
|
@@ -45,9 +45,9 @@ | |
.size(@logo-size-width, @logo-size-height); | ||
|
||
// Logo images: white (default), color | ||
.img-retina('/modules/core/img/logo/horizontal-white.png', '/modules/core/img/logo/[email protected]', @logo-size-width, @logo-size-height); | ||
.img-retina('/img/logo/horizontal-white.png', '/img/logo/[email protected]', @logo-size-width, @logo-size-height); | ||
|
||
&.logo-horizontal-color { | ||
.img-retina('/modules/core/img/logo/horizontal-color.png', '/modules/core/img/logo/[email protected]', @logo-size-width, @logo-size-height); | ||
.img-retina('/img/logo/horizontal-color.png', '/img/logo/[email protected]', @logo-size-width, @logo-size-height); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,5 +142,5 @@ | |
background-size: 16px 16px; | ||
} | ||
} | ||
.icon-bw:before { .img-retina('/modules/core/img/external/icon-bw.png', '/modules/core/img/external/[email protected]', 16px, 16px); } | ||
.icon-cs:before { .img-retina('/modules/core/img/external/icon-cs.png', '/modules/core/img/external/[email protected]', 16px, 16px); } | ||
.icon-bw:before { .img-retina('/img/external/icon-bw.png', '/img/external/[email protected]', 16px, 16px); } | ||
.icon-cs:before { .img-retina('/img/external/icon-cs.png', '/img/external/[email protected]', 16px, 16px); } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,14 +92,14 @@ | |
// Layer image is satellite when map style is other | ||
.leaflet-control-layers-toggle, | ||
.leaflet-touch .leaflet-control-layers-toggle { | ||
.img-retina('/modules/core/img/map/satellite.png', '/modules/core/img/map/[email protected]', 46px, 46px); | ||
.img-retina('/img/map/satellite.png', '/img/map/[email protected]', 46px, 46px); | ||
} | ||
|
||
// Layer image is street when map style is satellite | ||
.leaflet-layerstyle-satellite { | ||
.leaflet-control-layers-toggle, | ||
.leaflet-touch .leaflet-control-layers-toggle { | ||
.img-retina('/modules/core/img/map/street.png', '/modules/core/img/map/[email protected]', 46px, 46px); | ||
.img-retina('/img/map/street.png', '/img/map/[email protected]', 46px, 46px); | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,24 +31,24 @@ | |
<meta name="mobile-web-app-capable" content="yes"> | ||
<meta name="theme-color" content="#12b591"> | ||
<link rel="manifest" href="/manifest.json"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/modules/core/img/icons/android/512.png" sizes="512x512"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/modules/core/img/icons/android/192.png" sizes="192x192"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/modules/core/img/icons/android/144.png" sizes="144x144"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/modules/core/img/icons/android/96.png" sizes="96x96"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/modules/core/img/icons/android/72.png" sizes="72x72"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/modules/core/img/icons/android/48.png" sizes="48x48"> | ||
<link rel="icon shortcut" type="image/png" href="{{hostPort}}/modules/core/img/[email protected]" sizes="32x32" id="favicon2x"> | ||
<link rel="icon shortcut" type="image/png" href="{{hostPort}}/modules/core/img/favicon.png" sizes="16x16" id="favicon"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/img/icons/android/512.png" sizes="512x512"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/img/icons/android/192.png" sizes="192x192"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/img/icons/android/144.png" sizes="144x144"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/img/icons/android/96.png" sizes="96x96"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/img/icons/android/72.png" sizes="72x72"> | ||
<link rel="icon" type="image/png" href="{{hostPort}}/img/icons/android/48.png" sizes="48x48"> | ||
<link rel="icon shortcut" type="image/png" href="{{hostPort}}/img/[email protected]" sizes="32x32" id="favicon2x"> | ||
<link rel="icon shortcut" type="image/png" href="{{hostPort}}/img/favicon.png" sizes="16x16" id="favicon"> | ||
|
||
{# Apple #} | ||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{hostPort}}/modules/core/img/icons/ios/[email protected]"> | ||
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{hostPort}}/modules/core/img/icons/ios/[email protected]"> | ||
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="{{hostPort}}/modules/core/img/icons/ios/Icon-76.png"> | ||
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="{{hostPort}}/modules/core/img/icons/ios/Icon-60.png"> | ||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{hostPort}}/modules/core/img/icons/ios/[email protected]"> | ||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{hostPort}}/modules/core/img/icons/ios/[email protected]"> | ||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{hostPort}}/modules/core/img/icons/ios/Icon-72.png"> | ||
<link rel="apple-touch-icon" sizes="57x57" href="{{hostPort}}/modules/core/img/icons/ios/Icon.png"> | ||
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{hostPort}}/img/icons/ios/[email protected]"> | ||
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{hostPort}}/img/icons/ios/[email protected]"> | ||
<link rel="apple-touch-icon-precomposed" sizes="76x76" href="{{hostPort}}/img/icons/ios/Icon-76.png"> | ||
<link rel="apple-touch-icon-precomposed" sizes="60x60" href="{{hostPort}}/img/icons/ios/Icon-60.png"> | ||
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{hostPort}}/img/icons/ios/[email protected]"> | ||
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{hostPort}}/img/icons/ios/[email protected]"> | ||
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{hostPort}}/img/icons/ios/Icon-72.png"> | ||
<link rel="apple-touch-icon" sizes="57x57" href="{{hostPort}}/img/icons/ios/Icon.png"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
<meta name="apple-mobile-web-app-status-bar-style" content="black"> | ||
|
||
|
@@ -62,7 +62,7 @@ | |
{# https://developers.facebook.com/docs/sharing/best-practices#images #} | ||
<meta property="og:image" content="https://ucarecdn.com/{{tribe.image_UUID}}/-/progressive/yes/-/scale_crop/1200x630/center/-/quality/lightest/-/format/jpeg/-/overlay/b72e2604-e926-4e17-acbd-e37c0e1f5c73/50%25x50%25/center/{{tribe.slug}}.jpg"> | ||
{% else %} | ||
<meta property="og:image" content="{{hostPort}}/modules/core/img/og_image.jpg"> | ||
<meta property="og:image" content="{{hostPort}}/img/og_image.jpg"> | ||
{% endif %} | ||
{% else %} | ||
{% if invite %} | ||
|
@@ -72,7 +72,7 @@ | |
{% endif %} | ||
<meta property="og:description" content="{{description}}"> | ||
<meta property="og:url" content="{{canonicalUrl}}"> | ||
<meta property="og:image" content="{{hostPort}}/modules/core/img/og_image.jpg"> | ||
<meta property="og:image" content="{{hostPort}}/img/og_image.jpg"> | ||
{% endif %} | ||
<meta property="og:site_name" content="{{title}}"> | ||
<meta property="og:type" content="website"> | ||
|
@@ -88,19 +88,19 @@ | |
{% if tribe.image_UUID %} | ||
<meta name="twitter:image" content="https://ucarecdn.com/{{tribe.image_UUID}}/-/progressive/yes/-/scale_crop/1200x630/center/-/quality/lightest/-/format/jpeg/-/overlay/b72e2604-e926-4e17-acbd-e37c0e1f5c73/50%25x50%25/center/{{tribe.slug}}.jpg"> | ||
{% else %} | ||
<meta name="twitter:image" content="{{hostPort}}/modules/core/img/og_image.jpg"> | ||
<meta name="twitter:image" content="{{hostPort}}/img/og_image.jpg"> | ||
{% endif %} | ||
{% else %} | ||
<meta name="twitter:title" content="{{title}}"> | ||
<meta name="twitter:description" content="{{description}}"> | ||
<meta name="twitter:url" content="{{hostPort}}/"> | ||
<meta name="twitter:image" content="{{hostPort}}/modules/core/img/og_image.jpg"> | ||
<meta name="twitter:image" content="{{hostPort}}/img/og_image.jpg"> | ||
{% endif %} | ||
|
||
{# MS #} | ||
<meta name="msapplication-tap-highlight" content="no"> | ||
<meta name="msapplication-TileColor" content="#FFFFFF"> | ||
<meta name="msapplication-TileImage" content="{{hostPort}}/modules/core/img/icons/apple-touch-icon-144x144-precomposed.png"> | ||
<meta name="msapplication-TileImage" content="{{hostPort}}/img/icons/apple-touch-icon-144x144-precomposed.png"> | ||
|
||
{# Google Analytics #} | ||
{% if googleAnalytics.enabled === true %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,12 +74,12 @@ | |
background-position-y: calc(~"50% - "(38px/2)); | ||
background-position-x: 50%; | ||
background-repeat: no-repeat; | ||
.img-retina("/modules/core/img/map/marker-locator.png", "/modules/core/img/map/[email protected]", 56px, 41px); | ||
.img-retina("/img/map/marker-locator.png", "/img/map/[email protected]", 56px, 41px); | ||
&.offer-hosting-yes { | ||
.img-retina("/modules/core/img/map/marker-locator-yes.png", "/modules/core/img/map/[email protected]", 56px, 41px); | ||
.img-retina("/img/map/marker-locator-yes.png", "/img/map/[email protected]", 56px, 41px); | ||
} | ||
&.offer-hosting-maybe { | ||
.img-retina("/modules/core/img/map/marker-locator-maybe.png", "/modules/core/img/map/[email protected]", 56px, 41px); | ||
.img-retina("/img/map/marker-locator-maybe.png", "/img/map/[email protected]", 56px, 41px); | ||
} | ||
} | ||
// Mobile improvements on above elements | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,10 +131,10 @@ | |
} | ||
} | ||
.home-browser-screenshot-search { | ||
.img-retina('/modules/pages/img/screenshot-search.png', '/modules/pages/img/[email protected]', 600px, 387px); | ||
.img-retina('/img/screenshot-search.png', '/img/[email protected]', 600px, 387px); | ||
} | ||
.home-browser-screenshot-profile { | ||
.img-retina('/modules/pages/img/screenshot-profile.png', '/modules/pages/img/[email protected]', 600px, 387px); | ||
.img-retina('/img/screenshot-profile.png', '/img/[email protected]', 600px, 387px); | ||
} | ||
|
||
// Home section - hospex & how | ||
|
@@ -242,7 +242,7 @@ | |
.home-wohoo { | ||
width: 207px; | ||
height: 162px; | ||
.img-retina('/modules/pages/img/wohoo.png', '/modules/pages/img/[email protected]', 207px, 162px); | ||
.img-retina('/img/wohoo.png', '/img/[email protected]', 207px, 162px); | ||
} | ||
|
||
// Home section - footer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.