Skip to content

Commit

Permalink
tailwind styling 1
Browse files Browse the repository at this point in the history
  • Loading branch information
kamiljaneczek committed May 8, 2024
1 parent e363a05 commit 887e8ec
Show file tree
Hide file tree
Showing 9 changed files with 3,499 additions and 381 deletions.
2,202 changes: 2,202 additions & 0 deletions assets/common.css

Large diffs are not rendered by default.

935 changes: 719 additions & 216 deletions assets/css/common.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/img/logo-no-background.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
266 changes: 126 additions & 140 deletions src/app/components/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,147 +1,133 @@
import { Button } from '../../design-system/ui/button';

function LocateIcon(props) {
return (
<svg
{...props}
xmlns='http://www.w3.org/2000/svg'
width='24'
height='24'
viewBox='0 0 24 24'
fill='none'
stroke='currentColor'
strokeWidth='2'
strokeLinecap='round'
strokeLinejoin='round'
>
<line x1='2' x2='5' y1='12' y2='12' />
<line x1='19' x2='22' y1='12' y2='12' />
<line x1='12' x2='12' y1='2' y2='5' />
<line x1='12' x2='12' y1='19' y2='22' />
<circle cx='12' cy='12' r='7' />
</svg>
);
}

function MailboxIcon(props) {
return (
<svg
{...props}
xmlns='http://www.w3.org/2000/svg'
width='24'
height='24'
viewBox='0 0 24 24'
fill='none'
stroke='currentColor'
strokeWidth='2'
strokeLinecap='round'
strokeLinejoin='round'
>
<path d='M22 17a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9.5C2 7 4 5 6.5 5H18c2.2 0 4 1.8 4 4v8Z' />
<polyline points='15,9 18,9 18,11' />
<path d='M6.5 5C9 5 11 7 11 9.5V17a2 2 0 0 1-2 2v0' />
<line x1='6' x2='7' y1='10' y2='10' />
</svg>
);
}

function PhoneIcon(props) {
return (
<svg
{...props}
xmlns='http://www.w3.org/2000/svg'
width='24'
height='24'
viewBox='0 0 24 24'
fill='none'
stroke='currentColor'
strokeWidth='2'
strokeLinecap='round'
strokeLinejoin='round'
>
<path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z' />
</svg>
);
}

