diff --git a/src/components/City/City.css b/src/components/City/City.css index 62ceb0e..908d5d0 100644 --- a/src/components/City/City.css +++ b/src/components/City/City.css @@ -1,32 +1,46 @@ -.button-container { - display: flex; - flex-direction: column; - gap: 10px; - opacity: 0; - transform: translateY(20px); - transition: opacity 0.5s ease, transform 0.5s ease; - } - - .animated-button { - width: 304px; - height: 54px; - border-radius: 27px; - border: none; - font-family: 'Raleway'; - font-weight: bold; - color: #FFFFFF; - background-color: #46A2E3; - transition: background-color 0.3s ease; - } - - .animated-button:hover { - background-color: #357ABF; - } - - .button-container.visible { - opacity: 1; - transform: translateY(0); - } +/* .button-container { + display: flex; + flex-direction: column; + gap: 10px; + opacity: 0; + transform: translateY(20px); + transition: opacity 0.5s ease, transform 0.5s ease; +} */ - - \ No newline at end of file +.animated-button { + width: 304px; + height: 54px; + font-size: 20px; + border-radius: 27px; + border: none; + background-color: #46A2E3; + font-family: 'Raleway'; + color: #FFFFFF; + font-weight: 97px; +} + +.animated-button:hover { + background-color: #398ac5; +} + +.ab { + width: 304px; + height: 54px; + font-size: 20px; + border-radius: 27px; + border: none; + background-color: white; + font-family: 'Raleway'; + color: #398ac5; + font-weight: 97px; +} + +.ab:hover { + background-color: #f8f8f8; +} + + +/* .button-container.visible { + opacity: 1; + transform: translateY(0); +} */ \ No newline at end of file diff --git a/src/components/City/City.js b/src/components/City/City.js index d3d90e4..2594065 100644 --- a/src/components/City/City.js +++ b/src/components/City/City.js @@ -1,5 +1,6 @@ import React, { useEffect, useState } from "react"; import axios from "axios"; +import './City.css' const City = (props) => { const route = props.getValue; @@ -72,7 +73,7 @@ const City = (props) => { justifyContent: 'center', width: 304, }}> - @@ -81,16 +82,17 @@ const City = (props) => { fontWeight: 700, fontSize: 30, color: '#000' - }}>Выберите город - cityHandler(e)} value={selectedCity} id="city" name="city" style={{ + }}> + cityHandler(e)} placeholder="Выберите город..." value={selectedCity} id="city" name="city" style={{ height: 40, width: 304, borderRadius: '20px', + border: 'none', padding: '5px', }}> Select a city + }}>Выберите город... {filteredCityOptions.map(option => ( { gap: 10, }}> { route('/second') setUserData({selectedCity: selectedCity}); console.log(selectedCity); }} - className="animated-button" - style={{ - width: 304, - height: 54, - borderRadius: 27, - border: 'none', - backgroundColor: '#46A2E3', - fontFamily: 'Raleway', - color: '#FFFFFF', - fontWeight: '97px', - }} > Я в этом городе window.open('https://www.aviasales.ru/?marker=15468.ydof241309826304&yclid=18373991699987824639¶ms=TGK1')} - className="animated-button" style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', - width: 304, height: 42, - borderRadius: 27, border: 'none', - backgroundColor: '#fff', - fontFamily: 'Raleway', - color: '#0C78FE', - fontWeight: '97px', }} > { }; return ( + {cardInfo.map((card) => ( @@ -60,8 +68,7 @@ const Tinder = (props) => { display: 'flex', flexDirection: 'column', paddingTop: '10px', - }} - > + }}> { height: '150px', width: '100%', }}> - {card.question} + {card.question} { marginRight: '3px', }}> { }} onClick={() => handleDislike(card.id)} > - handleDislike(card.id)}/> { }} onClick={() => handleLike(card.id)} > - handleLike(card.id)}/> @@ -121,6 +130,7 @@ const Tinder = (props) => { ))} + ); }