diff --git a/public/IMG_6219.jpeg b/public/IMG_6219.jpeg new file mode 100644 index 0000000..2d3b363 Binary files /dev/null and b/public/IMG_6219.jpeg differ diff --git a/src/app/components/Hero.tsx b/src/app/components/Hero.tsx index eefefca..16605e3 100644 --- a/src/app/components/Hero.tsx +++ b/src/app/components/Hero.tsx @@ -2,31 +2,51 @@ import styled from "styled-components"; import { MobileBreakpoint, MobileTitleXL, - SpacingL, SpacingM, SpacingXXL, TitleXL, + Primary300, } from "@/app/genericComponents/tokens"; import { hero_data } from "@data/hero_data"; import { PrimaryButton } from "@/app/genericComponents/General"; const Container = styled.div` - margin: ${SpacingL} auto; + position: relative; + margin-top: 5%; + margin-right: 10%; + margin-left: 10%; padding: ${SpacingXXL}; - background-image: url("/hackupcLogo.svg"); - background-repeat: no-repeat; - background-position: center; - background-size: contain; + border-radius: 20px; + border: 0.3333rem solid ${Primary300}; + overflow: hidden; @media (max-width: ${MobileBreakpoint}) { padding: ${SpacingM}; } + + &::before { + content: ""; + position: absolute; + inset: 0; + background-image: url("/IMG_6219.jpeg"); + background-position: center 60%; + background-size: cover; + opacity: 0.3; + z-index: 0; + } + + > * { + position: relative; + z-index: 1; + } `; const Title = styled.h1` text-align: center; font-size: ${TitleXL}; background: transparent; + color: #ffffff; + text-shadow: 0 2px 6px rgba(0, 0, 0, 0); @media (max-width: ${MobileBreakpoint}) { font-size: ${MobileTitleXL}; diff --git a/src/app/components/Socials.tsx b/src/app/components/Socials.tsx index c61fbb2..44faace 100644 --- a/src/app/components/Socials.tsx +++ b/src/app/components/Socials.tsx @@ -12,10 +12,17 @@ import { SpacingS, SpacingXS, TitleM, + Primary300, } from "@/app/genericComponents/tokens"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faUpRightFromSquare } from "@fortawesome/free-solid-svg-icons"; +const BorderedSection = styled(SectionContainer)` + border-radius: 10px; + border: 0.3333rem solid ${Primary300}; + padding: ${SpacingM}; +`; + const HeaderSocials = styled.a` font-size: ${TitleM}; font-weight: bold; @@ -56,9 +63,10 @@ const SocialItem = styled.div` export default function Socials() { return ( - + {socials_data.title} {socials_data.description} + HackUPC + {socials_data.socialsHackUPC.map((social) => ( @@ -81,6 +90,7 @@ export default function Socials() { ))} + Hackers@UPC{" "} + {socials_data.socialsHackersUPC.map((social) => ( @@ -103,6 +114,6 @@ export default function Socials() { ))} - + ); } diff --git a/src/app/data/socials_data.ts b/src/app/data/socials_data.ts index 2a598f5..ed17cfe 100644 --- a/src/app/data/socials_data.ts +++ b/src/app/data/socials_data.ts @@ -84,9 +84,9 @@ const listSocialsHackersUPC: SocialsItem[] = [ ]; export const socials_data: Socials = { - title: "Estigues atent i no et perdis res!", + title: "Estem en contacte!", description: - "Si tens qualsevol dubte o pregunta, contacta amb nosaltres a través de qualsevol xarxa social!", + "Si tens qualsevol dubte o pregunta, contacta amb nosaltres a través de qualsevol xarxa social.", socialsHackUPC: listSocialsHackUPC, socialsHackersUPC: listSocialsHackersUPC, }; diff --git a/src/app/genericComponents/DepartmentInfoCard.tsx b/src/app/genericComponents/DepartmentInfoCard.tsx index 5943ae9..875f8ac 100644 --- a/src/app/genericComponents/DepartmentInfoCard.tsx +++ b/src/app/genericComponents/DepartmentInfoCard.tsx @@ -6,7 +6,7 @@ import { BodyTextMedium, MobileBreakpoint, Primary100, - Primary200, + QuestionBoxBackgroundColor, SpacingS, SpacingXS, TitleS, @@ -57,7 +57,7 @@ const Answer = styled.p<{ isVisible: boolean }>` const QuestionBox = styled.div` border-radius: ${SpacingS}; - background-color: ${Primary200}; + background-color: ${QuestionBoxBackgroundColor}; padding: ${SpacingS}; cursor: pointer; diff --git a/src/app/genericComponents/EmblaCarousel.tsx b/src/app/genericComponents/EmblaCarousel.tsx index fcb9df3..8fc2a19 100644 --- a/src/app/genericComponents/EmblaCarousel.tsx +++ b/src/app/genericComponents/EmblaCarousel.tsx @@ -8,6 +8,7 @@ import { } from "./EmblaCarouselArrowButtons"; import useEmblaCarousel from "embla-carousel-react"; import { ImageInformation } from "@data/interfaces"; +import Image from "next/image"; type PropType = { slides: ImageInformation[]; @@ -32,9 +33,12 @@ const EmblaCarousel: React.FC = (props) => { {slides.map((index) => (
- {index.alt}
diff --git a/src/app/genericComponents/tokens.ts b/src/app/genericComponents/tokens.ts index ab9f0fd..e8c6cc3 100644 --- a/src/app/genericComponents/tokens.ts +++ b/src/app/genericComponents/tokens.ts @@ -36,7 +36,8 @@ export const Neutral300: string = "#88A7B7"; export const Neutral200: string = "#EAF7FF"; export const Neutral100: string = "#F9FDFF"; -export const BackgroundAccent: string = "#1f2424"; +export const BackgroundAccent: string = "#1d1e3b"; +export const QuestionBoxBackgroundColor: string = "#304697"; // Responsive breakpoints export const MobilePixels: number = 640; diff --git a/src/app/globals.css b/src/app/globals.css index 86ef225..e5797a0 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,3 +1,9 @@ +:root { + --body-color: #1c1e3b; + --webkit-tap-highlight-color: rgba(255, 255, 255, 0.5); + --embla-button-disabled-color: rgb(255, 255, 255); +} + * { box-sizing: border-box; padding: 0; @@ -9,7 +15,7 @@ html, body { max-width: 100vw; overflow-x: hidden; /* Prevents horizontal scrollbar */ - background-color: #181c19; + background-color: var(--body-color); } .embla { @@ -58,7 +64,7 @@ body { align-items: center; } .embla__button { - -webkit-tap-highlight-color: rgba(49, 49, 49, 0.5); + -webkit-tap-highlight-color: var(--webkit-tap-highlight-color); -webkit-appearance: none; appearance: none; background-color: transparent; @@ -79,7 +85,7 @@ body { justify-content: center; } .embla__button:disabled { - color: rgb(192, 192, 192); + color: var(--embla-button-disabled-color); } .embla__button__svg { width: 35%;