Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
e095ff90
Commit
e095ff90
authored
Sep 06, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ios assets
parent
051eb0fa
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
23 additions
and
1 deletion
+23
-1
config.template.json
deploy/tools/favicon-generator/config.template.json
+14
-1
script.sh
deploy/tools/favicon-generator/script.sh
+4
-0
_document.tsx
pages/_document.tsx
+2
-0
apple-touch-icon-120x120.png
public/favicon/apple-touch-icon-120x120.png
+0
-0
apple-touch-icon-152x152.png
public/favicon/apple-touch-icon-152x152.png
+0
-0
apple-touch-icon-180x180.png
public/favicon/apple-touch-icon-180x180.png
+0
-0
apple-touch-icon-60x60.png
public/favicon/apple-touch-icon-60x60.png
+0
-0
apple-touch-icon-76x76.png
public/favicon/apple-touch-icon-76x76.png
+0
-0
apple-touch-icon.png
public/favicon/apple-touch-icon.png
+0
-0
safari-pinned-tab.svg
public/favicon/safari-pinned-tab.svg
+3
-0
No files found.
deploy/tools/favicon-generator/config.template.json
View file @
e095ff90
...
@@ -10,7 +10,20 @@
...
@@ -10,7 +10,20 @@
"path"
:
"/favicons"
"path"
:
"/favicons"
},
},
"favicon_design"
:
{
"favicon_design"
:
{
"desktop_browser"
:
{}
"desktop_browser"
:
{},
"ios"
:
{
"picture_aspect"
:
"no_change"
,
"assets"
:
{
"ios6_and_prior_icons"
:
false
,
"ios7_and_later_icons"
:
true
,
"precomposed_icons"
:
false
,
"declare_only_default_icon"
:
true
}
},
"safari_pinned_tab"
:
{
"picture_aspect"
:
"black_and_white"
,
"threshold"
:
60
}
},
},
"settings"
:
{
"settings"
:
{
"compression"
:
"3"
,
"compression"
:
"3"
,
...
...
deploy/tools/favicon-generator/script.sh
View file @
e095ff90
...
@@ -48,6 +48,10 @@ echo "$API_RESPONSE" > response.json
...
@@ -48,6 +48,10 @@ echo "$API_RESPONSE" > response.json
# Check if the API response is valid JSON and contains success status
# Check if the API response is valid JSON and contains success status
if
!
jq
-e
'.favicon_generation_result.result.status == "success"'
<<<
"
$API_RESPONSE
"
>
/dev/null
;
then
if
!
jq
-e
'.favicon_generation_result.result.status == "success"'
<<<
"
$API_RESPONSE
"
>
/dev/null
;
then
echo
"🛑 Error: API response does not contain the expected structure or has an error status."
echo
"🛑 Error: API response does not contain the expected structure or has an error status."
ERROR_MESSAGE
=
$(
echo
"
$API_RESPONSE
"
| jq
-r
'.favicon_generation_result.result.error_message'
|
tr
-d
'\\'
)
if
[
-n
"
$ERROR_MESSAGE
"
]
;
then
echo
"🛑
$ERROR_MESSAGE
"
fi
exit
1
exit
1
fi
fi
echo
"🆗 API responded with success status."
echo
"🆗 API responded with success status."
...
...
pages/_document.tsx
View file @
e095ff90
...
@@ -44,6 +44,8 @@ class MyDocument extends Document {
...
@@ -44,6 +44,8 @@ class MyDocument extends Document {
<
link
rel=
"icon"
href=
"/favicon/favicon.ico"
sizes=
"48x48"
/>
<
link
rel=
"icon"
href=
"/favicon/favicon.ico"
sizes=
"48x48"
/>
<
link
rel=
"icon"
sizes=
"32x32"
type=
"image/png"
href=
"/favicon/favicon-32x32.png"
/>
<
link
rel=
"icon"
sizes=
"32x32"
type=
"image/png"
href=
"/favicon/favicon-32x32.png"
/>
<
link
rel=
"icon"
sizes=
"16x16"
type=
"image/png"
href=
"/favicon/favicon-16x16.png"
/>
<
link
rel=
"icon"
sizes=
"16x16"
type=
"image/png"
href=
"/favicon/favicon-16x16.png"
/>
<
link
rel=
"apple-touch-icon"
href=
"/favicon/apple-touch-icon-180x180.png"
/>
<
link
rel=
"mask-icon"
href=
"/favicon/safari-pinned-tab.svg"
/>
{
/* OG TAGS */
}
{
/* OG TAGS */
}
<
meta
property=
"og:title"
content=
"Blockscout: A block explorer designed for a decentralized world."
/>
<
meta
property=
"og:title"
content=
"Blockscout: A block explorer designed for a decentralized world."
/>
...
...
public/favicon/apple-touch-icon-120x120.png
0 → 100644
View file @
e095ff90
736 Bytes
public/favicon/apple-touch-icon-152x152.png
0 → 100644
View file @
e095ff90
833 Bytes
public/favicon/apple-touch-icon-180x180.png
0 → 100644
View file @
e095ff90
791 Bytes
public/favicon/apple-touch-icon-60x60.png
0 → 100644
View file @
e095ff90
515 Bytes
public/favicon/apple-touch-icon-76x76.png
0 → 100644
View file @
e095ff90
561 Bytes
public/favicon/apple-touch-icon.png
0 → 100644
View file @
e095ff90
791 Bytes
public/favicon/safari-pinned-tab.svg
0 → 100644
View file @
e095ff90
<svg
version=
"1.0"
xmlns=
"http://www.w3.org/2000/svg"
viewBox=
"0 0 180 180"
>
<path
d=
"M34.9 2.9c-2.9 2.9-2.9 3-2.9 15 0 6.8-.5 13.1-1.1 14.5-1.9 4-6.6 5.6-16.6 5.6C4.7 38 1.7 39.4.5 44.3.2 45.5.1 75.4.2 110.7l.3 64.2 2.3 2.3c2.1 2.1 3.3 2.3 14.6 2.6 14.8.4 17.9-.6 19.5-6.6.7-2.4 1.1-26.2 1.1-66.9V43.1l2.4-2.8c2.3-2.7 2.9-2.8 13.6-3.3 15-.7 15-.6 15-18.2v-13l-2.9-2.9C63.2 0 63.2 0 50.5 0S37.8 0 34.9 2.9zM111.8 1.5c-3.9 2.2-5.1 7.8-4.6 20.4.5 9.8.6 10.6 3.2 12.8 2.3 2 3.8 2.3 10.5 2.3 4.3 0 9.2.5 11 1.1 6.3 2.2 6.1.3 6.1 71.4v64.7l2.9 2.9c2.9 2.9 3 2.9 15.4 2.9 12 0 12.7-.1 15.6-2.6l3.1-2.6V42.9l-2.5-2.4c-2.2-2.2-3.2-2.5-10.5-2.5-8.1 0-14-1.6-15.6-4.1-.5-.8-1.1-7.6-1.4-15.1C144.3.3 144.6.6 127.2.2c-9.8-.1-13.3.1-15.4 1.3zM72.3 74.4l-2.8 2.4-.3 30.6-.3 30.5 3 3.3 2.9 3.3h13.1c12.9 0 13.1 0 15.8-2.8l2.8-2.7V76.8l-2.8-2.4C101 72.1 100.2 72 88 72s-13 .1-15.7 2.4z"
/>
</svg>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment