Skip to content

Commit

Permalink
Merge Staging - Welcome Ui background (#49)
Browse files Browse the repository at this point in the history
* removed welcome roll condition

* welcome roll ui background
  • Loading branch information
Avelous authored Jul 24, 2024
1 parent 8be238a commit 8660f1e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions packages/nextjs/components/dicedemo/WelcomeRoll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const WelcomeRoll = () => {
}, [rolledResult]);

return (
<div className="flex justify-center flex-col gap-2">
<div className="flex justify-center flex-col gap-2 bg-white">
<button
className="btn btn-sm btn-primary mx-auto "
onClick={rollTheDice}
Expand Down Expand Up @@ -105,7 +105,7 @@ const WelcomeRoll = () => {
className="w-[95%] h-[95%] overflow-hidden rounded-lg mx-auto flex justify-center items-center"
>
<div className="scale-125">
<Image className="scale-150" src="/rolls-gif/Spin.gif" alt="spinning" width={400} height={400} />
<Image className="scale-150" src="/rolls-gif/Spin.gif" alt="spinning" width={350} height={350} />
</div>
</div>
) : (
Expand All @@ -118,8 +118,8 @@ const WelcomeRoll = () => {
className="scale-150"
src={`/rolls-jpg/${rolls[index]}.jpg`}
alt="rolled"
width={400}
height={400}
width={350}
height={350}
/>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Home: NextPage = () => {
</div> */}

<div>
<div className="mx-auto mt-5 border p-6 rounded-md bg-base-100 shadow-2xl">
<div className="mx-auto mt-5 border p-6 rounded-md bg-base-100 shadow-2xl flex flex-col">
<WelcomeRoll />
<div className="flex justify-center mt-10">
<ul className="menu menu-horizontal justify-center p-2 bg-base-300 rounded-full mb-8 w-fit mx-auto">
Expand Down

0 comments on commit 8660f1e

Please sign in to comment.