diff --git a/src/common/ButtonBuscarVuelos.jsx b/src/common/ButtonBuscarVuelos.jsx new file mode 100644 index 0000000..b54101c --- /dev/null +++ b/src/common/ButtonBuscarVuelos.jsx @@ -0,0 +1,16 @@ +import "./whitenavbarbutton.css"; +import { Link } from "react-router-dom"; + +const ButtonBuscarVuelos = () => { + return ( +
+ + + +
+ ); +}; + +export default ButtonBuscarVuelos; \ No newline at end of file diff --git a/src/common/ButtonMisVuelos.jsx b/src/common/ButtonMisVuelos.jsx new file mode 100644 index 0000000..8c4c6fc --- /dev/null +++ b/src/common/ButtonMisVuelos.jsx @@ -0,0 +1,16 @@ +import "./whitenavbarbutton.css"; +import { Link } from "react-router-dom"; + +const ButtonMisVuelos = () => { + return ( +
+ + + +
+ ); +}; + +export default ButtonMisVuelos; \ No newline at end of file diff --git a/src/common/ButtonRecomendaciones.jsx b/src/common/ButtonRecomendaciones.jsx new file mode 100644 index 0000000..caf2fb9 --- /dev/null +++ b/src/common/ButtonRecomendaciones.jsx @@ -0,0 +1,16 @@ +import "./whitenavbarbutton.css"; +import { Link } from "react-router-dom"; + +const ButtonRecomendaciones = () => { + return ( +
+ + + +
+ ); +}; + +export default ButtonRecomendaciones; \ No newline at end of file diff --git a/src/common/FlightsBookingButton.jsx b/src/common/FlightsBookingButton.jsx new file mode 100644 index 0000000..4f1ebac --- /dev/null +++ b/src/common/FlightsBookingButton.jsx @@ -0,0 +1,16 @@ +import "./flightsbookingbutton.css"; +import { Link } from "react-router-dom"; + +const FlightsBookingButton = () => { + return ( +
+ + + +
+ ); +}; + +export default FlightsBookingButton; diff --git a/src/common/LoginButton.jsx b/src/common/LoginButton.jsx index 21d99be..e45b7ff 100644 --- a/src/common/LoginButton.jsx +++ b/src/common/LoginButton.jsx @@ -6,8 +6,14 @@ const LoginButton = () => { if (!isAuthenticated) { return (
-
); diff --git a/src/common/LogoutButton.jsx b/src/common/LogoutButton.jsx index fdc19be..8695532 100644 --- a/src/common/LogoutButton.jsx +++ b/src/common/LogoutButton.jsx @@ -1,4 +1,4 @@ -import "../common/button.css"; +import "./whitenavbarbutton.css"; import { useAuth0 } from "@auth0/auth0-react"; import { Link } from "react-router-dom"; @@ -11,16 +11,20 @@ const LogoutButton = () => { if (isAuthenticated) { return ( - <> - -
- + ); } }; export default LogoutButton; + + + + diff --git a/src/common/flightsbookingbutton.css b/src/common/flightsbookingbutton.css new file mode 100644 index 0000000..257bfe2 --- /dev/null +++ b/src/common/flightsbookingbutton.css @@ -0,0 +1,47 @@ +.btnfb { + width: 180px; + height: 43px; + border: none; + transition: all 0.5s ease-in-out; + font-size: 18px; + font-family: "League Spartan"; + font-weight: bold; + display: flex; + align-items: center; + background: #040f16; + color: #f5f5f5; + } + + .btnfb:hover { + box-shadow: 0 0 20px 0px #2e2e2e3a; + } + + .btnfb .text-fb { + transform: translateX(10px); + margin-top: 5px; + transition: all 0.5s ease-in-out; + } + + .btnfb:hover .text-fb { + transition: all 0.5s; + transform: translateX(10px) scale(1.05); + } + + .btnfb:focus { + outline: none; + } + + + .btnfb-link { + text-decoration: none; + color: inherit; + } + + .btnfb-link:link, + .btnfb-link:visited, + .btnfb-link:hover, + .btnfb-link:active { + text-decoration: none; + color: inherit; + } + \ No newline at end of file diff --git a/src/common/loginbutton.css b/src/common/loginbutton.css index 338f9f9..a9ff503 100644 --- a/src/common/loginbutton.css +++ b/src/common/loginbutton.css @@ -17,4 +17,57 @@ .login-button:hover { background-color: #84b6f4; +} + + + + +.btn { + width: 180px; + height: 43px; + border: none; + transition: all 0.5s ease-in-out; + font-size: 19px; + font-family: "League Spartan"; + font-weight: bold; + display: flex; + align-items: center; + background: #040f16; + color: #f5f5f5; +} + +.btn:hover { + box-shadow: 0 0 20px 0px #2e2e2e3a; +} + +.btn .icon { + position: absolute; + height: 40px; + width: 40px; + display: flex; + justify-content: center; + align-items: center; + transition: all 0.5s; +} + +.btn .text { + transform: translateX(45px); + margin-top: 4px +} + +.btn:hover .icon { + width: 175px; +} + +.btn:hover .text { + transition: all 0.5s; + opacity: 0; +} + +.btn:focus { + outline: none; +} + +.btn:active .icon { + transform: scale(0.85); } \ No newline at end of file diff --git a/src/common/navbar.css b/src/common/navbar.css index 0891958..d96eaea 100644 --- a/src/common/navbar.css +++ b/src/common/navbar.css @@ -9,6 +9,7 @@ body, } .navbar { + height: 42px; list-style-type: none; margin: 0; padding: 0; @@ -17,7 +18,7 @@ body, position: fixed; top: 0; width: 100%; - border-bottom: 2px solid #000035; + border-bottom: 1px solid #000035; z-index: 1000; } diff --git a/src/common/navbar.jsx b/src/common/navbar.jsx index 56f05d3..503f0b1 100644 --- a/src/common/navbar.jsx +++ b/src/common/navbar.jsx @@ -3,6 +3,10 @@ import { Link } from "react-router-dom"; import LoginButton from "./LoginButton"; import LogoutButton from "./LogoutButton"; import { useAuth0 } from "@auth0/auth0-react"; +import FlightsBookingButton from "./FlightsBookingButton"; +import ButtonBuscarVuelos from "./ButtonBuscarVuelos"; +import ButtonRecomendaciones from "./ButtonRecomendaciones"; +import ButtonMisVuelos from "./ButtonMisVuelos"; function Navbar() { const { isAuthenticated, user } = useAuth0(); @@ -13,28 +17,20 @@ function Navbar() { return (