mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 08:13:49 +10:00
- make the app faster, better accesibility
This commit is contained in:
@ -5,48 +5,30 @@
|
|||||||
"public": "public",
|
"public": "public",
|
||||||
"ignore": ["**/.*", "firebase.json", "**/node_modules/**"],
|
"ignore": ["**/.*", "firebase.json", "**/node_modules/**"],
|
||||||
"headers": [
|
"headers": [
|
||||||
{
|
|
||||||
"source": "**/*.@(eot|otf|ttf|ttc|woff|woff2|font.css)",
|
|
||||||
"headers": [
|
|
||||||
{
|
|
||||||
"key": "Access-Control-Allow-Origin",
|
|
||||||
"value": "*"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "**/*.@(eot|otf|ttf|ttc|woff|woff2|font.css)",
|
|
||||||
"headers": [
|
|
||||||
{
|
|
||||||
"key": "cache-control",
|
|
||||||
"value": "max-age=604800"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"source": "**/*",
|
"source": "**/*",
|
||||||
"headers": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"key": "cache-control",
|
"key": "cache-control",
|
||||||
"value": "public, max-age=0, must-revalidate"
|
"value": "cache-control: public, max-age=86400, must-revalidate"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "**/*.@(js|css)",
|
"source": "static/**",
|
||||||
"headers": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"key": "cache-control",
|
"key": "cache-control",
|
||||||
"value": "max-age=604800"
|
"value": "public, max-age=604800, immutable"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "**/*.@(jpg|jpeg|gif|png|svg)",
|
"source": "**/*.@(css|js|woff2|jpg|png)",
|
||||||
"headers": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"key": "cache-control",
|
"key": "cache-control",
|
||||||
"value": "max-age=604800"
|
"value": "public, max-age=86400, immutable"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -55,16 +37,16 @@
|
|||||||
"headers": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"key": "cache-control",
|
"key": "cache-control",
|
||||||
"value": "public, max-age=0, must-revalidate"
|
"value": "cache-control: public, max-age=86400, must-revalidate"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"source": "404.html",
|
"source": "page-data/**",
|
||||||
"headers": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"key": "cache-control",
|
"key": "cache-control",
|
||||||
"value": "max-age=300"
|
"value": "cache-control: public, max-age=86400, must-revalidate"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -71,9 +71,21 @@ module.exports = {
|
|||||||
description: 'A free and open-source resume builder.',
|
description: 'A free and open-source resume builder.',
|
||||||
start_url: '/?source=pwa',
|
start_url: '/?source=pwa',
|
||||||
icon: 'static/images/logo.png',
|
icon: 'static/images/logo.png',
|
||||||
|
icon_options: {
|
||||||
|
purpose: 'any maskable monochrome',
|
||||||
|
},
|
||||||
background_color: '#FFFFFF',
|
background_color: '#FFFFFF',
|
||||||
theme_color: '#444444',
|
theme_color: '#444444',
|
||||||
display: 'standalone',
|
display: 'standalone',
|
||||||
|
cache_busting_mode: 'none',
|
||||||
|
icons: [
|
||||||
|
{
|
||||||
|
src: 'static/icons/maskable.png',
|
||||||
|
sizes: '196x196',
|
||||||
|
type: 'image/png',
|
||||||
|
purpose: 'any maskable monochrome',
|
||||||
|
},
|
||||||
|
],
|
||||||
shortcuts: [
|
shortcuts: [
|
||||||
{
|
{
|
||||||
name: 'Dashboard',
|
name: 'Dashboard',
|
||||||
@ -87,6 +99,9 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
resolve: 'gatsby-plugin-offline',
|
resolve: 'gatsby-plugin-offline',
|
||||||
options: {
|
options: {
|
||||||
|
workboxConfig: {
|
||||||
|
globPatterns: ['**/*'],
|
||||||
|
},
|
||||||
precachePages: ['', '/app/*', '/blog/*'],
|
precachePages: ['', '/app/*', '/blog/*'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@ -20,6 +20,7 @@ const Hero = () => {
|
|||||||
return (
|
return (
|
||||||
<div className="flex flex-col md:flex-row items-center">
|
<div className="flex flex-col md:flex-row items-center">
|
||||||
<Link to="/">
|
<Link to="/">
|
||||||
|
<span className="sr-only">Reactive Resume</span>
|
||||||
<Logo className="shadow-lg" size="256px" />
|
<Logo className="shadow-lg" size="256px" />
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
|
|||||||
@ -71,7 +71,7 @@ const Screenshots = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mt-24 mb-4">
|
<div className="mt-24 mb-4">
|
||||||
<h4 className="text-xl uppercase font-bold mb-8">Screenshots</h4>
|
<div className="text-xl uppercase font-bold mb-8">Screenshots</div>
|
||||||
|
|
||||||
<div className="flex w-full overflow-x-scroll">
|
<div className="flex w-full overflow-x-scroll">
|
||||||
{Object.keys(screenshots).map((x) => (
|
{Object.keys(screenshots).map((x) => (
|
||||||
@ -82,7 +82,11 @@ const Screenshots = () => {
|
|||||||
key={screenshots[x].childImageSharp.fluid.src}
|
key={screenshots[x].childImageSharp.fluid.src}
|
||||||
href={screenshots[x].childImageSharp.fluid.src}
|
href={screenshots[x].childImageSharp.fluid.src}
|
||||||
>
|
>
|
||||||
<GatsbyImage fixed={screenshots[x].childImageSharp.fixed} />
|
<span className="sr-only">Reactive Resume Screenshot</span>
|
||||||
|
<GatsbyImage
|
||||||
|
fixed={screenshots[x].childImageSharp.fixed}
|
||||||
|
alt="Reactive Resume Screenshot"
|
||||||
|
/>
|
||||||
</a>
|
</a>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -18,6 +18,7 @@ const Wrapper = ({ children }) => {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
|
<html lang="en" />
|
||||||
<title>Reactive Resume</title>
|
<title>Reactive Resume</title>
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
|
|||||||
@ -68,9 +68,9 @@ const Home = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="my-24">
|
<div className="my-24">
|
||||||
<h4 className="text-xl uppercase font-bold mb-8">
|
<div className="text-xl uppercase font-bold mb-8">
|
||||||
Links of Interest
|
Links of Interest
|
||||||
</h4>
|
</div>
|
||||||
<div className="grid grid-cols-3 md:grid-cols-4 gap-8">
|
<div className="grid grid-cols-3 md:grid-cols-4 gap-8">
|
||||||
<Link to="/faq">Frequently Asked Questions</Link>
|
<Link to="/faq">Frequently Asked Questions</Link>
|
||||||
<a
|
<a
|
||||||
@ -115,7 +115,7 @@ const Home = () => {
|
|||||||
const Feature = ({ title, children }) => {
|
const Feature = ({ title, children }) => {
|
||||||
return (
|
return (
|
||||||
<div className="mt-16">
|
<div className="mt-16">
|
||||||
<h3 className="text-3xl">{title}</h3>
|
<div className="text-3xl">{title}</div>
|
||||||
<p className="mt-6 text-lg leading-loose">{children}</p>
|
<p className="mt-6 text-lg leading-loose">{children}</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB |
BIN
static/icons/maskable.png
Normal file
BIN
static/icons/maskable.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
Reference in New Issue
Block a user