diff --git a/pages/index.tsx b/pages/index.tsx index 7d986c9..831a9a8 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -1,7 +1,9 @@ import Link from 'next/link' +let max = 3, min = 1; + const indexStyle = { - backgroundImage: "url('/assets/photo/AK9A0963.JPG')", + backgroundImage: `url('/assets/photo/${Math.floor(Math.random() * (max - min + 1) + min)}.JPG')`, height: '100vh', width: '100vw', position: 'relative' as 'relative', diff --git a/public/assets/photo/3.JPG b/public/assets/photo/3.JPG new file mode 100644 index 0000000..f0ab760 Binary files /dev/null and b/public/assets/photo/3.JPG differ