Skip to content

Commit

Permalink
refactor: finish porting all files (#5)
Browse files Browse the repository at this point in the history
* refactor(SEO): add a restrictive robots.txt

refactor(SEO): add a restrictive robots.txt

For now i don't want to use SEO for cta.li only when i finish the work.

Reviewed-by: @c2tz
Refs: #2

* refactor(PWA): add a manifest.webmanifest file

refactor(PWA): add a manifest.webmanifest file

He shouldn't work well for develop branch (i use staging.cta.li) because start_url is not correctly completed but that not important.

The next PWA scope commit would be the png, webp files.

Reviewed-by: @c2tz
Refs: #2

* refactor(PWA): add all manifest requested pics

refactor(PWA): add all manifest.webmanifest requested pics

Second parts with requested pics for manifest.webmanifest files.

Reviewed-by: @c2tz
Refs: #2

* test(PWA): rename manifest.w... to manifest.json

test(PWA): rename manifest.w... to manifest.json

Vercel seems to have already a file with that name and that create a conflict so i test with manifest.json for now but that not conventional.

see: https://www.w3.org/TR/appmanifest/#using-a-link-element-to-link-to-a-manifest

Reviewed-by: @c2tz
Refs: #2

* Revert "test(PWA): rename manifest.w... to manifest.json"

This reverts commit f31020f.

* feat(pics): add other pics files

feat(pics): add other pics files

Just add other files like favicon apple-touch-icon.png mask.webp (footer), i should make a chore commits for later for remove unused pics.

Reviewed-by: @c2tz
Refs: #2

* refactor(SEO): add a sitemap.xml

refactor(SEO): add a sitemap.xml

For now i don't want to use SEO for cta.li only when i finish the work.

Reviewed-by: @c2tz
Refs: #2

* test(PWA): try to correct error 401 about manifest

test(PWA): try to correct error 401 about manifest

Only test i've found this https://medium.com/@aurelien.delogu/401-error-on-a-webmanifest-file-cb9e3678b9f3 that can be cause by CORS

Reviewed-by: @c2tz
Refs: #2

* feat(fonts): add a fonts folder with roboto fonts

refactor(SEO): add a sitemap.xml

Just add fonts folder with roboto regular and bold. No need to add mono for now.

That should now be finIsh for #2

Reviewed-by: @c2tz
Refs: #2
  • Loading branch information
c2tz authored Jun 8, 2024
1 parent 5235585 commit 3a93f56
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 1 deletion.
Binary file added static/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/favicon.ico
Binary file not shown.
Binary file added static/fonts/roboto-v30-latin-bold.woff2
Binary file not shown.
Binary file added static/fonts/roboto-v30-latin-regular.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion static/l.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<link rel="stylesheet" href="/main.css" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="manifest" href="/manifest.webmanifest" crossorigin="use-credentials" />
<link rel="license" href="/LICENSE.txt" />
</head>

Expand Down
46 changes: 46 additions & 0 deletions static/manifest.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"theme_color": "#000000",
"background_color": "#ffffff",
"name": "c2tz",
"short_name": "c2tz",
"start_url": "https://iez.cta.li/l",
"display": "minimal-ui",
"icons": [
{
"src": "res/mipmap-mdpi/ic_launcher.png",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "res/mipmap-hdpi/ic_launcher.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "res/mipmap-xhdpi/ic_launcher.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "res/mipmap-xxhdpi/ic_launcher.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "res/mipmap-xxxhdpi/ic_launcher.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "splash-screen.png",
"sizes": "512x512",
"type": "image/png"
},
{
"src": "mask.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
}
]
}
Binary file added static/mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/mask.webp
Binary file not shown.
Binary file added static/opengraph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
9 changes: 9 additions & 0 deletions static/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://cta.li/l.html</loc>
<priority>1</priority>
</url>
</urlset>
Binary file added static/splash-screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 3a93f56

@vercel
Copy link

@vercel vercel bot commented on 3a93f56 Jun 8, 2024

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.