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 Stats preview card component #166

Open
wants to merge 3 commits into
base: stats_preview_card_component
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
113 changes: 94 additions & 19 deletions challenges/stats_preview_card_component/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,113 @@
href="../images/favicon-16x16.png"
/>
<link rel="manifest" href="../site.webmanifest" />
<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=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
rel="stylesheet"
/>

<link rel="stylesheet" href="style.css" />
</head>
<body class="m-0">
<body
class="relative flex h-[100vh] w-full flex-col items-center justify-center bg-[#0a0b1c] md:items-center"
>
<div
class="flex h-[100vh] w-full flex-col place-content-center text-center"
class="main_div z-40 mt-0 flex h-[95%] w-full flex-col items-center justify-center p-[20px] pt-0 md:mt-0 md:h-auto md:p-0 md:pt-[20px]"
>
<div>
<div
class="flex h-[100%] w-[90%] flex-col gap-4 rounded-lg bg-[#1c1739] pb-4 md:h-auto md:max-w-4xl md:flex-row md:gap-0 md:pb-0"
>
<div
class="order-2 flex w-[100%] flex-col gap-4 p-2 md:order-1 md:h-[100%] md:w-[50%] md:gap-6 md:p-10"
>
<div
class="font-inter w-[100%] text-center text-2xl font-bold tracking-wide text-white md:text-left md:text-3xl"
>
Get <span class="text-[#a857e1]">insights</span> that help your
business grow.
</div>
<div
class="font-inter w-[100%] text-center text-base font-light text-[#7d7a94] md:text-left md:text-sm"
>
Discover the benefits of data analytics and make better decisions
regarding revenue, customer experience, and overall efficiency.
</div>

<div
class="mt-2 flex w-[100%] flex-col items-center gap-4 text-center md:mt-8 md:flex-row md:gap-2 md:text-left"
>
<div class="flex w-[50%] flex-col gap-2">
<div
class="font-inter text-2xl font-bold text-[white] md:text-xl"
>
10k+
</div>
<div class="font-inter text-[0.8rem] text-[#b9b6f5]">
COMPANIES
</div>
</div>
<div class="flex w-[50%] flex-col gap-2">
<div
class="font-inter text-2xl font-bold text-[white] md:text-xl"
>
314
</div>
<div class="font-inter text-[0.8rem] text-[#b9b6f5]">
TEMPLATES
</div>
</div>
<div class="flex w-[50%] flex-col gap-2">
<div
class="font-inter text-2xl font-bold text-[white] md:text-xl"
>
12M+
</div>
<div class="font-inter text-[0.8rem] text-[#b9b6f5]">QUERIES</div>
</div>
</div>
</div>

<div
class="relative order-1 h-[30%] w-[100%] overflow-hidden rounded-t-lg md:order-2 md:h-[100%] md:w-[50%] md:rounded-r-lg md:rounded-tl-none"
>
<img
src="images/image1.jpg"
alt="Description of image"
class="h-full w-full rounded-t-lg rounded-t-lg object-cover md:rounded-r-lg md:rounded-tl-none"
/>

<div class="absolute inset-0 bg-[#60327f] opacity-70"></div>

<div
class="absolute inset-0 z-10 flex items-center justify-center p-4 text-white"
></div>
</div>
</div>
</div>
<div class="info_div font-inter absolute z-0 ml-8 mt-2 py-3 text-xs">
<p>
<a
class="text-optimum-blue hover:text-optimum-darkblue"
href="https://www.frontendmentor.io/challenges/stats-preview-card-component-8JqbgoU62"
target="_blank"
class="font-bold text-blue-500"
rel="noopener"
href=" https://www.frontendmentor.io/challenges/stats-preview-card-component-8JqbgoU62"
>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/stats_preview_card_component/challenges/stats_preview_card_component"
class="font-bold text-blue-500"
rel="noopener"
href="https://github.com/mbashia/frontend_mentor_challenges/tree/stats_preview_card_component/challenges/stats_preview_card_component"
>Source code</a
>
</div>
</p>
</div>
</body>
</html>
10 changes: 10 additions & 0 deletions challenges/stats_preview_card_component/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ module.exports = {
'optimum-blue': '#009efc',
'optimum-darkblue': '#0389e1',
},
fontFamily: {
inter: ['Inter'],
},
fontWeight: {
extra_light: 200,
light: 500,
regular: 400,
bold: 700,
extra_bold: 800,
},
},
},
plugins: [],
Expand Down
Loading