diff --git a/package-lock.json b/package-lock.json index 76c2576..6b7bfe5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,10 @@ "web-vitals": "^1.1.2" }, "devDependencies": { - "prettier": "^3.6.2" + "autoprefixer": "^10.4.21", + "postcss": "^8.5.6", + "prettier": "^3.6.2", + "tailwindcss": "^3.4.18" } }, "node_modules/@adobe/css-tools": { diff --git a/package.json b/package.json index ad83776..836085d 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,10 @@ "format:check": "prettier --check \"src/**/*.{js,jsx,ts,tsx,css,scss,json,md}\"" }, "devDependencies": { - "prettier": "^3.6.2" + "autoprefixer": "^10.4.21", + "postcss": "^8.5.6", + "prettier": "^3.6.2", + "tailwindcss": "^3.4.18" }, "eslintConfig": { "extends": [ diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..2428c34 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: [ + require('tailwindcss'), + require('autoprefixer') + ], +}; diff --git a/src/components/celebration/Celebration.css b/src/components/celebration/Celebration.css index 011b4c7..856f357 100644 --- a/src/components/celebration/Celebration.css +++ b/src/components/celebration/Celebration.css @@ -1,4 +1,4 @@ -.celebration-notification { +/* .celebration-notification { position: fixed; top: 30%; left: 50%; @@ -67,4 +67,4 @@ h3 { 100% { opacity: 1; } -} +} */ diff --git a/src/components/celebration/Celebration.js b/src/components/celebration/Celebration.js index 2c66267..63033e7 100644 --- a/src/components/celebration/Celebration.js +++ b/src/components/celebration/Celebration.js @@ -1,4 +1,3 @@ -import './Celebration.css'; import React, { useRef } from 'react'; import ShareButton from './../sharebutton/ShareButton'; import PropTypes from 'prop-types'; @@ -9,22 +8,111 @@ export default function Celebration({ handleRestartGame, }) { const highScoreRef = useRef(null); + return ( -
- Highscore achieved: {highScore}
-
-
- {elapsedTime}s -
++ Highscore achieved:{' '} + + {highScore} + +
+ ++ Time:{' '} + + {elapsedTime}s + +
+ +