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 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.
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.
244 changes: 220 additions & 24 deletions challenges/chat_app_css_illustration/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,232 @@
/>
<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=Rubik:wght@400;500;700&display=swap"
rel="stylesheet"
/>
</head>
<body class="m-0">
<body class="relative m-0 bg-white lg:h-screen">
<div
class="flex h-[100vh] w-full flex-col place-content-center text-center"
class="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 -top-10 right-40 h-[500px] w-72 rounded-b-full bg-gradient-to-t lg:-top-28 lg:right-80 lg:h-[700px] lg:w-[450px]"
></div>
<div
class="bg-light-grayish-violet relative left-40 h-[550px] w-72 rounded-t-full lg:-bottom-44 lg:left-[275px] lg:h-[950px] lg:w-[500px]"
></div>

<div
class="absolute top-12 flex flex-col items-center justify-center lg:top-40 lg:flex-row"
>
<div
class="drop-shadow-light-violet w-[255px] 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-2"
>
<div class="flex w-full items-center pl-2 pt-4">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="h-4 w-4 font-extrabold 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-4 w-4 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-8 w-8 rounded-full border-2"
/>
<div>
<h2 class="text-xs font-semibold text-white">Samuel Green</h2>
<p class="text-pale-violet text-[8px] font-normal">
Available to Walk
</p>
</div>
</div>
</div>
<div class="text-moderate-violet px-2 text-xs font-extralight">
<p
class="my-2 w-32 rounded-lg rounded-bl-sm bg-gray-200 px-2 text-[0.5rem]"
>
That sounds great. I’d be happy to discuss more.
</p>
<p
class="w-32 rounded-lg rounded-bl-sm bg-gray-200 p-1 text-[0.5rem]"
>
Could you send over some pictures of your dog, please?
</p>
</div>
<div class="mt-4 flex flex-col items-end">
<div class="flex gap-2 pr-2">
<img
src="images/dog-image-1.jpg"
alt="dog's image 1"
class="h-11 w-11 rounded-xl"
/>
<img
src="images/dog-image-2.jpg"
alt="dog's image 2"
class="h-11 w-11 rounded-xl"
/>
<img
src="images/dog-image-3.jpg"
alt="dog's image 3"
class="h-11 w-11 rounded-xl"
/>
</div>
<div
class="text-very-dark-desaturated-violet flex flex-col items-end px-2 pb-2 text-xs font-extralight"
>
<p
class="mt-2 w-36 rounded-lg rounded-br-sm bg-gray-50 px-1 py-1 text-[0.5rem]"
>
Here are a few pictures. She’s a happy girl!
</p>
<p
class="mt-2 w-24 rounded-lg rounded-br-sm bg-gray-50 px-1 py-1 text-[0.5rem]"
>
Can you make it?
</p>
</div>
</div>
<div class="px-2 text-xs font-extralight">
<p
class="text-moderate-violet w-32 rounded-lg rounded-bl-sm bg-gray-200 p-1 text-[0.5rem]"
>
She looks so happy! The time we discussed works. How long shall
I take her out for?
</p>

<div
class="from-light-magenta to-light-violet my-1.5 mt-2 flex w-40 justify-between rounded-lg rounded-bl-sm bg-gradient-to-r p-2"
>
<div class="flex items-center gap-3">
<div
class="border-very-light-magenta h-4 w-4 rounded-full border-2"
></div>
<p class="text-[0.4rem] text-white">30 minute walk</p>
</div>
<div>
<h4 class="px-2 text-sm font-extrabold text-white">$29</h4>
</div>
</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"
>Source code</a
<div
class="from-light-magenta to-light-violet my-1.5 mt-2 flex w-40 justify-between rounded-lg rounded-bl-sm bg-gradient-to-r p-2"
>
<div class="flex items-center gap-3">
<div
class="border-very-light-magenta h-4 w-4 rounded-full border-2"
></div>
<p class="text-[0.4rem] text-white">1 hour walk</p>
</div>
<div>
<h4 class="px-2 text-sm font-extrabold text-white">$49</h4>
</div>
</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 text-[0.6rem]"
/>
<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-4 right-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="mt-12 flex flex-col px-6 py-2 text-center lg:w-[570px] lg:px-28 lg:pr-24 lg:text-left"
>
<h1 class="text-very-dark-desaturated-violet text-2xl font-semibold">
Simple booking
</h1>
<p class="text-dark-grayish-violet py-4 text-xs 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
14 changes: 14 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,20 @@ 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%)',
'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: {
rubik: ['Rubik', 'sans-serif'],
},
},
},
Expand Down