feat(15): desktop styling step 1
This commit is contained in:
parent
7b2060c5d0
commit
967864e72d
|
@ -28,6 +28,6 @@ html {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* div, p, button, ol, li, summary, article { */
|
/* div, p, button, ol, li, summary, article, h1 { */
|
||||||
/* outline: 1px solid red; */
|
/* outline: 1px solid red; */
|
||||||
/* } */
|
/* } */
|
||||||
|
|
|
@ -659,6 +659,11 @@ video {
|
||||||
background-color: hsl(229 24% 87% / var(--tw-bg-opacity));
|
background-color: hsl(229 24% 87% / var(--tw-bg-opacity));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bg-magnolia {
|
||||||
|
--tw-bg-opacity: 1;
|
||||||
|
background-color: hsl(217 100% 97% / var(--tw-bg-opacity));
|
||||||
|
}
|
||||||
|
|
||||||
.bg-marine-blue {
|
.bg-marine-blue {
|
||||||
--tw-bg-opacity: 1;
|
--tw-bg-opacity: 1;
|
||||||
background-color: hsl(213 96% 18% / var(--tw-bg-opacity));
|
background-color: hsl(213 96% 18% / var(--tw-bg-opacity));
|
||||||
|
@ -669,16 +674,6 @@ video {
|
||||||
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-magnolia {
|
|
||||||
--tw-bg-opacity: 1;
|
|
||||||
background-color: hsl(217 100% 97% / var(--tw-bg-opacity));
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-alabaster {
|
|
||||||
--tw-bg-opacity: 1;
|
|
||||||
background-color: hsl(231 100% 99% / var(--tw-bg-opacity));
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-sidebar-mobile {
|
.bg-sidebar-mobile {
|
||||||
background-image: url("images/bg-sidebar-mobile.svg");
|
background-image: url("images/bg-sidebar-mobile.svg");
|
||||||
}
|
}
|
||||||
|
@ -691,11 +686,21 @@ video {
|
||||||
padding: 0.25rem;
|
padding: 0.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.px-4 {
|
||||||
|
padding-left: 1rem;
|
||||||
|
padding-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.px-6 {
|
.px-6 {
|
||||||
padding-left: 1.5rem;
|
padding-left: 1.5rem;
|
||||||
padding-right: 1.5rem;
|
padding-right: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.py-3 {
|
||||||
|
padding-top: 0.75rem;
|
||||||
|
padding-bottom: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
.py-4 {
|
.py-4 {
|
||||||
padding-top: 1rem;
|
padding-top: 1rem;
|
||||||
padding-bottom: 1rem;
|
padding-bottom: 1rem;
|
||||||
|
@ -706,34 +711,15 @@ video {
|
||||||
padding-bottom: 2rem;
|
padding-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.py-3 {
|
|
||||||
padding-top: 0.75rem;
|
|
||||||
padding-bottom: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.px-5 {
|
|
||||||
padding-left: 1.25rem;
|
|
||||||
padding-right: 1.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.px-3 {
|
|
||||||
padding-left: 0.75rem;
|
|
||||||
padding-right: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.px-4 {
|
|
||||||
padding-left: 1rem;
|
|
||||||
padding-right: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pt-2 {
|
|
||||||
padding-top: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.pt-3 {
|
.pt-3 {
|
||||||
padding-top: 0.75rem;
|
padding-top: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-2xl {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
line-height: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
.text-3xl {
|
.text-3xl {
|
||||||
font-size: 1.875rem;
|
font-size: 1.875rem;
|
||||||
line-height: 2.25rem;
|
line-height: 2.25rem;
|
||||||
|
@ -744,11 +730,6 @@ video {
|
||||||
line-height: 1.25rem;
|
line-height: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-2xl {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
line-height: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.font-bold {
|
.font-bold {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
@ -761,24 +742,24 @@ video {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
.text-white {
|
|
||||||
--tw-text-opacity: 1;
|
|
||||||
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
||||||
}
|
|
||||||
|
|
||||||
.text-cool-gray {
|
.text-cool-gray {
|
||||||
--tw-text-opacity: 1;
|
--tw-text-opacity: 1;
|
||||||
color: hsl(231 11% 63% / var(--tw-text-opacity));
|
color: hsl(231 11% 63% / var(--tw-text-opacity));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-light-gray {
|
||||||
|
--tw-text-opacity: 1;
|
||||||
|
color: hsl(229 24% 87% / var(--tw-text-opacity));
|
||||||
|
}
|
||||||
|
|
||||||
.text-marine-blue {
|
.text-marine-blue {
|
||||||
--tw-text-opacity: 1;
|
--tw-text-opacity: 1;
|
||||||
color: hsl(213 96% 18% / var(--tw-text-opacity));
|
color: hsl(213 96% 18% / var(--tw-text-opacity));
|
||||||
}
|
}
|
||||||
|
|
||||||
.drop-shadow-lg {
|
.text-white {
|
||||||
--tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
|
--tw-text-opacity: 1;
|
||||||
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
||||||
}
|
}
|
||||||
|
|
||||||
.drop-shadow-xl {
|
.drop-shadow-xl {
|
||||||
|
@ -828,12 +809,20 @@ html {
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* div, p, button, ol, li, summary, article { */
|
/* div, p, button, ol, li, summary, article, h1 { */
|
||||||
|
|
||||||
/* outline: 1px solid red; */
|
/* outline: 1px solid red; */
|
||||||
|
|
||||||
/* } */
|
/* } */
|
||||||
|
|
||||||
|
.marker\:text-white *::marker {
|
||||||
|
color: rgb(255 255 255 );
|
||||||
|
}
|
||||||
|
|
||||||
|
.marker\:text-white::marker {
|
||||||
|
color: rgb(255 255 255 );
|
||||||
|
}
|
||||||
|
|
||||||
.placeholder\:text-cool-gray::-moz-placeholder {
|
.placeholder\:text-cool-gray::-moz-placeholder {
|
||||||
--tw-text-opacity: 1;
|
--tw-text-opacity: 1;
|
||||||
color: hsl(231 11% 63% / var(--tw-text-opacity));
|
color: hsl(231 11% 63% / var(--tw-text-opacity));
|
||||||
|
@ -853,6 +842,14 @@ html {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.md\:mr-20 {
|
||||||
|
margin-right: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:mr-24 {
|
||||||
|
margin-right: 6rem;
|
||||||
|
}
|
||||||
|
|
||||||
.md\:flex {
|
.md\:flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
@ -877,6 +874,18 @@ html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.md\:h-20 {
|
||||||
|
height: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:h-14 {
|
||||||
|
height: 3.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:h-12 {
|
||||||
|
height: 3rem;
|
||||||
|
}
|
||||||
|
|
||||||
.md\:w-\[274px\] {
|
.md\:w-\[274px\] {
|
||||||
width: 274px;
|
width: 274px;
|
||||||
}
|
}
|
||||||
|
@ -885,12 +894,24 @@ html {
|
||||||
width: 60rem;
|
width: 60rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md\:grid-cols-1 {
|
.md\:w-full {
|
||||||
grid-template-columns: repeat(1, minmax(0, 1fr));
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md\:grid-cols-2 {
|
.md\:w-20 {
|
||||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
width: 5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:w-28 {
|
||||||
|
width: 7rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:w-32 {
|
||||||
|
width: 8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:grid-cols-1 {
|
||||||
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
||||||
}
|
}
|
||||||
|
|
||||||
.md\:grid-cols-\[auto_1fr\] {
|
.md\:grid-cols-\[auto_1fr\] {
|
||||||
|
@ -909,23 +930,37 @@ html {
|
||||||
align-content: flex-start;
|
align-content: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md\:gap-x-2 {
|
.md\:items-start {
|
||||||
-moz-column-gap: 0.5rem;
|
align-items: flex-start;
|
||||||
column-gap: 0.5rem;
|
}
|
||||||
|
|
||||||
|
.md\:items-end {
|
||||||
|
align-items: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:gap-x-4 {
|
||||||
|
-moz-column-gap: 1rem;
|
||||||
|
column-gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md\:gap-y-7 {
|
.md\:gap-y-7 {
|
||||||
row-gap: 1.75rem;
|
row-gap: 1.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md\:gap-x-3 {
|
.md\:place-self-end {
|
||||||
-moz-column-gap: 0.75rem;
|
place-self: end;
|
||||||
column-gap: 0.75rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.md\:gap-x-4 {
|
.md\:rounded-lg {
|
||||||
-moz-column-gap: 1rem;
|
border-radius: 0.5rem;
|
||||||
column-gap: 1rem;
|
}
|
||||||
|
|
||||||
|
.md\:rounded-xl {
|
||||||
|
border-radius: 0.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:rounded-2xl {
|
||||||
|
border-radius: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md\:bg-white {
|
.md\:bg-white {
|
||||||
|
@ -944,4 +979,46 @@ html {
|
||||||
.md\:p-5 {
|
.md\:p-5 {
|
||||||
padding: 1.25rem;
|
padding: 1.25rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.md\:p-6 {
|
||||||
|
padding: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:px-24 {
|
||||||
|
padding-left: 6rem;
|
||||||
|
padding-right: 6rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:px-4 {
|
||||||
|
padding-left: 1rem;
|
||||||
|
padding-right: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:pb-2 {
|
||||||
|
padding-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:pt-5 {
|
||||||
|
padding-top: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:text-4xl {
|
||||||
|
font-size: 2.25rem;
|
||||||
|
line-height: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:text-base {
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:drop-shadow-none {
|
||||||
|
--tw-drop-shadow: drop-shadow(0 0 #0000);
|
||||||
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.md\:drop-shadow-2xl {
|
||||||
|
--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
|
||||||
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,11 +36,11 @@
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
|
|
||||||
<article
|
<article
|
||||||
class="flex flex-col items-center w-screen h-screen md:grid md:grid-cols-2 md:p-5 md:bg-white md:w-desktop-form md:h-desktop-form"
|
class="flex flex-col items-center w-screen h-screen md:grid md:items-start md:p-5 md:bg-white md:rounded-2xl md:grid-cols-[auto_1fr] md:w-desktop-form md:h-desktop-form md:drop-shadow-2xl"
|
||||||
id="form-step"
|
id="form-step"
|
||||||
>
|
>
|
||||||
<summary
|
<summary
|
||||||
class="w-full h-44 bg-no-repeat md:row-span-2 bg-sidebar-mobile md:bg-sidebar-desktop md:h-[568px] md:w-[274px]"
|
class="w-full h-44 bg-no-repeat md:row-span-2 bg-sidebar-mobile marker:text-white md:bg-sidebar-desktop md:h-[568px] md:w-[274px]"
|
||||||
id="sidebar"
|
id="sidebar"
|
||||||
>
|
>
|
||||||
<ol
|
<ol
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
1
|
1
|
||||||
</div>
|
</div>
|
||||||
<p class="hidden md:flex md:flex-col">
|
<p class="hidden md:flex md:flex-col">
|
||||||
<span>Step 1</span><span class="font-bold">Your info</span>
|
<span class="text-light-gray">Step 1</span><span class="font-bold">Your info</span>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="items-center md:grid md:gap-x-4 md:grid-cols-[auto_1fr]">
|
<li class="items-center md:grid md:gap-x-4 md:grid-cols-[auto_1fr]">
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
2
|
2
|
||||||
</div>
|
</div>
|
||||||
<p class="hidden md:flex md:flex-col">
|
<p class="hidden md:flex md:flex-col">
|
||||||
<span>Step 2</span><span class="font-bold">Select plan</span>
|
<span class="text-light-gray">Step 2</span><span class="font-bold">Select plan</span>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="items-center md:grid md:gap-x-4 md:grid-cols-[auto_1fr]">
|
<li class="items-center md:grid md:gap-x-4 md:grid-cols-[auto_1fr]">
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
3
|
3
|
||||||
</div>
|
</div>
|
||||||
<p class="hidden md:flex md:flex-col">
|
<p class="hidden md:flex md:flex-col">
|
||||||
<span>Step 3</span><span class="font-bold">Add-ons</span>
|
<span class="text-light-gray">Step 3</span><span class="font-bold">Add-ons</span>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="items-center md:grid md:gap-x-4 md:grid-cols-[auto_1fr]">
|
<li class="items-center md:grid md:gap-x-4 md:grid-cols-[auto_1fr]">
|
||||||
|
@ -83,44 +83,44 @@
|
||||||
4
|
4
|
||||||
</div>
|
</div>
|
||||||
<p class="hidden md:flex md:flex-col">
|
<p class="hidden md:flex md:flex-col">
|
||||||
<span>Step 4</span><span class="font-bold">summary</span>
|
<span class="text-light-gray">Step 4</span><span class="font-bold">summary</span>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
</summary>
|
</summary>
|
||||||
<section
|
<section
|
||||||
id="multipage-form-container"
|
id="multipage-form-container"
|
||||||
class="flex flex-col py-8 px-6 -mt-20 w-11/12 bg-white rounded-xl md:mt-0 drop-shadow-xl"
|
class="flex flex-col py-8 px-6 -mt-20 w-11/12 bg-white rounded-xl md:px-24 md:mt-0 md:w-full drop-shadow-xl md:drop-shadow-none"
|
||||||
>
|
>
|
||||||
<!-- Step 1 start -->
|
<!-- Step 1 start -->
|
||||||
<h1 class="text-2xl font-bold text-marine-blue">Personal info</h1>
|
<h1 class="text-2xl font-bold md:text-4xl text-marine-blue">Personal info</h1>
|
||||||
<p class="py-3 text-cool-gray">
|
<p class="py-3 text-cool-gray">
|
||||||
Please provide your name, email address, and phone number.
|
Please provide your name, email address, and phone number.
|
||||||
</p>
|
</p>
|
||||||
<label for="name" class="pt-3 text-sm text-marine-blue">Name</label>
|
<label for="name" class="pt-3 text-sm md:pt-5 md:pb-2 text-marine-blue">Name</label>
|
||||||
<input
|
<input
|
||||||
id="name"
|
id="name"
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="e.g. Stephen King"
|
placeholder="e.g. Stephen King"
|
||||||
class="p-1 px-4 h-10 text-sm font-semibold rounded border placeholder:text-cool-gray"
|
class="p-1 px-4 h-10 text-sm font-semibold rounded border md:p-6 md:px-4 md:text-base md:rounded-lg placeholder:text-cool-gray"
|
||||||
/>
|
/>
|
||||||
<label for="email" class="pt-3 text-sm text-marine-blue"
|
<label for="email" class="pt-3 text-sm md:pt-5 md:pb-2 text-marine-blue"
|
||||||
>Email Address</label
|
>Email Address</label
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
id="email"
|
id="email"
|
||||||
type="email"
|
type="email"
|
||||||
placeholder="e.g. stephenking@lorem.com"
|
placeholder="e.g. stephenking@lorem.com"
|
||||||
class="p-1 px-4 h-10 text-sm font-semibold rounded border placeholder:text-cool-gray"
|
class="p-1 px-4 h-10 text-sm font-semibold rounded border md:p-6 md:px-4 md:text-base md:rounded-lg placeholder:text-cool-gray"
|
||||||
/>
|
/>
|
||||||
<label for="phone" class="pt-3 text-sm text-marine-blue"
|
<label for="phone" class="pt-3 text-sm md:pt-5 md:pb-2 text-marine-blue"
|
||||||
>Phone Number</label
|
>Phone Number</label
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
id="phone"
|
id="phone"
|
||||||
type="tel"
|
type="tel"
|
||||||
placeholder="e.g. +1 234 567 890"
|
placeholder="e.g. +1 234 567 890"
|
||||||
class="p-1 px-4 h-10 text-sm font-semibold rounded border placeholder:text-cool-gray"
|
class="p-1 px-4 h-10 text-sm font-semibold rounded border md:p-6 md:px-4 md:text-base md:rounded-lg placeholder:text-cool-gray"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Step 1 end -->
|
<!-- Step 1 end -->
|
||||||
|
@ -128,12 +128,12 @@
|
||||||
<div class="md:hidden grow"></div>
|
<div class="md:hidden grow"></div>
|
||||||
<section
|
<section
|
||||||
id="footer-controls"
|
id="footer-controls"
|
||||||
class="flex flex-row items-center py-4 w-full bg-white"
|
class="flex flex-row items-center py-4 w-full bg-white md:items-end md:h-full"
|
||||||
>
|
>
|
||||||
<div class="grow"></div>
|
<div class="grow"></div>
|
||||||
<a
|
<a
|
||||||
href="step2.html"
|
href="step2.html"
|
||||||
class="grid place-content-center mr-3 w-24 h-10 text-sm font-semibold text-white rounded bg-marine-blue"
|
class="grid place-content-center mr-3 w-24 h-10 text-sm font-semibold text-white rounded md:mr-24 md:w-32 md:h-12 md:text-base md:rounded-lg bg-marine-blue"
|
||||||
>Next Step</a
|
>Next Step</a
|
||||||
>
|
>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in New Issue