Skip to content

Commit

Permalink
Updated Favicon and Image URIs
Browse files Browse the repository at this point in the history
  • Loading branch information
yubarajshrestha committed Oct 28, 2022
1 parent 7ef5fae commit 8b1f293
Show file tree
Hide file tree
Showing 20 changed files with 165 additions and 54 deletions.
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"git.ignoreLimitWarning": true
}
"git.ignoreLimitWarning": true,
"editor.formatOnSave": false
}
3 changes: 2 additions & 1 deletion components/Card.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* eslint-disable @next/next/no-img-element */
import Link from './Link'

const Card = ({ title, description, imgSrc, href, tutorial }) => (
<div className="md p-4 md:w-1/2" style={{ maxWidth: '544px' }}>
<div
className={`${
imgSrc && 'h-full'
} overflow-hidden rounded-md border-2 border-gray-200 border-opacity-60 dark:border-gray-700`}
} overflow-hidden rounded-md border-2 border-gray-200 border-opacity-60 dark:border-gray-700`}
>
{imgSrc &&
(href ? (
Expand Down
6 changes: 3 additions & 3 deletions components/LayoutWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ const LayoutWrapper = ({ children }) => {
<Link href="/" aria-label={siteMetadata.headerTitle}>
<div className="flex items-center justify-between">
<div className="mr-3">
<Logo />
<Logo width="106px" height="64px" />
</div>
{typeof siteMetadata.headerTitle === 'string' ? (
{/* {typeof siteMetadata.headerTitle === 'string' ? (
<div className="hidden h-6 text-2xl font-semibold sm:block">
{siteMetadata.headerTitle}
</div>
) : (
siteMetadata.headerTitle
)}
)} */}
</div>
</Link>
</div>
Expand Down
150 changes: 147 additions & 3 deletions data/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions data/siteMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const siteMetadata = {
siteUrl: 'https://pypackage.com',
siteRepo: 'https://github.com/py-package/official-website',
siteLogo: '/static/images/logo.png',
image: '/static/images/avatar.png',
image: '/static/images/avatar.jpg',
socialBanner: '/static/images/twitter-card.png',
email: '[email protected]',
github: 'https://github.com/py-package',
Expand Down Expand Up @@ -37,7 +37,7 @@ const siteMetadata = {
// content security policy in the `next.config.js` file.
// Select a provider and use the environment variables associated to it
// https://vercel.com/docs/environment-variables
provider: 'giscus', // supported providers: giscus, utterances, disqus
provider: 'disqus', // supported providers: giscus, utterances, disqus
giscusConfig: {
// Visit the link below, and follow the steps in the 'configuration' section
// https://giscus.app/
Expand Down
4 changes: 2 additions & 2 deletions layouts/AuthorLayout.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable @next/next/no-img-element */
import SocialIcon from '@/components/social-icons'
import Image from '@/components/Image'
import { PageSEO } from '@/components/SEO'

export default function AuthorLayout({ children, frontMatter }) {
Expand All @@ -16,7 +16,7 @@ export default function AuthorLayout({ children, frontMatter }) {
</div>
<div className="items-start space-y-2 xl:grid xl:grid-cols-3 xl:gap-x-8 xl:space-y-0">
<div className="flex flex-col items-center pt-8">
<Image
<img
src={avatar}
alt="avatar"
width="192px"
Expand Down
1 change: 0 additions & 1 deletion layouts/ListLayout.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import Link from '@/components/Link'
import Tag from '@/components/Tag'
import siteMetadata from '@/data/siteMetadata'
import { useState } from 'react'
import Pagination from '@/components/Pagination'
import formatDate from '@/lib/utils/formatDate'
Expand Down
4 changes: 2 additions & 2 deletions layouts/PostLayout.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable @next/next/no-img-element */
import Link from '@/components/Link'
import PageTitle from '@/components/PageTitle'
import SectionContainer from '@/components/SectionContainer'
import { BlogSEO } from '@/components/SEO'
import Image from '@/components/Image'
import Tag from '@/components/Tag'
import siteMetadata from '@/data/siteMetadata'
import Comments from '@/components/comments'
Expand Down Expand Up @@ -59,7 +59,7 @@ export default function PostLayout({ frontMatter, authorDetails, next, prev, chi
{authorDetails.map((author) => (
<li className="flex items-center space-x-2" key={author.name}>
{author.avatar && (
<Image
<img
src={author.avatar}
width="38px"
height="38px"
Expand Down
5 changes: 3 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
// You might need to insert additional domains in script-src if you are using external services
const ContentSecurityPolicy = `
default-src 'self';
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app;
script-src 'self' 'unsafe-eval' 'unsafe-inline' https://yubarajshrestha-com-np.disqus.com;
object-src 'self';
style-src 'self' 'unsafe-inline';
img-src * blob: data:;
media-src 'none';
connect-src *;
font-src 'self';
frame-src giscus.app
frame-src yubarajshrestha-com-np.disqus.com
`

const securityHeaders = [
Expand Down
1 change: 0 additions & 1 deletion pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ class MyDocument extends Document {
href="/static/favicons/favicon-16x16.png"
/>
<link rel="manifest" href="/static/favicons/site.webmanifest" />
<link rel="mask-icon" href="/static/favicons/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#000000" />
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#fff" />
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#000" />
Expand Down
Binary file added public/static/favicons/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 public/static/favicons/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 removed public/static/favicons/android-chrome-96x96.png
Binary file not shown.
Binary file modified public/static/favicons/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 modified public/static/favicons/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 modified public/static/favicons/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 public/static/favicons/favicon.ico
Binary file not shown.
Binary file removed public/static/favicons/mstile-150x150.png
Binary file not shown.
21 changes: 0 additions & 21 deletions public/static/favicons/safari-pinned-tab.svg

This file was deleted.

15 changes: 1 addition & 14 deletions public/static/favicons/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-96x96.png",
"sizes": "96x96",
"type": "image/png"
}
],
"theme_color": "#000000",
"background_color": "#000000",
"display": "standalone"
}
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

0 comments on commit 8b1f293

Please sign in to comment.