Skip to content

Commit 26abb9f

Browse files
hh
1 parent 21141cb commit 26abb9f

16 files changed

Lines changed: 4728 additions & 2188 deletions

File tree

components/Yugioh/Card.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const Card = ( { cardData } ) => {
3535
<Image
3636
as="image"
3737
unoptimized="true"
38-
className="object-contain lg:object-scale-down object-top w-full mx-auto h-96 aspect-square"
38+
className="object-cover lg:object-scale-down object-top w-full mx-auto h-96 aspect-square"
3939
src={ imageSrc }
4040
alt={ `Card Image - ${ productName }` }
4141
width={ 1600 }

components/Yugioh/YugiohPagination.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const YugiohPagination = ( { currentPage = 1, itemsPerPage = 20, totalItems = 0,
6161
Previous
6262
</button>
6363

64-
<div className="flex items-center space-x-2">
64+
<div className="flex items-center space-x-2 text-white">
6565
<input
6666
type="text"
6767
inputMode="numeric"
@@ -70,7 +70,7 @@ const YugiohPagination = ( { currentPage = 1, itemsPerPage = 20, totalItems = 0,
7070
onChange={ handleInputChange }
7171
onBlur={ handleInputSubmit }
7272
onKeyDown={ ( event ) => event.key === 'Enter' && handleInputSubmit() }
73-
className="w-16 px-3 py-2 text-center text-black text-shadow"
73+
className="w-16 px-3 py-2 text-center text-white text-shadow"
7474
aria-label="Page number input"
7575
/>
7676
<span className="text-white/80" aria-live="polite">

next.config.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,16 @@
11
/** @type {import('next').NextConfig} */
2-
const isDev = process.env.NODE_ENV === "development";
3-
4-
const cspHeader = `
5-
default-src 'self';
6-
script-src 'self' 'unsafe-inline'${ isDev ? " 'unsafe-eval'" : "" } https://va.vercel-scripts.com;
7-
style-src 'self' 'unsafe-inline';
8-
img-src 'self' blob: data: https://images.ygoprodeck.com https://images.unsplash.com https://tailwindcss.com;
9-
font-src 'self' data:;
10-
connect-src 'self' https://mpapi.tcgplayer.com https://infinite-api.tcgplayer.com https://db.ygoprodeck.com https://www.sportscardspro.com;
11-
object-src 'none';
12-
base-uri 'self';
13-
form-action 'self';
14-
frame-ancestors 'none';
15-
upgrade-insecure-requests;
16-
`;
17-
182
const nextConfig = {
193
reactStrictMode: true,
204
productionBrowserSourceMaps: false,
215
turbopack: {
22-
root: "./",
6+
root: __dirname,
237
},
248

259
async headers() {
2610
return [
2711
{
2812
source: "/(.*)",
2913
headers: [
30-
{
31-
key: "Content-Security-Policy",
32-
value: cspHeader.replace( /\s{2,}/g, " " ).trim(),
33-
},
3414
{
3515
key: "X-Content-Type-Options",
3616
value: "nosniff",

0 commit comments

Comments
 (0)