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

complete profile card component #167

Open
wants to merge 17 commits into
base: profile_card_component
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
npm run test

- name: Save screenshots
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
almirsarajcic marked this conversation as resolved.
Show resolved Hide resolved
if: ${{ always() }}
with:
name: screenshots
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
116 changes: 97 additions & 19 deletions challenges/profile_card_component/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,115 @@
/>
<link rel="manifest" href="../site.webmanifest" />
<link rel="stylesheet" href="style.css" />

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Kumbh+Sans:[email protected]&display=swap"
rel="stylesheet"
/>
</head>
<body class="m-0">
<body
class="bg-pattern-top-bottom bg-custom-top-bottom bg-[#339fb0] bg-no-repeat"
>
<div
class="flex h-[100vh] w-screen items-center justify-evenly p-0 md:w-full md:justify-center md:p-3"
>
<div
class="card-div flex max-h-[80%] min-h-[40%] min-w-[330px] flex-col rounded-lg shadow-2xl md:max-h-[85%] md:min-h-[40%] md:min-w-[360px]"
>
<div
class="bg-card-pattern h-36 rounded-t-2xl bg-cover bg-no-repeat"
></div>
<div class="flex h-auto w-[100%] flex-col rounded-b-2xl bg-white">
<div class="flex w-[100%] flex-col items-center gap-4">
<img
src="images/image-victor.jpg"
class="-mt-12 h-24 w-24 rounded-full border-4 border-[white] object-scale-down outline-none md:border-[5px]"
alt="victor"
/>
<div class="font-kumbh flex flex-col gap-1 text-center">
<div class="flex gap-2">
<span class="text-dark-desaturated-blue text-[18px] font-bold"
>Victor Crest</span
><span
class="text-dark-grayish-blue font-kumbh text-[18px] font-normal"
>
26</span
>
</div>
<span class="font-regular text-dark-grayish-blue">London</span>
</div>

<div
class="flex w-[100%] flex-row items-center justify-evenly border-t py-6"
>
<div class="flex flex-col items-center gap-[2px]">
<div
class="font-kumbh text-dark-desaturated-blue text-[18px] font-bold"
>
80K
</div>
<div
class="font-kumbh font-regular text-dark-grayish-blue text-center text-[10px] tracking-widest md:text-[12px]"
>
Followers
</div>
</div>
<div class="flex flex-col items-center gap-[2px]">
<div
class="font-kumbh text-dark-desaturated-blue text-[18px] font-bold"
>
803K
</div>
<div
class="font-kumbh font-regular text-dark-grayish-blue text-center text-[10px] tracking-widest md:text-[12px]"
>
Likes
</div>
</div>
<div class="flex flex-col items-center gap-[2px]">
<div
class="font-kumbh text-dark-desaturated-blue text-[18px] font-bold"
>
1.4K
</div>
<div
class="font-kumbh font-regular text-dark-grayish-blue text-center text-[10px] tracking-widest md:text-[12px]"
>
Photos
</div>
</div>
</div>
</div>
</div>
</div>
</div>

<div
class="flex h-[100vh] w-full flex-col place-content-center text-center"
class="font-kumbh ml-8 flex flex-col items-center justify-center py-3 text-xs"
>
<div>
<p>
<a
class="text-optimum-blue hover:text-optimum-darkblue"
href="https://www.frontendmentor.io/challenges/profile-card-component-cfArpWshJ"
target="_blank"
class="font-bold text-blue-500"
rel="noopener"
href=" https://www.frontendmentor.io/challenges/profile-card-component-cfArpWshJ"
>Frontend Mentor challenge</a
>
</div>
<div>
for
<a
class="text-optimum-blue hover:text-optimum-darkblue"
href="https://github.com/optimumBA"
target="_blank"
<a class="font-bold text-blue-500" href="https://github.com/optimumBA"
>Optimum BH</a
>
Internship.
</div>

<div class="mt-3">
Internship
</p>
<p class="text-center underline">
<a
class="text-optimum-blue hover:text-optimum-darkblue"
href="https://github.com/optimumBA/frontend_mentor_challenges/tree/profile_card_component/challenges/profile_card_component"
class="font-bold text-blue-500"
rel="noopener"
href="https://github.com/mbashia/frontend_mentor_challenges/tree/profile_card_component/challenges/profile_card_component"
>Source code</a
>
</div>
</p>
</div>
</body>
</html>
23 changes: 23 additions & 0 deletions challenges/profile_card_component/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,29 @@ module.exports = {
colors: {
'optimum-blue': '#009efc',
'optimum-darkblue': '#0389e1',
'optimum-blue': '#009efc',
'optimum-darkblue': '#0389e1',
'dark-cyan': 'hsl(185, 75%, 39%)',
'dark-desaturated-blue': 'hsl(229, 23%, 23%)',
'dark-grayish-blue': 'hsl(227, 10%, 46%)',
'dark-gray': 'hsl(0, 0%, 59%)',
},
fontFamily: {
kumbh: ['Kumbh Sans', 'sans-serif'],
},
fontWeight: {
regular: 400,
normal: 500,
bold: 700,
},
backgroundImage: {
'pattern-top-bottom':
"url('images/bg-pattern-top.svg'), url('images/bg-pattern-bottom.svg')",
'card-pattern': "url('images/bg-pattern-card.svg')",
'top-pattern': "url('images/bg-pattern-top.svg')",
},
backgroundPosition: {
'custom-top-bottom': 'right 48vw bottom 40vh, left 53vw top 40vh',
},
},
},
Expand Down
Loading