Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions next/src/components/start/advice/AdviceView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const MainContainer = styled.div`
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
width: 100%;
`;

const InfoCardsContainer = styled.div`
Expand All @@ -61,6 +63,7 @@ const InfoCardsContainer = styled.div`
right: 0;
top:0;
bottom: 30px;


@media ${device.laptop} {
justify-content: space-around;
Expand Down
1 change: 1 addition & 0 deletions next/src/components/start/advice/InfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const Button = styled.button`
font-size: 20px;
height: 40px;


@media ${device.laptop} {
font-size: 16px;
height: 32px;
Expand Down
35 changes: 30 additions & 5 deletions next/src/components/start/connect/ConnectView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import InstagramScreenshot from "../../../../public/assets/csesoc_instagram.png"
import YoutubeScreenshot from "../../../../public/assets/csesoc_youtube.png";
import SpotifyScreenshot from "../../../../public/assets/csesoc_spotify.png";

import { device } from "../../../styles/device";

const MainContainer = styled.div`
display: flex;
flex-direction: column-reverse;
Expand All @@ -40,7 +42,25 @@ const Preview = styled.div`
const SocialIcons = styled.div`
display: flex;
justify-content: center;
gap: 2rem;

gap: 0.5rem;

@media ${device.tablet} {
gap: 2rem;
}


`;

const SocialIconImageContainer = styled.div`
position: relative;
height: 40px;
width: 40px;

@media ${device.tablet} {
height: 60px;
width: 60px;
}
`;

const Button = styled.button<{ active?: boolean }>`
Expand All @@ -50,15 +70,18 @@ const Button = styled.button<{ active?: boolean }>`
background: none;
border: none;
cursor: pointer;
width: 60px;
height: 60px;
border-radius: 100%;
padding: 0.5rem;

${({ active }) =>
active &&
`
box-shadow: 0 0 0 4px var(--primary-purple);
`}

@media ${device.tablet} {
padding: 1rem;
}
`;

const socialIcons = [
Expand All @@ -83,7 +106,7 @@ const socialIcons = [
{
name: "YouTube",
icon: YoutubeLogo,
link: "cseso.cc/youtube",
link: "https://cseso.cc/youtube",
screenshot: YoutubeScreenshot,
},
{
Expand All @@ -102,7 +125,9 @@ export default function ConnectView() {
<SocialIcons>
{socialIcons.map(({ name, icon }) => (
<Button active={name === activeTab} key={name} onClick={() => setActiveTab(name)}>
<Image src={icon.src} alt={name} width={50} height={50} />
<SocialIconImageContainer>
<Image src={icon.src} alt={name} objectFit="cover" layout="fill" />
</SocialIconImageContainer>
</Button>
))}
</SocialIcons>
Expand Down
1 change: 1 addition & 0 deletions next/src/components/start/welcome/WelcomeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const MainContainer = styled.div`
justify-content: center;
align-items: center;
row-gap: 30px;
width: 100%;
`;

const blink = keyframes`
Expand Down