Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat. initial mock up #25

Open
wants to merge 2 commits into
base: petit-project/team3
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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: 2 additions & 1 deletion PetitProjects/Team3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"framer-motion": "^6.3.10",
"jsdom": "^19.0.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
"react-dom": "^18.0.0",
"react-icons": "^4.4.0"
},
"devDependencies": {
"@babel/core": "^7.18.2",
Expand Down
104 changes: 104 additions & 0 deletions PetitProjects/Team3/src/pages/G0.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
import { styled, keyframes } from '@stitches/react';
import { motion } from 'framer-motion';
import { BsGithub, BsLinkedin, BsInstagram } from 'react-icons/bs';

const G0 = () => {
return (
<Wrapper>
<Card
animate={{
y: [0, 25, 0],
rotate: [-15, -15, -15],
}}
transition={{
duration: 2,
ease: 'easeInOut',
repeat: Infinity,
}}
>
<h1>G0</h1>
<p>
<span>Aesthetic</span> Web Frontend Developer
</p>
<ul>
<li>
<BsLinkedin />
</li>
<li>
<BsGithub />
</li>
<li>
<BsInstagram />
</li>
</ul>
</Card>
</Wrapper>
);
};

const gradient = keyframes({
'0%': {
backgroundPosition: '0% 50%',
},
'50%': {
backgroundPosition: '100% 50%',
},
'100%': {
backgroundPosition: '0% 50%',
},
});

const Wrapper = styled('div', {
height: '100%',
width: '100%',
background: 'linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab)',
backgroundSize: '400% 400%',
animation: `${gradient} 15s ease infinite`,
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
});

const Card = styled(motion.div, {
padding: '2rem 3rem',
background: 'rgba( 255, 255, 255, 0.25 )',
boxShadow: 'rgba(17, 12, 46, 0.15) 0px 48px 100px 0px',
backdropFilter: 'blur( 13.5px )',
borderRadius: '20px',
border: '1px solid rgba( 255, 255, 255, 0.18 )',

textAlign: 'center',
color: 'white',

'& h1': {
fontSize: '3rem',
marginBottom: '0',
},

'& p': {
fontSize: '1.75rem',
margin: 0,
padding: '0.75rem 0 1.5rem',
},

'& span': {
color: '#233165',
fontWeight: 700,
},

'& ul': {
listStyle: 'none',
fontSize: '2.25rem',
display: 'flex',
alignItems: 'center',
justifyContent: 'space-around',
padding: '0',
},

'& li:hover': {
opacity: '0.7',
cursor: 'pointer',
},
});

export default G0;
5 changes: 5 additions & 0 deletions PetitProjects/Team3/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8852,6 +8852,11 @@ react-element-to-jsx-string@^14.3.4:
is-plain-object "5.0.0"
react-is "17.0.2"

react-icons@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.4.0.tgz#a13a8a20c254854e1ec9aecef28a95cdf24ef703"
integrity sha512-fSbvHeVYo/B5/L4VhB7sBA1i2tS8MkT0Hb9t2H1AVPkwGfVHLJCqyr2Py9dKMxsyM63Eng1GkdZfbWj+Fmv8Rg==

react-inspector@^5.1.0:
version "5.1.1"
resolved "https://registry.yarnpkg.com/react-inspector/-/react-inspector-5.1.1.tgz#58476c78fde05d5055646ed8ec02030af42953c8"
Expand Down