Skip to content

Commit

Permalink
Add all favicon sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
filipimiparebine committed Oct 8, 2024
1 parent 4530ae9 commit 4d46fc0
Show file tree
Hide file tree
Showing 8 changed files with 138 additions and 0 deletions.
113 changes: 113 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
services:
premier-league-db:
image: mysql:8.0
container_name: premier-league-db
hostname: premier-league-db
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
ports:
- "3306:3306"
volumes:
- dbdata:/var/lib/mysql

networks:
- premier-league-network

healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
timeout: 5s
retries: 3

premier-league-be:
build:
dockerfile: Dockerfile
container_name: premier-league-be
restart: unless-stopped
environment:
- APP_NAME
- APP_ENV
- APP_KEY
- APP_DEBUG
- APP_URL
- LOG_CHANNEL
- LOG_DEPRECATIONS_CHANNEL
- LOG_LEVEL
- DB_CONNECTION
- DB_HOST
- DB_PORT
- DB_DATABASE
- DB_USERNAME
- DB_PASSWORD
- BROADCAST_DRIVER
- CACHE_DRIVER
- FILESYSTEM_DISK
- QUEUE_CONNECTION
- SESSION_DRIVER
- SESSION_LIFETIME
- MEMCACHED_HOST
- REDIS_HOST
- REDIS_PASSWORD
- REDIS_PORT
- MAIL_MAILER
- MAIL_HOST
- MAIL_PORT
- MAIL_USERNAME
- MAIL_PASSWORD
- MAIL_ENCRYPTION
- MAIL_FROM_ADDRESS
- MAIL_FROM_NAME
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- AWS_BUCKET
- AWS_USE_PATH_STYLE_ENDPOINT
- PUSHER_APP_ID
- PUSHER_APP_KEY
- PUSHER_APP_SECRET
- PUSHER_HOST
- PUSHER_PORT
- PUSHER_SCHEME
- PUSHER_APP_CLUSTER
- VITE_APP_NAME
- VITE_PUSHER_APP_KEY
- VITE_PUSHER_HOST
- VITE_PUSHER_PORT
- VITE_PUSHER_SCHEME
- VITE_PUSHER_APP_CLUSTER

volumes:
- ./:/var/www
ports:
- "8000:8000"
depends_on:
premier-league-db:
condition: service_healthy
networks:
- premier-league-network
command: php artisan serve --host=0.0.0.0 --port=8000

premier-league-fe:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: premier-league-fe
restart: unless-stopped
ports:
- "3000:3000"
depends_on:
- premier-league-be
networks:
- premier-league-network

networks:
premier-league-network:
driver: bridge

volumes:
dbdata:
driver: local
Binary file removed frontend/app/favicon.ico
Binary file not shown.
24 changes: 24 additions & 0 deletions frontend/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,30 @@ export default function RootLayout({
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="192x192"
href="/android-chrome-192x192.png"
/>
<link
rel="icon"
type="image/png"
sizes="512x512"
href="/android-chrome-512x512.png"
/>
<link rel="manifest" href="/site.webmanifest" /> {/* For PWA */}
</head>
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
Expand Down
Binary file added frontend/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.
Binary file added frontend/public/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 frontend/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.
Binary file added frontend/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.
1 change: 1 addition & 0 deletions frontend/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"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 4d46fc0

Please sign in to comment.