Skip to content

Commit

Permalink
Add page metas
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkonidas committed Jun 20, 2024
1 parent 12437d8 commit bf78ca1
Show file tree
Hide file tree
Showing 19 changed files with 113 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/plexus_web.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ defmodule PlexusWeb do
those modules here.
"""

def static_paths, do: ~w(assets fonts images favicon.ico robots.txt)
def static_paths do
~w(assets fonts images favicon.ico favicon mstile browserconfig apple safari robots.txt site)
end

def router do
quote do
Expand Down
32 changes: 32 additions & 0 deletions lib/plexus_web/components/layouts/root.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,38 @@
<.live_title suffix=" · Plexus">
<%= assigns[:page_title] || "Plexus" %>
</.live_title>

<meta
name="description"
content="Remove the fear of Android app compatibility on de-Googled devices."
/>
<meta property="og:title" content="Crowdsourced de-Googled Android apps status ratings" />
<meta
property="og:description"
content="Remove the fear of Android app compatibility on de-Googled devices."
/>
<meta
name="image"
property="og:image"
content="https://plexus.techlore.tech/images/og-plexus.jpg"
/>
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="@tomkonidas" />
<meta name="twitter:title" content="Crowdsourced de-Googled Android apps status ratings" />
<meta
name="twitter:description"
content="Remove the fear of Android app compatibility on de-Googled devices."
/>
<meta name="twitter:image" content="https://plexus.techlore.tech/images/og-plexus.jpg" />
<link rel="apple-touch-icon" sizes="180x180" href={~p"/apple-touch-icon.png"} />
<link rel="icon" type="image/png" sizes="32x32" href={~p"/favicon-32x32.png"} />
<link rel="icon" type="image/png" sizes="16x16" href={~p"/favicon-16x16.png"} />
<link rel="manifest" href={~p"/site.webmanifest"} />
<link rel="mask-icon" href={~p"/safari-pinned-tab.svg"} color="#111111" />
<meta name="msapplication-TileColor" content="#333333" />
<meta name="theme-color" content="#111111" />

<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
</script>
Expand Down
2 changes: 1 addition & 1 deletion lib/plexus_web/endpoint.ex
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ defmodule PlexusWeb.Endpoint do
at: "/",
from: :plexus,
gzip: false,
only: PlexusWeb.static_paths()
only_matching: PlexusWeb.static_paths()

# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.
Expand Down
2 changes: 1 addition & 1 deletion lib/plexus_web/live/app_live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defmodule PlexusWeb.AppLive.Index do

defp apply_action(socket, :index, _params) do
socket
|> assign(:page_title, "Apps")
|> assign(:page_title, "Crowdsourced de-Googled Android apps status ratings")
|> assign(:app, nil)
end

Expand Down
Binary file added priv/static/android-chrome-192x192.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 priv/static/android-chrome-512x512.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 priv/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.
9 changes: 9 additions & 0 deletions priv/static/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square150x150logo src="/mstile-150x150.png"/>
<TileColor>#333333</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added priv/static/favicon-16x16.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 priv/static/favicon-32x32.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 modified priv/static/favicon.ico
Binary file not shown.
Binary file added priv/static/images/og-plexus.jpg
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 priv/static/mstile-144x144.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 priv/static/mstile-150x150.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 priv/static/mstile-310x150.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 priv/static/mstile-310x310.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 priv/static/mstile-70x70.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions priv/static/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions priv/static/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "Plexus",
"short_name": "Plexus",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#111111",
"background_color": "#111111",
"display": "standalone"
}

0 comments on commit bf78ca1

Please sign in to comment.