Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/CodeForAfrica/ui into ft/hu…
Browse files Browse the repository at this point in the history
…rumap-choropleth-map
  • Loading branch information
kelvinkipruto committed Aug 23, 2024
2 parents b75d34a + 69427fe commit 7d23fbb
Show file tree
Hide file tree
Showing 17 changed files with 112 additions and 17 deletions.
2 changes: 1 addition & 1 deletion apps/civicsignalblog/contrib/dokku/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM codeforafrica/codeforafrica-ui:0.1.12
FROM codeforafrica/codeforafrica-ui:0.1.13
2 changes: 1 addition & 1 deletion apps/civicsignalblog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "civicsignalblog",
"version": "0.1.12",
"version": "0.1.13",
"private": true,
"author": "Code for Africa <tech@codeforafrica.org>",
"description": "This is the (temporary) CivicSignal blog",
Expand Down
3 changes: 1 addition & 2 deletions apps/civicsignalblog/src/lib/data/seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export default function getPageSeoFromMeta(page, settings) {
const defaultTitle = settings.meta?.title || settings.title || site.name;
const title = page.meta?.title || page.title || defaultTitle;
// Dont't use template on homepage
const titleTemplate =
page.slug !== "index" ? defaultTitle && `%s | ${defaultTitle}` : null;
const titleTemplate = page.slug === "index" ? "%s" : `%s | ${defaultTitle}`;
const description =
page.meta?.description ||
settings.meta?.description ||
Expand Down
3 changes: 2 additions & 1 deletion apps/civicsignalblog/src/pages/_document.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import createEmotionServer from "@emotion/server/create-instance";
import Document, { Html, Head, Main, NextScript } from "next/document";
import React from "react";

import theme from "@/civicsignalblog/theme";
import createEmotionCache from "@/civicsignalblog/utils/createEmotionCache";

class MyDocument extends Document {
Expand Down Expand Up @@ -44,7 +45,7 @@ class MyDocument extends Document {
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#1020e1" />
<meta name="msapplication-TileColor" content="#2b5797" />
<meta name="theme-color" content="#ffffff" />
<meta name="theme-color" content={theme.palette.primary.main} />
<meta name="emotion-insertion-point" content="" />
{this.props.emotionStyleTags}
</Head>
Expand Down
2 changes: 1 addition & 1 deletion apps/roboshield/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "roboshield",
"version": "0.1.11",
"version": "0.1.13",
"private": true,
"scripts": {
"build-server": "tsc --project tsconfig.server.json",
Expand Down
Binary file added apps/roboshield/public/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.
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 apps/roboshield/public/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 apps/roboshield/public/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>#2b5797</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added apps/roboshield/public/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 apps/roboshield/public/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 added apps/roboshield/public/image.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 apps/roboshield/public/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.
46 changes: 46 additions & 0 deletions apps/roboshield/public/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 apps/roboshield/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "TrustLab's RoboShield",
"short_name": "RoboShield",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#1020E1",
"background_color": "#ffffff",
"display": "standalone"
}
3 changes: 1 addition & 2 deletions apps/roboshield/src/lib/data/seo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export default function getPageSeoFromMeta(
const defaultTitle = settings.meta?.title || settings.title || site.name;
const title = page.meta?.title || page.title || defaultTitle;
// Dont't use template on homepage
const titleTemplate =
page.slug !== "index" ? defaultTitle && `%s | ${defaultTitle}` : null;
const titleTemplate = page.slug === "index" ? "%s" : `%s | ${defaultTitle}`;
const description =
page.meta?.description ||
settings.meta?.description ||
Expand Down
40 changes: 31 additions & 9 deletions apps/roboshield/src/pages/_document.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,46 @@
import * as React from "react";
import {
Html,
Head,
Main,
NextScript,
DocumentProps,
DocumentContext,
} from "next/document";
import {
DocumentHeadTags,
DocumentHeadTagsProps,
documentGetInitialProps,
} from "@mui/material-nextjs/v14-pagesRouter";
import {
DocumentContext,
DocumentProps,
Head,
Html,
Main,
NextScript,
} from "next/document";

import theme from "@/roboshield/theme";

export default function MyDocument(
props: DocumentProps & DocumentHeadTagsProps,
) {
return (
<Html lang="en">
<Head>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#1020e1" />
<meta name="msapplication-TileColor" content="#2b5797" />
<meta name="theme-color" content={theme.palette.primary.main} />
<link rel="shortcut icon" href="/favicon.ico" />
<meta name="emotion-insertion-point" content="" />
<DocumentHeadTags {...props} />
Expand Down

0 comments on commit 7d23fbb

Please sign in to comment.