Skip to content

Commit

Permalink
feat(envited.ascs.digital): add favicon
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Scheeren <[email protected]>
  • Loading branch information
royscheeren committed Jan 16, 2024
1 parent a6ebd53 commit b63c92e
Show file tree
Hide file tree
Showing 17 changed files with 64 additions and 13 deletions.
1 change: 0 additions & 1 deletion apps/design-system/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ export default {
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
coverageDirectory: '../../coverage/apps/design-system',

}
3 changes: 1 addition & 2 deletions apps/design-system/src/common/utils/utils.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable no-global-assign */
/* eslint-disable no-native-reassign */

/* eslint-disable no-native-reassign */
import '@testing-library/jest-dom'

import * as SUT from './utils'
Expand Down Expand Up @@ -51,7 +51,6 @@ describe('common/utils', () => {
['1970-01-01T00:00:00Z', 'January 1, 1970'],
['2021-09-27T10:26:14Z', 'September 27, 2021'],
])('should, with value %s, return %s as expected', (date, result) => {

// when ... we provide a value
// then ... it should return as expected
expect(SUT.formatDate(date)).toEqual(result)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ import ThemeToggle from './ThemeToggle'

describe('compoments/ThemeToggle', () => {
describe('render', () => {
it.each([
[ColorScheme.light],
[ColorScheme.dark],
])('should render ThemeToggle in state', (theme) => {
it.each([[ColorScheme.light], [ColorScheme.dark]])('should render ThemeToggle in state', theme => {
// when ... rendering component
const { container, getByRole } = render(<ThemeToggle selectedTheme={theme} onToggle={noop} />)

const themeToggleElement = getByRole('button')
const svg = container.querySelector('svg')

// then ... should render as expected
expect(themeToggleElement).toBeInTheDocument()
expect(svg).toBeInTheDocument()
Expand Down
7 changes: 7 additions & 0 deletions apps/envited.ascs.digital/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ export default function RootLayout({ children }: { children: React.ReactNode })
<head>
<title>{metadata.title}</title>
<meta name="description" content={metadata.description} />
<link rel="apple-touch-icon" sizes="76x76" 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="#758bb7" />
<meta name="msapplication-TileColor" content="#758bb7" />
<meta name="theme-color" content="#ffffff"></meta>
</head>
<body className="bg-white dark:bg-gray-800">
<Providers>{children}</Providers>
Expand Down
2 changes: 1 addition & 1 deletion apps/envited.ascs.digital/common/database/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const seed = async () => {
try {
// Insert seeding requirements here
let connection = null

if (process.env.ENV === 'development') {
connection = await connectDb()
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { render } from '@testing-library/react'
import { useSession } from 'next-auth/react'
import React from 'react'

import { HeroHeader } from './HeroHeader'
import { render } from '@testing-library/react'

jest.mock('next-auth/react')

Expand All @@ -27,10 +27,10 @@ describe('modules/HeroHeader', () => {
it('should return as expected', async () => {
// when ... rendering component
// then ... should render with expected css class

mockUseSession.mockReturnValue({})
const { container } = render(<HeroHeader />)

expect(container.firstChild).toHaveClass('mx-auto max-w-6xl')
})
})
Expand Down
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.
9 changes: 9 additions & 0 deletions apps/envited.ascs.digital/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>#758bb7</TileColor>
</tile>
</msapplication>
</browserconfig>
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 modified apps/envited.ascs.digital/public/favicon.ico
Binary file not shown.
Binary file added apps/envited.ascs.digital/public/favicon.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.
27 changes: 27 additions & 0 deletions apps/envited.ascs.digital/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.
14 changes: 14 additions & 0 deletions apps/envited.ascs.digital/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "Envited Marketplace",
"short_name": "Envited",
"icons": [
{
"src": "/android-chrome-72x72.png",
"sizes": "72x72",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
1 change: 0 additions & 1 deletion apps/envited.ascs.digital/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '@testing-library/jest-dom'

import { TextDecoder, TextEncoder } from 'util'

Object.assign(global, { TextDecoder, TextEncoder })

0 comments on commit b63c92e

Please sign in to comment.