Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions e2e/pwa.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ test.describe('PWA', () => {
expect(scope).toBe('http://localhost:3000/')
})

test('serve o ícone svg da aba', async ({ page }) => {
const response = await page.goto('/icon.svg')
test('serve o ícone da aba', async ({ page }) => {
const response = await page.goto('/logo.ico')
expect(response.status()).toBe(200)
expect(response.headers()['content-type']).toContain('svg')
expect(response.headers()['content-type']).toMatch(/image\/(x-icon|vnd\.microsoft\.icon)/)
})
})
Binary file added public/logo.ico
Binary file not shown.
Binary file modified public/logo.png
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 public/sw.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const CACHE_VERSION = 'v3'
const CACHE_VERSION = 'v4'
const STATIC_CACHE = `cb-static-${CACHE_VERSION}`

const STATIC_ASSETS = ['/', '/eventos', '/sobre', '/manifest.webmanifest', '/icon.svg']
const STATIC_ASSETS = ['/', '/eventos', '/sobre', '/manifest.webmanifest', '/logo.ico']

self.addEventListener('install', (event) => {
event.waitUntil(caches.open(STATIC_CACHE).then((cache) => cache.addAll(STATIC_ASSETS)))
Expand Down
15 changes: 0 additions & 15 deletions src/app/icon.svg

This file was deleted.

3 changes: 3 additions & 0 deletions src/app/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export const metadata = {
metadataBase: new URL(SITE_URL),
title: 'Eventos Café Bugado',
description: 'Agenda de eventos da comunidade Café Bugado',
icons: {
icon: '/logo.ico',
},
openGraph: {
siteName: 'Eventos - Comunidade Café Bugado',
locale: 'pt_BR',
Expand Down
7 changes: 6 additions & 1 deletion src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,12 @@ export default function Header() {
rel="noopener noreferrer"
sx={{ display: 'flex', alignItems: 'center', flex: 1 }}
>
<Box component="img" src="/logo.png" alt="Eventos Cafe Bugado" sx={{ height: 36 }} />
<Box
component="img"
src="/logo.png"
alt="Eventos Cafe Bugado"
sx={{ display: 'block', height: { xs: 36, md: 52 }, width: 'auto' }}
/>
</Box>

<Stack
Expand Down
Loading