Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
1 change: 1 addition & 0 deletions challenges/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.
1 change: 1 addition & 0 deletions challenges/images/illustration-hero.svg
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/images/pattern-background-desktop.svg
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/images/pattern-background-mobile.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 52 additions & 4 deletions challenges/order_summary_component/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,54 @@
<link rel="manifest" href="../site.webmanifest" />
<link rel="stylesheet" href="style.css" />
</head>
<body class="m-0">
<body class="bg-pale-blue m-0">
<div
class="flex h-[100vh] w-full flex-col place-content-center text-center"
class="absolute z-10 flex h-[100vh] w-full flex-col place-content-center text-center"
>
<div>
<div
class="mx-auto flex w-80 flex-col items-center overflow-hidden rounded-lg bg-white lg:w-3/12"
>
<div>
<img src="/./images/illustration-hero.svg" alt="hero illustration" />
</div>
<div class="mx-4">
<div class="p-4">
<h1 class="text-dark-blue text-xl font-bold">Order Summary</h1>
<p class="pt-3 text-sm">
You can now listen to millions of songs, audiobooks, and podcasts
on any device anywhere you like!
</p>
</div>
<div
class="bg-pale-blue mx-auto flex items-center justify-between rounded-lg p-2"
>
<img src="/./images/icon-music.svg" alt="music icon" />
<div class="flex items-center">
<h2 class="font-bold">
Annual Plan
<span class="text-desaturated-blue block font-normal"
>$59.99/year</span
>
</h2>
</div>

<a
href="#"
class="text-bright-blue cursor-pointer px-4 underline hover:no-underline active:no-underline"
>Change</a
>
</div>
<div class="bg-bright-blue mt-4 w-full rounded-lg py-3">
<a href="#" class="mt-4 w-full font-bold text-white"
>Proceed to Payment</a
>
</div>
</div>

<button class="py-6 font-bold text-gray-400">Cancel Order</button>
</div>

<div class="mt-4">
<a
class="text-optimum-blue hover:text-optimum-darkblue"
href="https://www.frontendmentor.io/challenges/order-summary-component-QlPmajDUj"
Expand All @@ -54,10 +97,15 @@
<div class="mt-3">
<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"
href="https://github.com/ngumkenneth/frontend_mentor_challenges/tree/order_summary_component/challenges/order_summary_component"
>Source code</a
>
</div>
</div>
<img
src="../images/pattern-background-desktop.svg"
alt="background-pattern"
class="relative"
/>
</body>
</html>
5 changes: 5 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,11 @@ 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%)',
},
},
},
Expand Down