feat(WEB-167): update my pages layout to MVP wireframes

This commit is contained in:
Simon Emanuelsson
2024-04-03 10:48:52 +02:00
parent b78998ad21
commit 8f87d6368c
37 changed files with 467 additions and 398 deletions
@@ -0,0 +1,68 @@
.friend {
align-items: center;
display: flex;
flex-direction: column;
justify-content: center;
}
.level {
color: var(--some-black-color, #000);
/* font-family: var(--ff-biro-script-plus); */
font-size: 2.1rem;
font-weight: 400;
letter-spacing: 4%;
line-height: 3.6rem;
margin: 0;
}
.name {
color: var(--some-black-color, #111);
/* font-family: var(--ff-brandon-text); */
font-size: 2.8rem;
font-weight: 900;
letter-spacing: -3%;
line-height: 2.8rem;
margin: 0;
text-transform: uppercase;
}
.membershipContainer {
align-items: center;
display: flex;
gap: 0.8rem;
}
.membershipId {
color: var(--some-black-color, #1e1e1e);
font-family: var(--ff-fira-mono);
font-size: 1.5rem;
font-weight: 500;
letter-spacing: 6%;
line-height: 1.8rem;
margin: 0;
}
@media screen and (max-width: 950px) {
.friend {
gap: 1.2rem;
}
.level {
transform: translate(-60%, 40%) rotate(-20deg);
}
}
@media screen and (min-width: 950px) {
.friend {
justify-self: flex-end;
}
.image {
margin-bottom: 2.6rem;
margin-top: 1.1rem;
}
.name {
margin-bottom: 1.2rem;
}
}
@@ -0,0 +1,24 @@
import Image from "@/components/Image"
import styles from "./friend.module.css"
import type { FriendProps } from "@/types/components/myPages/friend"
export default function Friend({ user }: FriendProps) {
return (
<section className={styles.friend}>
<p className={styles.level}>Current level:</p>
<Image
alt="Good Friend"
className={styles.image}
height={70}
src="/good-friend.svg"
width={228}
/>
<h3 className={styles.name}>{user.name}</h3>
<div className={styles.membershipContainer}>
<p className={styles.membershipId}>{user.membershipId}</p>
</div>
</section>
)
}