Skip to content

Commit

Permalink
Added label web under test
Browse files Browse the repository at this point in the history
  • Loading branch information
alex0rpi committed Jun 8, 2024
1 parent 5c40a73 commit 7cdbc9c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
9 changes: 9 additions & 0 deletions client/src/components/UI-components/LabelUnderTesting.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const LabelUnderTesting = () => {
return (
<div className='rounded-full bg-yellow-900 p-1'>
<p className='text-yellow-400'>🚧 Web en proves 🏗️</p>
</div>
);
};

export default LabelUnderTesting;
4 changes: 3 additions & 1 deletion client/src/components/navigation/NavigationBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ const NavigationBar = () => {
</motion.div>

{/* Espacio vacío */}
<div className='flex-grow md:hidden'></div>
<div className='flex-grow md:hidden flex items-center justify-center'>
<p className='text-yellow-400 text-sm'>🚧Web en proves🏗️</p>
</div>

{/* Botón de hamburguesa */}
{!show && (
Expand Down
2 changes: 2 additions & 0 deletions client/src/pages/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
import { fotos } from '../assets/carouselPictures';
import { ScrollTopBtn, ImageSlider, Spinner } from '../components/UI-components';
import { useMediaQuery } from 'react-responsive';
import LabelUnderTesting from '../components/UI-components/LabelUnderTesting';

const HomePage = () => {
const BookFeatures = lazy(() =>
Expand Down Expand Up @@ -63,6 +64,7 @@ const HomePage = () => {
return (
<>
<div id="association"><HeaderTitle /></div>
{isMdScreenOrLarger && <div className="fixed top-0 right-0 z-50"><LabelUnderTesting/></div>}
<ImageSlider pictures={fotos} />
<Association />
<PresidentGreet id="presidentGreeting" />
Expand Down
7 changes: 7 additions & 0 deletions client/src/pages/SeasonPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
import { seasonInfos as chapters } from '../data/SeasonInfos';
import { seasonFotos } from '../assets/seasonPictures';
import { useMediaQuery } from 'react-responsive';
import LabelUnderTesting from '../components/UI-components/LabelUnderTesting';

const SeasonPage = () => {
const isMdScreenOrLarger = useMediaQuery({ minWidth: 768 });
Expand Down Expand Up @@ -100,6 +101,12 @@ const SeasonPage = () => {
return (
<div id='proArticle'>
<HeaderTitle />
{isMdScreenOrLarger && (
<div className='fixed top-0 right-0 z-50'>
<LabelUnderTesting />
</div>
)}

<div className='flex justify-center items-center mt-2'>
{chapters?.map((chapter, index) => (
<BadgeClickable
Expand Down

0 comments on commit 7cdbc9c

Please sign in to comment.