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

Chat app css illustration #147

Open
wants to merge 9 commits into
base: chat_app_css_illustration
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 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
214 changes: 190 additions & 24 deletions challenges/chat_app_css_illustration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,199 @@
</head>
<body class="m-0">
<div
class="flex h-[100vh] w-full flex-col place-content-center text-center"
class="bg-light-grayish-violet flex flex-col items-center justify-center overflow-hidden lg:h-screen lg:flex-row"
>
<div>
<a
class="text-optimum-blue hover:text-optimum-darkblue"
href="https://www.frontendmentor.io/challenges/chat-app-css-illustration-O5auMkFqY"
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"
>Optimum BH</a
>
Internship.
</div>
<div
class="from-light-violet to-light-magenta relative right-40 top-0 h-[750px] w-72 rounded-b-full bg-gradient-to-t lg:top-0 lg:right-56 lg:h-[900px] lg:w-[500px]"
></div>
<div
class="bg-grayish-blue/30 relative left-40 bottom-0 h-[500px] w-64 rounded-t-full bg-gradient-to-t lg:-bottom-56 lg:left-80 lg:right-[450px] lg:h-[500px] lg:w-[500px]"
></div>
<div
class="absolute flex flex-col items-center justify-center lg:flex-row"
>
<div class="w-11/12 rounded-2xl bg-white p-2 lg:w-3/12">
<div
class="bg-light-grayish-violet flex w-full flex-col justify-center rounded-2xl"
>
<div>
<div class="flex justify-center">
<span
class="absolute top-0 w-6/12 rounded-xl bg-white p-3 lg:w-2/12"
></span>
</div>
</div>
<!-- phone's header -->
<div
class="from-light-violet to-light-magenta flex w-full items-center rounded-t-xl bg-gradient-to-r py-3"
>
<div class="mx-2 mt-2 flex w-full items-center">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="h-6 w-6 text-white"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M15.75 19.5L8.25 12l7.5-7.5"
/>
</svg>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="absolute right-10 order-last h-6 w-6 text-white"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M12 6.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 12.75a.75.75 0 110-1.5.75.75 0 010 1.5zM12 18.75a.75.75 0 110-1.5.75.75 0 010 1.5z"
/>
</svg>
<img
src="../images/avatar.jpg"
alt="Samuel Green's Avatar"
class="mx-3 h-10 w-10 rounded-full border-2"
/>
<div>
<h2>Samuel Green</h2>
<span class="text-pale-violet">Available to Walk</span>
</div>
</div>
</div>
<div class="text-moderate-violet p-2 text-xs font-thin">
<p class="bg-grayish-blue w-8/12 rounded-lg rounded-bl-sm p-2">
That sounds great. I’d be happy with that.
</p>
<p
class="bg-grayish-blue mt-2 w-8/12 rounded-lg rounded-bl-sm p-2"
>
Could you send over some pictures of your dog, please?
</p>
</div>
<div class="flex justify-end gap-2 px-1">
<img
src="../images/dog-image-1.jpg"
alt="dog's image 1"
class="w-2/12 rounded-xl"
/>
<img
src="../images/dog-image-2.jpg"
alt="dog's image 2"
class="w-2/12 rounded-xl"
/>
<img
src="../images/dog-image-3.jpg"
alt="dog's image 3"
class="w-2/12 rounded-xl"
/>
</div>
<div
class="text-moderate-violet flex flex-col items-end px-1 text-xs font-light"
>
<p
class="bg-grayish-blue mt-2 w-6/12 rounded-lg rounded-br-sm p-1"
>
Here are a few pictures. She’s a happy girl!
</p>
<p
class="bg-grayish-blue mt-2 w-5/12 rounded-lg rounded-br-sm p-1"
>
Can you make it?
</p>
</div>
<div class="p-1 text-xs font-light">
<p
class="bg-grayish-blue text-desaturated-dark-violet w-7/12 rounded-lg rounded-bl-sm p-1"
>
She looks so happy! The time we discussed works. How long shal I
take her out for?
</p>

<div class="mt-3">
<a
class="text-optimum-blue hover:text-optimum-darkblue"
href="https://github.com/optimumBA/frontend_mentor_challenges/tree/chat_app_css_illustration/challenges/chat_app_css_illustration"
>Source code</a
<div
class="from-light-magenta to-light-violet relative mt-2 flex w-8/12 rounded-lg rounded-bl-sm bg-gradient-to-r py-1 text-white"
>
<p class="px-8">30 minute walk</p>
<p class="absolute right-6 font-bold">$29</p>
</div>
<div
class="from-light-magenta to-light-violet relative mt-2 flex w-8/12 rounded-lg rounded-bl-sm bg-gradient-to-r py-1 text-white"
>
<p class="px-8">1 hour walk</p>
<p class="absolute right-6 font-bold">$49</p>
</div>
</div>
<div class="text-grayish-blue relative p-2">
<input
type="text"
placeholder="Type a message…"
class="w-full rounded-2xl p-2"
/>
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="bg-desaturated-dark-violet absolute right-6 bottom-4 h-6 w-6 rounded-full"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M8.25 4.5l7.5 7.5-7.5 7.5"
/>
</svg>
</div>
</div>
</div>
<div
class="flex flex-col py-2 px-10 text-center lg:w-5/12 lg:text-left"
>
<h1 class="text-very-dark-desaturated-violet py-2 text-3xl font-bold">
Simple booking
</h1>
<p class="text-dark-grayish-violet text-sm">
Stay in touch with our dog walkers through the chat interface. This
makes it easy to discuss arrangements and make bookings. Once the
walk has been completed you can rate your walker and book again all
through the chat.
</p>
<div class="relative">
<div class="absolute mt-12 flex w-full flex-col text-center">
<div>
<a
class="text-optimum-blue hover:text-optimum-darkblue"
href="https://www.frontendmentor.io/challenges/chat-app-css-illustration-O5auMkFqY"
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"
>Optimum BH</a
>
Internship.
</div>
<div class="mt-3">
<a
class="text-optimum-blue hover:text-optimum-darkblue"
href="https://github.com/optimumBA/frontend_mentor_challenges/tree/chat_app_css_illustration/challenges/chat_app_css_illustration"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put your username instead of optimumBA.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted. I'll make the changes. Thanks.

>Source code</a
>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
Expand Down
11 changes: 11 additions & 0 deletions challenges/chat_app_css_illustration/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ module.exports = {
colors: {
'optimum-blue': '#009efc',
'optimum-darkblue': '#0389e1',
'light-magenta': 'hsl(293, 100%, 63%)',
'light-violet': 'hsl(264, 100%, 61%)',
'pale-violet': 'hsl(276, 100%, 81%)',
'moderate-violet': 'hsl(276, 55%, 52%)',
'desaturated-dark-violet': 'hsl(271, 15%, 43%)',
'grayish-blue': 'hsl(206, 6%, 79%)',
'dark-grayish-violet': 'hsl(270, 7%, 64%)',
'app-white': 'hsl(0, 0%, 100%)',
'light-grayish-violet': 'hsl(270, 20%, 96%)',
'very-dark-desaturated-violet': 'hsl(271, 36%, 24%)',
'very-light-magenta': 'hsl(289, 100%, 72%)',
},
},
},
Expand Down
Binary file added challenges/images/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added challenges/images/dog-image-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added challenges/images/dog-image-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added challenges/images/dog-image-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.