Skip to content

Commit

Permalink
improve responsive styles
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlanglen committed Nov 6, 2023
1 parent 7a92796 commit c9af2d7
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 24 deletions.
1 change: 1 addition & 0 deletions apps/potlock/widget/Project/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Container = styled.div`
flex-direction: column;
gap: 48px;
// width: 100%;
// background: yellow;
`;

const Header = styled.div`
Expand Down
3 changes: 2 additions & 1 deletion apps/potlock/widget/Project/BannerHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ImageContainer = styled.div`
@media screen and (max-width: 768px) {
// transform: translateY(248px);
transform: ${(props) => `translateY(${props.profileImageTranslateYPx || 248}px);`}
transform: ${(props) => `translateY(${props.profileImageTranslateYPxMobile || 248}px);`}
width: 64px;
height: 64px;
Expand All @@ -68,6 +68,7 @@ return (
<ImageContainer
className="profile-picture d-inline-block"
profileImageTranslateYPx={props.profileImageTranslateYPx}
profileImageTranslateYPxMobile={props.profileImageTranslateYPxMobile}
>
<Widget
src="mob.near/widget/ProfileImage"
Expand Down
1 change: 1 addition & 0 deletions apps/potlock/widget/Project/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const BodyContainer = styled.div`
align-items: flex-start;
justify-content: flex-start;
gap: 48px;
// background: red;
// @media screen and (max-width: 768px) {
// width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion apps/potlock/widget/Project/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Card = styled.a`
const Info = styled.div`
display: flex;
flex-direction: column;
margin-top: 160px;
margin-top: 110px;
padding: 16px 24px;
gap: 16px;
flex: 1;
Expand Down Expand Up @@ -115,6 +115,7 @@ return (
projectId: id,
profile,
profileImageTranslateYPx: 106,
profileImageTranslateYPxMobile: 122,
containerStyle: {
paddingLeft: "16px",
},
Expand Down
1 change: 1 addition & 0 deletions apps/potlock/widget/Project/Detail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const Container = styled.div`
const BodyContainer = styled.div`
// display: flex;
// flex: 1;
// background: pink;
// @media screen and (min-width: 768px) {
// // display: flex;
Expand Down
20 changes: 10 additions & 10 deletions apps/potlock/widget/Project/Team.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ const Col2 = styled.div`
}
`;

props.team = [
"plugrel.near",
"kurodenjiro.near",
"lachlan.near",
"root.near",
"plugrel.near",
"kurodenjiro.near",
"lachlan.near",
"root.near",
];
// props.team = [
// "plugrel.near",
// "kurodenjiro.near",
// "lachlan.near",
// "root.near",
// "plugrel.near",
// "kurodenjiro.near",
// "lachlan.near",
// "root.near",
// ];

return (
<Container>
Expand Down
1 change: 1 addition & 0 deletions build/potlock/src/Project/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const Container = styled.div`
flex-direction: column;
gap: 48px;
// width: 100%;
// background: yellow;
`;

const Header = styled.div`
Expand Down
3 changes: 2 additions & 1 deletion build/potlock/src/Project/BannerHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ImageContainer = styled.div`
@media screen and (max-width: 768px) {
// transform: translateY(248px);
transform: ${(props) => `translateY(${props.profileImageTranslateYPx || 248}px);`}
transform: ${(props) => `translateY(${props.profileImageTranslateYPxMobile || 248}px);`}
width: 64px;
height: 64px;
Expand All @@ -68,6 +68,7 @@ return (
<ImageContainer
className="profile-picture d-inline-block"
profileImageTranslateYPx={props.profileImageTranslateYPx}
profileImageTranslateYPxMobile={props.profileImageTranslateYPxMobile}
>
<Widget
src="mob.near/widget/ProfileImage"
Expand Down
1 change: 1 addition & 0 deletions build/potlock/src/Project/Body.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const BodyContainer = styled.div`
align-items: flex-start;
justify-content: flex-start;
gap: 48px;
// background: red;
// @media screen and (max-width: 768px) {
// width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion build/potlock/src/Project/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Card = styled.a`
const Info = styled.div`
display: flex;
flex-direction: column;
margin-top: 160px;
margin-top: 110px;
padding: 16px 24px;
gap: 16px;
flex: 1;
Expand Down Expand Up @@ -115,6 +115,7 @@ return (
projectId: id,
profile,
profileImageTranslateYPx: 106,
profileImageTranslateYPxMobile: 122,
containerStyle: {
paddingLeft: "16px",
},
Expand Down
1 change: 1 addition & 0 deletions build/potlock/src/Project/Detail.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const Container = styled.div`
const BodyContainer = styled.div`
// display: flex;
// flex: 1;
// background: pink;
// @media screen and (min-width: 768px) {
// // display: flex;
Expand Down
20 changes: 10 additions & 10 deletions build/potlock/src/Project/Team.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ const Col2 = styled.div`
}
`;

props.team = [
"plugrel.near",
"kurodenjiro.near",
"lachlan.near",
"root.near",
"plugrel.near",
"kurodenjiro.near",
"lachlan.near",
"root.near",
];
// props.team = [
// "plugrel.near",
// "kurodenjiro.near",
// "lachlan.near",
// "root.near",
// "plugrel.near",
// "kurodenjiro.near",
// "lachlan.near",
// "root.near",
// ];

return (
<Container>
Expand Down

0 comments on commit c9af2d7

Please sign in to comment.