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 order summary component #168

Open
wants to merge 9 commits into
base: order_summary_component
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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.
1 change: 1 addition & 0 deletions challenges/order_summary_component/images/icon-music.svg
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.
104 changes: 86 additions & 18 deletions challenges/order_summary_component/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,37 +27,105 @@
/>
<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=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap"
rel="stylesheet"
/>
</head>
<body class="m-0">
<body class="bg-[#e1e7ff]">
<div
class="flex h-[100vh] w-full flex-col place-content-center text-center"
class="bg-mobile-pattern md:bg-bottom-pattern flex h-[100vh] w-full items-center justify-center md:bg-[length:100%_auto] md:bg-repeat-x"
>
<div>
<div
class="md:shadow-bright-blue/20 flex max-w-xs flex-col rounded-2xl shadow-2xl md:max-w-sm md:shadow-xl"
>
<div class="bg-illustration h-48 rounded-t-2xl"></div>
<div
class="flex w-[100%] flex-col items-center gap-4 rounded-b-2xl bg-white p-8"
>
<div class="font-red_hat font-extra_bold text-dark-blue text-xl">
Order Summary
</div>
<div
class="font-red_hat text-desaturated-blue text-center font-light"
>
You can now listen to millions of songs, audiobooks, and podcasts on
any device anywhere you like!
</div>
<div class="flex w-[100%] justify-center rounded-lg bg-[#f8f9fe] p-3">
<div class="flex w-[60%] gap-4">
<div
class="flex h-12 w-12 items-center justify-center rounded-full bg-[#e3e6ff]"
>
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48">
<g fill="none" fill-rule="evenodd">
<circle cx="24" cy="24" r="24" fill="#DFE6FB" />
<path
fill="#717FA6"
fill-rule="nonzero"
d="M32.574 15.198a.81.81 0 00-.646-.19L20.581 16.63a.81.81 0 00-.696.803V26.934a3.232 3.232 0 00-1.632-.44A3.257 3.257 0 0015 29.747 3.257 3.257 0 0018.253 33a3.257 3.257 0 003.253-3.253v-8.37l9.726-1.39v5.327a3.232 3.232 0 00-1.631-.441 3.257 3.257 0 00-3.254 3.253 3.257 3.257 0 003.254 3.253 3.257 3.257 0 003.253-3.253V15.81a.81.81 0 00-.28-.613z"
/>
</g>
</svg>
</div>
<div class="flex flex-col">
<span
class="font-red_hat text-dark-blue text-sm font-bold md:text-base"
>Annual Plan</span
>
<span class="font-red_hat text-desaturated-blue font-light"
>$59.99/year</span
>
</div>
</div>
<div
class="font-red_hat text-bright-blue w-[40%] cursor-pointer p-1 text-right text-sm font-bold underline hover:cursor-pointer"
>
Change
</div>
</div>
<div class="mt-4 flex w-full flex-col items-center gap-4">
<button
class="font-red_hat font-extra_bold w-full rounded-lg bg-[#3b00e5] py-2 text-sm text-white shadow-lg shadow-[#6456b9] transition duration-300 ease-in-out hover:cursor-pointer hover:bg-[#6456b9] md:text-base"
>
Proceed to Payment
</button>
<div
class="font-red_hat font-extra_bold text-desaturated-blue mt-4 transition hover:cursor-pointer"
>
Cancel Order
</div>
</div>
</div>
</div>
</div>
<div
class="font-red_hat ml-8 flex w-[90%] flex-col items-center justify-center bg-[#d6e0fe] py-3 text-xs md:bg-transparent"
>
<p>
<a
class="text-optimum-blue hover:text-optimum-darkblue"
class="font-bold text-blue-500"
rel="noopener"
href="https://www.frontendmentor.io/challenges/order-summary-component-QlPmajDUj"
target="_blank"
>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/order_summary_component/challenges/order_summary_component"
class="font-bold text-blue-500"
rel="noopener"
href="https://github.com/mbashia/frontend_mentor_challenges/tree/order_summary_component/challenges/order_summary_component"
>Source code</a
>
</div>
</p>
</div>
</body>
</html>
21 changes: 21 additions & 0 deletions challenges/order_summary_component/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ module.exports = {
colors: {
'optimum-blue': '#009efc',
'optimum-darkblue': '#0389e1',
'pale-blue': 'hsl(225, 100%, 94%)',
'bright-blue': 'hsl(245, 75%, 52%)',
'very-pale-blue': 'hsl(225, 100%, 98%)',
'desaturated-blue': 'hsl(224, 23%, 55%)',
'dark-blue': 'hsl(223, 47%, 23%)',
},
fontFamily: {
red_hat: ['Red Hat Display'],
},
fontWeight: {
extra_light: 200,
regular: 500,
light: 400,
bold: 700,
extra_bold: 900,
},
backgroundImage: {
'mobile-pattern': "url('images/pattern-background-mobile.svg')",

'bottom-pattern': "url('images/pattern-background-desktop.svg')",
illustration: "url('images/illustration-hero.svg')",
},
},
},
Expand Down
Loading