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 #160

Open
wants to merge 12 commits into
base: chat_app_css_illustration
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 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.
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.
216 changes: 193 additions & 23 deletions challenges/chat_app_css_illustration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,33 +30,203 @@
</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 py-4 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
<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:right-96 lg:top-0 lg:h-[900px] lg:w-[520px]"
></div>
<div
class="relative left-40 top-0 h-[750px] w-72 rounded-t-full bg-gray-200 lg:left-[300px] lg:top-28 lg:h-[750px] lg:w-[500px]"
></div>

<div
class="absolute flex flex-col items-center justify-center lg:flex-row"
>
<div
class="drop-shadow-light-violet w-[300px] rounded-3xl bg-white p-2 drop-shadow-2xl"
>
Internship.
</div>
<div
class="bg-light-grayish-violet drop-shadow-pale-violet flex w-full flex-col justify-center rounded-2xl"
>
<div>
<div class="flex justify-center">
<span
class="lg:8/12 absolute top-0 h-7 w-6/12 rounded-2xl bg-white p-3"
></span>
</div>
</div>
<!-- phone's header -->
<div
class="from-light-violet to-light-magenta flex w-full items-center rounded-t-3xl bg-gradient-to-r py-3"
>
<div class="mt-2 flex w-full items-center pl-2">
<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="relative -right-12 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-1 h-10 w-10 rounded-full border-2"
/>
<div class="py-2">
<h2 class="text-sm font-medium text-white">Samuel Green</h2>
<span class="text-pale-violet text-xs"
>Available to Walk</span
>
</div>
</div>
</div>
<div class="text-moderate-violet p-2 text-xs font-extralight">
<p class="w-48 rounded-lg rounded-bl-sm bg-gray-200 p-2">
That sounds great. I’d be happy with that.
</p>
<p class="mt-2 w-48 rounded-lg rounded-bl-sm bg-gray-200 p-2">
Could you send over some pictures of your dog, please?
</p>
</div>
<div class="flex justify-end gap-2 px-2">
<img
src="images/dog-image-1.jpg"
alt="dog's image 1"
class="h-12 w-12 rounded-xl"
/>
<img
src="images/dog-image-2.jpg"
alt="dog's image 2"
class="h-12 w-12 rounded-xl"
/>
<img
src="images/dog-image-3.jpg"
alt="dog's image 3"
class="h-12 w-12 rounded-xl"
/>
</div>
<div
class="text-desat-dark-violet p flex flex-col items-end px-2 pb-2 text-xs font-extralight"
>
<p class="mt-2 w-7/12 rounded-lg rounded-br-sm bg-gray-50 p-1">
Here are a few pictures. She’s a happy girl!
</p>
<p
class="mt-2 w-32 rounded-lg rounded-br-sm bg-gray-50 px-1 py-2"
>
Can you make it?
</p>
</div>
<div class="px-2 py-2 text-xs font-extralight">
<p
class="text-moderate-violet w-48 rounded-lg rounded-bl-sm bg-gray-200 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-48 rounded-lg rounded-bl-sm bg-gradient-to-r py-2 text-white"
>
<p class="px-8">
30 minute walk<span class="absolute left-40 font-bold"
>$29</span
>
</p>
</div>
<div
class="from-light-magenta to-light-violet relative mt-2 flex w-48 rounded-lg rounded-bl-sm bg-gradient-to-r py-2 text-white"
>
<p class="px-8">1 hour walk</p>
<p class="absolute left-40 font-bold">$49</p>
</div>
</div>
<div class="text-grayish-blue relative px-2 py-3">
<input
type="text"
placeholder="Type a message…"
class="w-full rounded-full 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-desat-dark-violet absolute bottom-5 right-6 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="mt-8 flex flex-col px-10 py-2 pb-12 text-center lg:w-[570px] lg:px-20 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 pt-6 text-sm leading-relaxed">
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/akinyiv/frontend_mentor_challenges/tree/chat_app_css_illustration/challenges/chat_app_css_illustration"
>Source code</a
>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
Expand Down
18 changes: 18 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,24 @@ module.exports = {
colors: {
'optimum-blue': '#009efc',
'optimum-darkblue': '#0389e1',
'pale-violet': 'hsl(276, 100%, 81%)',
'moderate-violet': 'hsl(276, 55%, 52%)',
'desat-dark-violet': 'hsl(271, 15%, 43%)',
'very-dark-desat-violet': 'hsl(271, 36%, 24%)',
'dark-grayish-violet': 'hsl(270, 7%, 64%)',
'grayish-blue': 'hsl(206, 6%, 79%)',
'light-magenta': 'hsl(293, 100%, 63%)',
'light-violet': 'hsl(264, 100%, 61%)',
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%)',
},
fontFamily: {
base: ['Rubik', 'sans-serif'],
},
borderWidth: {
thin: '.5px',
},
},
},
Expand Down
Loading