diff --git a/src/css/option.css b/src/css/option.css new file mode 100644 index 0000000..7c4105f --- /dev/null +++ b/src/css/option.css @@ -0,0 +1,28 @@ +.optionBox { + display: flex; + justify-content: center; + align-items: center; + width: 60vw; + background-color: white; + color: #8391b8; + border-style: solid; + border-color: #8391b8; + border-width: 5px; + border-radius: 30px; + padding: 50px; +} +.optionSection { + display: flex; + flex-direction: column; + row-gap: 1rem; +} + +.spriteBox { + height: 50vh; + width: 30vw; +} +@media (max-width: 768px) { + .spriteBox { + width: 75vw; + } +} \ No newline at end of file diff --git a/src/pages/optionPage.jsx b/src/pages/optionPage.jsx new file mode 100644 index 0000000..a6679c2 --- /dev/null +++ b/src/pages/optionPage.jsx @@ -0,0 +1,44 @@ +// src/OptionPage.js +import { useEffect, useState } from 'react'; +import '../css/global.css'; +import '../css/textBox.css'; +import '../css/nameBox.css'; +import '../css/option.css' +import Animation from './components/animation.jsx'; + +function OptionPage({data , onClicked}) { + const backgroundSRC = `${import.meta.env.VITE_ASSETS_URL}/${data.background}` + + return ( +