mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-14 15:49:31 -07:00
page delivery tweaks
This commit is contained in:
@@ -159,6 +159,9 @@ const uploadImages = () => src(imageSources, { base: './server', encoding: false
|
|||||||
s3({
|
s3({
|
||||||
Bucket: process.env.BUCKET,
|
Bucket: process.env.BUCKET,
|
||||||
StorageClass: 'STANDARD',
|
StorageClass: 'STANDARD',
|
||||||
|
maps: {
|
||||||
|
CacheControl: () => 'max-age=31536000',
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
--Star 3000--
|
|
||||||
|
|
||||||
Star3000.ttf - Standard text style for most screens (and Travel Cities title header)
|
|
||||||
Star3000 Small.ttf - Time/Date and some page headers
|
|
||||||
Star3000 Large.ttf - Travel Cities Forecast (Forecast portion only)
|
|
||||||
Star3000 Extra Large.ttf - Only used on some advertiser text
|
|
||||||
Star3000 Extended.ttf - Only used on some advertiser text
|
|
||||||
"Heavy" style is an emboldened version of the standard font (used on some STARs)
|
|
||||||
|
|
||||||
Star3000 Outline.ttf - A contrast border (stroke) that surrounds the Star3000.ttf base font. When used, must be as a text layer undeneath the base font (and is usually black in color).
|
|
||||||
Star3000 Small Outline.ttf - A contrast border (stroke) that surrounds the Star3000 Small.ttf base font. When used, must be as a text layer undeneath the base font (and is usually black in color).
|
|
||||||
Star3000 Large Outline.ttf - A contrast border (stroke) that surrounds the Star3000 Large.ttf base font. When used, must be as a text layer undeneath the base font (and is usually black in color).
|
|
||||||
|
|
||||||
***Outlines for other font styles are not currently available.
|
|
||||||
|
|
||||||
--Star 4000--
|
|
||||||
|
|
||||||
Star4000.ttf - Standard text style for zone forecast, observation tables, regional map cities, almanac, extended forecast day/weather/temperature headers, Current Conditions right half data and most page header titles (also Travel Cities title header before Nov. 1992)
|
|
||||||
Star4000 Small.ttf - Time/Date, NWS Local Update page header, temperature header for Travel Cities Forecast (after Nov. 1992)
|
|
||||||
Star4000 Large.ttf - City names and temperature data on Travel Cities Forecast (after Nov. 1992), Extended forecast temperature values (after Feb. 1991), Current Conditions temperature value (after Mar. 1991)
|
|
||||||
Star4000 Large Compressed - Travel Cities Forecast (before Nov. 1992), regional map temperatures
|
|
||||||
Star4000 Large Compressed Numbers - Temperature values on regional forecast/observation maps
|
|
||||||
Star4000 Extended - A proportional width font used for the Current Conditions present weather description and wind data
|
|
||||||
Star 4 Radar.ttf - Radar airport I.D.
|
|
||||||
|
|
||||||
--Star Jr.--
|
|
||||||
|
|
||||||
StarJr.ttf - Standard text style for most screens (and Travel Cities title header)
|
|
||||||
StarJr Small.ttf - Time/Date and some page headers
|
|
||||||
StarJr Compressed.ttf - Travel Cities Forecast
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 234 KiB |
BIN
server/images/maps/basemap.webp
Normal file
BIN
server/images/maps/basemap.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.3 MiB |
BIN
server/images/maps/radar.webp
Normal file
BIN
server/images/maps/radar.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.0 MiB |
@@ -52,7 +52,7 @@ class Radar extends WeatherDisplay {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get the base map
|
// get the base map
|
||||||
const src = 'images/maps/radar.jpg';
|
const src = 'images/maps/radar.webp';
|
||||||
this.baseMap = await loadImg(src);
|
this.baseMap = await loadImg(src);
|
||||||
|
|
||||||
const baseUrl = 'https://mesonet.agron.iastate.edu/archive/data/';
|
const baseUrl = 'https://mesonet.agron.iastate.edu/archive/data/';
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ class RegionalForecast extends WeatherDisplay {
|
|||||||
// there are enough other cities available to populate the map sufficiently even if some do not load
|
// there are enough other cities available to populate the map sufficiently even if some do not load
|
||||||
|
|
||||||
// pre-load the base map
|
// pre-load the base map
|
||||||
let baseMap = 'images/maps/basemap.png';
|
let baseMap = 'images/maps/basemap.webp';
|
||||||
if (weatherParameters.state === 'HI') {
|
if (weatherParameters.state === 'HI') {
|
||||||
baseMap = 'images/maps/radar-hawaii.png';
|
baseMap = 'images/maps/radar-hawaii.png';
|
||||||
} else if (weatherParameters.state === 'AK') {
|
} else if (weatherParameters.state === 'AK') {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -254,35 +254,24 @@ body {
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Star4000";
|
font-family: "Star4000";
|
||||||
src: url('../fonts/Star4000.woff') format('woff');
|
src: url('../fonts/Star4000.woff') format('woff');
|
||||||
}
|
font-display: swap;
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: "Star 4 Radar";
|
|
||||||
src: url('../fonts/Star 4 Radar.woff') format('woff');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Star4000 Extended';
|
font-family: 'Star4000 Extended';
|
||||||
src: url('../fonts/Star4000 Extended.woff') format('woff');
|
src: url('../fonts/Star4000 Extended.woff') format('woff');
|
||||||
}
|
font-display: swap;
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Star4000LCN';
|
|
||||||
src: url('../fonts/Star4000LCN.woff') format('woff');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Star4000 Large Compressed';
|
|
||||||
src: url('../fonts/Star4000 Large Compressed.woff') format('woff');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Star4000 Large';
|
font-family: 'Star4000 Large';
|
||||||
src: url('../fonts/Star4000 Large.ttf') format('truetype');
|
src: url('../fonts/Star4000 Large.woff') format('woff');
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Star4000 Small';
|
font-family: 'Star4000 Small';
|
||||||
|
font-display: swap;
|
||||||
src: url('../fonts/Star4000 Small.woff') format('woff');
|
src: url('../fonts/Star4000 Small.woff') format('woff');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,10 @@
|
|||||||
<meta property="og:image" content="https://weatherstar.netbymatt.com/images/social/1200x600.png">
|
<meta property="og:image" content="https://weatherstar.netbymatt.com/images/social/1200x600.png">
|
||||||
<meta property="og:image:width" content="1200">
|
<meta property="og:image:width" content="1200">
|
||||||
<meta property="og:image:height" content="627">
|
<meta property="og:image:height" content="627">
|
||||||
|
<link rel="preload" href="fonts/Star4000.woff" as="font" type="font/woff" crossorigin>
|
||||||
|
<link rel="preload" href="fonts/Star4000 Extended.woff" as="font" type="font/woff" crossorigin>
|
||||||
|
<link rel="preload" href="fonts/Star4000 Large.woff" as="font" type="font/woff" crossorigin>
|
||||||
|
<link rel="preload" href="fonts/Star4000 Small.woff" as="font" type="font/woff" crossorigin>
|
||||||
|
|
||||||
<% if (production) { %>
|
<% if (production) { %>
|
||||||
<link rel="stylesheet" type="text/css" href="resources/ws.min.css?_=<%=production%>" />
|
<link rel="stylesheet" type="text/css" href="resources/ws.min.css?_=<%=production%>" />
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
<div class="scroll-area">
|
<div class="scroll-area">
|
||||||
<div class="frame template">
|
<div class="frame template">
|
||||||
<div class="map">
|
<div class="map">
|
||||||
<img src="images/maps/radar.jpg" />
|
<img src="images/maps/radar.webp" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<%- include('header.ejs', {titleDual:{ top: 'Regional' , bottom: 'Observations' }, hasTime: true }) %>
|
<%- include('header.ejs', {titleDual:{ top: 'Regional' , bottom: 'Observations' }, hasTime: true }) %>
|
||||||
<div class="main has-scroll regional-forecast">
|
<div class="main has-scroll regional-forecast">
|
||||||
<div class="map"><img src="images/maps/basemap.png" /></div>
|
<div class="map"><img src="images/maps/basemap.webp" /></div>
|
||||||
<div class="location-container">
|
<div class="location-container">
|
||||||
<div class="location template">
|
<div class="location template">
|
||||||
<div class="icon">
|
<div class="icon">
|
||||||
|
|||||||
Reference in New Issue
Block a user