Skip to content

Commit

Permalink
better code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jnnchi committed Jul 23, 2024
1 parent 1bcbe60 commit abc9cf7
Showing 5 changed files with 11 additions and 12 deletions.
9 changes: 4 additions & 5 deletions src/components/past-projects/index.styles.tsx
Original file line number Diff line number Diff line change
@@ -46,12 +46,11 @@ const Column = styled.div<MobileProps>`
height: ${(props) => (props.mobile ? "170px" : "")};
width: 100%;
box-sizing: border-box;
&:not(:last-child) {
margin-right: 1.5%;
margin-bottom: ${(props) => (props.mobile ? "1.5rem" : "")};
}
`;

// Style for individual project item links
@@ -102,7 +101,8 @@ const SubtitleBox = styled.div<MobileProps>`
box-shadow: 0px 4px 0px 0px #282828;
color: #000;
padding: ${(props) => (props.mobile ? "10px 5px 10px 5px" : "20px 15px 20px 15px")};
padding: ${(props) =>
props.mobile ? "10px 5px 10px 5px" : "20px 15px 20px 15px"};
z-index: 1;
`;

@@ -112,7 +112,6 @@ const SubtitleLink = styled.a`
color: inherit;
`;


const Tier1 = styled.div`
display: flex;
justify-content: space-between;
@@ -161,4 +160,4 @@ export {
StyledInterSemiBold,
StyledDecalImage,
SubtitleLink,
};
};
2 changes: 1 addition & 1 deletion src/components/past-projects/index.tsx
Original file line number Diff line number Diff line change
@@ -75,7 +75,7 @@ const PastProjects: React.FC = () => {
</Row>
<Row mobile={isMobile}>
{projectData.tier2.map((s, index) => (
<Column key={index} thirdRow mobile={isMobile}>
<Column key={index} mobile={isMobile}>
<Project
href={s.url}
src={s.img}
6 changes: 3 additions & 3 deletions src/components/past-projects/project-data.tsx
Original file line number Diff line number Diff line change
@@ -5,8 +5,8 @@ import BasicWeb from "public/assets/past-projects/BasicWeb.svg";
import Memomi from "public/assets/past-projects/Memomi.svg";
import IMissYou from "public/assets/past-projects/IMissYou.svg";
import BackToTheMarket from "public/assets/past-projects/BackToTheMarket.svg";
import Star1 from 'public/assets/past-projects/Star1st.svg';
import Star2 from 'public/assets/past-projects/Star2nd.svg';
import Star1 from "public/assets/past-projects/Star1st.svg";
import Star2 from "public/assets/past-projects/Star2nd.svg";

// Define project data
export const projectData = {
@@ -56,5 +56,5 @@ export const projectData = {
isSpecial: false,
description: "Winner Co:Here",
},
]
],
};
4 changes: 2 additions & 2 deletions src/modules/past-projects/index.styles.tsx
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import styled from "styled-components";
import Subjectivity from "@/components/subjectivity";

type MobileProps = {
mobile?: boolean;
mobile?: boolean | null;
};

const Container = styled.div`
@@ -12,7 +12,7 @@ const Container = styled.div`
justify-content: center;
align-items: center;
padding-left: 2rem;
padding-right: 2rem;
padding-right: 2rem;
`;

const ProjectsContainer = styled.div`
2 changes: 1 addition & 1 deletion src/modules/past-projects/index.tsx
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import {
Container,
ProjectsContainer,
StyledSubjectivity,
StarImage
StarImage,
} from "./index.styles";
import PastProjects from "@/components/past-projects";
import Star from "public/assets/past-projects/Star5Point.svg";

0 comments on commit abc9cf7

Please sign in to comment.