Skip to content

Commit

Permalink
Merge pull request #231 from gouravmore/all-rig-v1-0.4
Browse files Browse the repository at this point in the history
Issue #0000 fix: pointer for highlighted word
  • Loading branch information
gouravmore authored Feb 25, 2024
2 parents 66c514d + de78603 commit e514d77
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/pages/Story/Mario/Mario.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/* Container styles */
.game-container {

.mario-game-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 5% 5% 3% 5%;
}

/* Progress bar container */
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Story/Mario/Mario.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Mario = ({dragonPosition, marioPosition, gameOver}) => {


return (
<div className="game-container">
<div className="mario-game-container">
<div className="progress-bar" style={progressStyle}>
<div className="start-icon">📍</div>
<div className="dragon-progress" style={{ left: `${dragonPosition}%` }}></div>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Story/Showcase.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import Mario from './Mario/Mario';
const jsConfetti = new JSConfetti();

const Showcase = ({ forceRerender, setForceRerender }) => {
const [dragonPosition, setDragonPosition] = useState(100);
const [marioPosition, setMarioPosition] = useState(0);
const [dragonPosition, setDragonPosition] = useState(98);
const [marioPosition, setMarioPosition] = useState(-2);
const [gameOver, setGameOver] = useState(false);

const [posts, setPosts] = useState([]);
Expand Down

0 comments on commit e514d77

Please sign in to comment.