const Footer = () => {
return (
<footer className='bg-gray-900 text-gray-300 py-12 md:py-16'>
<div className='container px-4 md:px-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8'>
<div className='space-y-4'>
<h4 className='text-lg font-semibold'>Get in Touch</h4>
<ul className='space-y-2 text-sm'>
<li>
<a href='/contact'>Contact Us</a>
</li>
<li>
<a href='/about'>About</a>
</li>
<li>
<a href='/products'>Products</a>
</li>
</ul>
</div>
<div className='space-y-4'>
<h4 className='text-lg font-semibold'>Don&apos;t miss new products!</h4>
<p className='text-sm'>Subscribe to our newsletter to stay up-to-date on the latest releases.</p>
<form className='flex items-center space-x-2'>
<input
className='bg-gray-800 border-gray-700 text-gray-300 placeholder:text-gray-500 focus:border-primary focus:ring-primary'
placeholder='Enter your email'
type='email'
<footer className='p-4 bg-white md:p-8 lg:p-10 dark:bg-gray-800'>
<div className='mx-auto max-w-screen-xl text-center'>
<a href='#' className='flex justify-center items-center text-2xl font-semibold text-gray-900 dark:text-white'>
<svg className='mr-2 h-8' viewBox='0 0 33 33' fill='none' xmlns='http://www.w3.org/2000/svg'>
<path
d='M25.2696 13.126C25.1955 13.6364 24.8589 14.3299 24.4728 14.9328C23.9856 15.6936 23.2125 16.2264 22.3276 16.4114L18.43 17.2265C17.8035 17.3575 17.2355 17.6853 16.8089 18.1621L14.2533 21.0188C13.773 21.5556 13.4373 21.4276 13.4373 20.7075C13.4315 20.7342 12.1689 23.9903 15.5149 25.9202C16.8005 26.6618 18.6511 26.3953 19.9367 25.6538L26.7486 21.7247C29.2961 20.2553 31.0948 17.7695 31.6926 14.892C31.7163 14.7781 31.7345 14.6639 31.7542 14.5498L25.2696 13.126Z'
fill='url(#paint0_linear_11430_22515)'
/>
<Button size='sm' variant='default'>
Subscribe
</Button>
</form>
</div>
<div className='space-y-4'>
<h4 className='text-lg font-semibold'>Our Guidelines</h4>
<ul className='space-y-2 text-sm'>
<li>
<a href='#'>Shipping & Returns</a>
</li>
<li>
<a href='#'>Refund Policy</a>
</li>
<li>
<a href='#'>FAQs</a>
</li>
</ul>
</div>
<div className='space-y-4'>
<h4 className='text-lg font-semibold'>Legal</h4>
<ul className='space-y-2 text-sm'>
<li>
<a href='#'>Terms of Service</a>
</li>
<li>
<a href='#'>Privacy Policy</a>
</li>
<li>
<a href='#'>Cookie Policy</a>
</li>
</ul>
</div>
</div>
<div className='container px-4 md:px-6 mt-8 md:mt-12 flex flex-col md:flex-row items-center md:justify-between space-y-4 md:space-y-0'>
<div className='flex flex-col md:flex-row items-center space-y-2 md:space-y-0 md:space-x-4'>
<MailboxIcon className='w-5 h-5 mr-2' />
<a className='text-sm' href='#'>
[email protected]
</a>
</div>
<div className='flex flex-col md:flex-row items-center space-y-2 md:space-y-0 md:space-x-4'>
<PhoneIcon className='w-5 h-5 mr-2' />
<a className='text-sm' href='#'>
903-179-8309
<path
d='M23.5028 9.20133C24.7884 9.94288 25.3137 11.0469 25.3137 12.53C25.3137 12.7313 25.2979 12.9302 25.2694 13.1261L28.0141 14.3051L31.754 14.5499C32.2329 11.7784 31.2944 8.92561 29.612 6.65804C28.3459 4.9516 26.7167 3.47073 24.7581 2.34097C23.167 1.42325 21.5136 0.818599 19.8525 0.486816L17.9861 2.90382L17.3965 5.67918L23.5028 9.20133Z'
fill='url(#paint1_linear_11430_22515)'
/>
<path
d='M1.5336 11.2352C1.5329 11.2373 1.53483 11.238 1.53556 11.2358C1.67958 10.8038 1.86018 10.3219 2.08564 9.80704C3.26334 7.11765 5.53286 5.32397 8.32492 4.40943C11.117 3.49491 14.1655 3.81547 16.7101 5.28323L17.3965 5.67913L19.8525 0.486761C12.041 -1.07341 4.05728 3.51588 1.54353 11.2051C1.54233 11.2087 1.53796 11.2216 1.5336 11.2352Z'
fill='url(#paint2_linear_11430_22515)'
/>
<path
d='M19.6699 25.6538C18.3843 26.3953 16.8003 26.3953 15.5147 25.6538C15.3402 25.5531 15.1757 25.4399 15.0201 25.3174L12.7591 26.8719L10.8103 30.0209C12.9733 31.821 15.7821 32.3997 18.589 32.0779C20.7013 31.8357 22.7995 31.1665 24.7582 30.0368C26.3492 29.1191 27.7 27.9909 28.8182 26.7195L27.6563 23.8962L25.7762 22.1316L19.6699 25.6538Z'
fill='url(#paint3_linear_11430_22515)'
/>
<path
d='M15.0201 25.3175C14.0296 24.5373 13.4371 23.3406 13.4371 22.0588V21.931V11.2558C13.4371 10.6521 13.615 10.5494 14.1384 10.8513C13.3323 10.3864 11.4703 8.79036 9.17118 10.1165C7.88557 10.858 6.8269 12.4949 6.8269 13.978V21.8362C6.8269 24.775 8.34906 27.8406 10.5445 29.7966C10.6313 29.874 10.7212 29.9469 10.8103 30.0211L15.0201 25.3175Z'
fill='url(#paint4_linear_11430_22515)'
/>
<path
d='M28.6604 5.49565C28.6589 5.49395 28.6573 5.49532 28.6589 5.49703C28.9613 5.83763 29.2888 6.23485 29.6223 6.68734C31.3648 9.05099 32.0158 12.0447 31.4126 14.9176C30.8093 17.7906 29.0071 20.2679 26.4625 21.7357L25.7761 22.1316L28.8181 26.7195C34.0764 20.741 34.09 11.5388 28.6815 5.51929C28.6789 5.51641 28.67 5.50622 28.6604 5.49565Z'
fill='url(#paint5_linear_11430_22515)'
/>
<path
d='M7.09355 13.978C7.09354 12.4949 7.88551 11.1244 9.17113 10.3829C9.34564 10.2822 9.52601 10.1965 9.71002 10.1231L9.49304 7.38962L7.96861 4.26221C5.32671 5.23364 3.1897 7.24125 2.06528 9.83067C1.2191 11.7793 0.75001 13.9294 0.75 16.1888C0.75 18.0243 1.05255 19.7571 1.59553 21.3603L4.62391 21.7666L7.09355 21.0223V13.978Z'
fill='url(#paint6_linear_11430_22515)'
/>
<path
d='M9.71016 10.1231C10.8817 9.65623 12.2153 9.74199 13.3264 10.3829L13.4372 10.4468L22.3326 15.5777C22.9566 15.9376 22.8999 16.2918 22.1946 16.4392L22.7078 16.332C23.383 16.1908 23.9999 15.8457 24.4717 15.3428C25.2828 14.4782 25.5806 13.4351 25.5806 12.5299C25.5806 11.0468 24.7886 9.67634 23.503 8.93479L16.6911 5.00568C14.1436 3.53627 11.0895 3.22294 8.29622 4.14442C8.18572 4.18087 8.07756 4.2222 7.96875 4.26221L9.71016 10.1231Z'
fill='url(#paint7_linear_11430_22515)'
/>
<path
d='M20.0721 31.8357C20.0744 31.8352 20.0739 31.8332 20.0717 31.8337C19.6252 31.925 19.1172 32.0097 18.5581 32.0721C15.638 32.3978 12.7174 31.4643 10.5286 29.5059C8.33986 27.5474 7.09347 24.7495 7.09348 21.814L7.09347 21.0222L1.59546 21.3602C4.1488 28.8989 12.1189 33.5118 20.0411 31.8421C20.0449 31.8413 20.0582 31.8387 20.0721 31.8357Z'
fill='url(#paint8_linear_11430_22515)'
/>
<defs>
<linearGradient id='paint0_linear_11430_22515' x1='20.8102' y1='23.9532' x2='23.9577' y2='12.9901' gradientUnits='userSpaceOnUse'>
<stop stopColor='#1724C9' />
<stop offset='1' stopColor='#1C64F2' />
</linearGradient>
<linearGradient id='paint1_linear_11430_22515' x1='28.0593' y1='10.5837' x2='19.7797' y2='2.33321' gradientUnits='userSpaceOnUse'>
<stop stopColor='#1C64F2' />
<stop offset='1' stopColor='#0092FF' />
</linearGradient>
<linearGradient id='paint2_linear_11430_22515' x1='16.9145' y1='5.2045' x2='4.42432' y2='5.99375' gradientUnits='userSpaceOnUse'>
<stop stopColor='#0092FF' />
<stop offset='1' stopColor='#45B2FF' />
</linearGradient>
<linearGradient id='paint3_linear_11430_22515' x1='16.0698' y1='28.846' x2='27.2866' y2='25.8192' gradientUnits='userSpaceOnUse'>
<stop stopColor='#1C64F2' />
<stop offset='1' stopColor='#0092FF' />
</linearGradient>
<linearGradient id='paint4_linear_11430_22515' x1='8.01881' y1='15.8661' x2='15.9825' y2='24.1181' gradientUnits='userSpaceOnUse'>
<stop stopColor='#1724C9' />
<stop offset='1' stopColor='#1C64F2' />
</linearGradient>
<linearGradient id='paint5_linear_11430_22515' x1='26.2004' y1='21.8189' x2='31.7569' y2='10.6178' gradientUnits='userSpaceOnUse'>
<stop stopColor='#0092FF' />
<stop offset='1' stopColor='#45B2FF' />
</linearGradient>
<linearGradient id='paint6_linear_11430_22515' x1='6.11387' y1='9.31427' x2='3.14054' y2='20.4898' gradientUnits='userSpaceOnUse'>
<stop stopColor='#1C64F2' />
<stop offset='1' stopColor='#0092FF' />
</linearGradient>
<linearGradient id='paint7_linear_11430_22515' x1='21.2932' y1='8.78271' x2='10.4278' y2='11.488' gradientUnits='userSpaceOnUse'>
<stop stopColor='#1724C9' />
<stop offset='1' stopColor='#1C64F2' />
</linearGradient>
<linearGradient id='paint8_linear_11430_22515' x1='7.15667' y1='21.5399' x2='14.0824' y2='31.9579' gradientUnits='userSpaceOnUse'>
<stop stopColor='#0092FF' />
<stop offset='1' stopColor='#45B2FF' />
</linearGradient>
</defs>
</svg>
Flowbite
</a>
<p className='my-6 text-gray-500 dark:text-gray-400'>
Open-source library of over 400+ web components and interactive elements built for better web.
</p>
<ul className='flex flex-wrap justify-center items-center mb-6 text-gray-900 dark:text-white'>
<li>
<a href='#' className='mr-4 hover:underline md:mr-6 '>
About
</a>
</li>
<li>
<a href='#' className='mr-4 hover:underline md:mr-6'>
Premium
</a>
</li>
<li>
<a href='#' className='mr-4 hover:underline md:mr-6 '>
Campaigns
</a>
</li>
<li>
<a href='#' className='mr-4 hover:underline md:mr-6'>
Blog
</a>
</li>
<li>
<a href='#' className='mr-4 hover:underline md:mr-6'>
Affiliate Program
</a>
</li>
<li>
<a href='#' className='mr-4 hover:underline md:mr-6'>
FAQs
</a>
</li>
<li>
<a href='#' className='mr-4 hover:underline md:mr-6'>
Contact
</a>
</li>
</ul>
<span className='text-sm text-gray-500 sm:text-center dark:text-gray-400'>
© 2021-2022{' '}
<a href='#' className='hover:underline'>
Flowbite™
</a>
</div>
<div className='flex flex-col md:flex-row items-center space-y-2 md:space-y-0 md:space-x-4'>
<LocateIcon className='w-5 h-5 mr-2' />
<span className='text-sm'>511 Schiller brucke, Boston</span>
</div>
. All Rights Reserved.
</span>
</div>
</footer>
);
Expand Down
112 changes: 91 additions & 21 deletions src/app/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,98 @@ import { Button } from '../../design-system/ui/button';

const Header = () => {
return (
<header className='bg-white py-6'>
<div className='container mx-auto px-4 flex justify-between items-center'>
<h1 className='text-3xl font-bold'>Sweet Life</h1>
<nav className='space-x-6'>
<a className='text-base font-medium hover:text-gray-600' href='#'>
Home
<header>
<nav className='bg-white border-gray-200 px-4 lg:px-6 py-2.5 dark:bg-gray-800'>
<div className='flex flex-wrap justify-between items-center mx-auto max-w-screen-xl'>
<a href='https://flowbite.com' className='flex items-center'>
<img src='assets/img/logo-no-background.svg' className='w-32 h-32' />
<span className='self-center text-xl font-semibold whitespace-nowrap dark:text-white'>Flowbite</span>
</a>
<a className='text-base font-medium hover:text-gray-600' href='/about'>
About
</a>
<a className='text-base font-medium hover:text-gray-600' href='/products'>
Products
</a>
<a className='text-base font-medium hover:text-gray-600' href='/incidents'>
Incidents
</a>
<a className='text-base font-medium hover:text-gray-600' href='/contact'>
Contact
<Button className='bg-[#bd1e59] text-white px-6 py-2 rounded-md hover:bg-[#a1194f]'>Contact Us</Button>
</a>
</nav>
</div>
<div className='flex items-center lg:order-2'>
<a
href='#'
className='text-gray-800 dark:text-white hover:bg-gray-50 focus:ring-4 focus:ring-gray-300 font-medium rounded-lg text-sm px-4 lg:px-5 py-2 lg:py-2.5 mr-2 dark:hover:bg-gray-700 focus:outline-none dark:focus:ring-gray-800'
>
Log in
</a>
<a
href='#'
className='text-white bg-primary-700 hover:bg-primary focus:ring-4 focus:ring-primary-hover font-medium rounded-lg text-sm px-4 lg:px-5 py-2 lg:py-2.5 mr-2 dark:bg-primary dark:hover:bg-primary-hover focus:outline-none dark:focus:ring-primary-hover'
>
Get started
</a>
<Button
data-collapse-toggle='mobile-menu-2'
type='button'
variant='default'
className='inline-flex items-center p-2 ml-1 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600'
aria-controls='mobile-menu-2'
aria-expanded='false'
>
<span className='sr-only'>Open main menu</span>
<svg className='w-6 h-6' fill='currentColor' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'>
<path
fillRule='evenodd'
d='M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z'
clipRule='evenodd'
/>
</svg>
<svg className='hidden w-6 h-6' fill='currentColor' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'>
<path
fillRule='evenodd'
d='M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z'
clipRule='evenodd'
/>
</svg>
</Button>
</div>
<div className='hidden justify-between items-center w-full lg:flex lg:w-auto lg:order-1' id='mobile-menu-2'>
<ul className='flex flex-col mt-4 font-medium lg:flex-row lg:space-x-8 lg:mt-0'>
<li>
<a
href='.'
className='block py-2 pr-4 pl-3 text-white rounded bg-primary lg:bg-transparent lg:text-primary-700 lg:p-0 dark:text-white'
aria-current='page'
>
Home
</a>
</li>
<li>
<a
href='/about'
className='block py-2 pr-4 pl-3 text-gray-700 border-b border-gray-100 hover:bg-gray-50 lg:hover:bg-transparent lg:border-0 lg:hover:text-primary lg:p-0 dark:text-gray-400 lg:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white lg:dark:hover:bg-transparent dark:border-gray-700'
>
About
</a>
</li>
<li>
<a
href='/Products'
className='block py-2 pr-4 pl-3 text-gray-700 border-b border-gray-100 hover:bg-gray-50 lg:hover:bg-transparent lg:border-0 lg:hover:text-primary lg:p-0 dark:text-gray-400 lg:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white lg:dark:hover:bg-transparent dark:border-gray-700'
>
Products
</a>
</li>
<li>
<a
href='./incidents'
className='block py-2 pr-4 pl-3 text-gray-700 border-b border-gray-100 hover:bg-gray-50 lg:hover:bg-transparent lg:border-0 lg:hover:text-primary lg:p-0 dark:text-gray-400 lg:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white lg:dark:hover:bg-transparent dark:border-gray-700'
>
Incidents
</a>
</li>
<li>
<a
href='/Contact'
className='block py-2 pr-4 pl-3 text-gray-700 border-b border-gray-100 hover:bg-gray-50 lg:hover:bg-transparent lg:border-0 lg:hover:text-primary lg:p-0 dark:text-gray-400 lg:dark:hover:text-white dark:hover:bg-gray-700 dark:hover:text-white lg:dark:hover:bg-transparent dark:border-gray-700'
>
Contact
</a>
</li>
</ul>
</div>
</div>
</nav>
</header>
);
};
Expand Down
Loading

0 comments on commit 887e8ec

Please sign in to comment.