Skip to content

Commit

Permalink
update index page
Browse files Browse the repository at this point in the history
  • Loading branch information
haochengxu committed Sep 25, 2023
1 parent 9779caf commit ea1aa19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Binary file added public/assets/photo/3.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ea1aa19

Please sign in to comment.