home.blade.php 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @extends('layout')
  2. @section('content')
  3. <main class="container mx-auto px-5">
  4. <section class="w-full flex xl:flex-row flex-col-reverse xl:justify-between xl:bg-gray-300 relative">
  5. <article>
  6. <img class='xl:w-auto w-full' src="{{ asset('images/hero.webp') }}" alt="" loading="lazy">
  7. </article>
  8. <article class='bg-white shadow-lg xl:absolute top-1/4 right-16 flex flex-col xl:gap-12 md:gap-5 gap-12 xl:items-start items-center py-16 px-12'>
  9. <article class="flex flex-col xl:items-start items-center gap-3">
  10. <h1 class="xl:text-start text-center text-3xl font-bold text-indigo-800">Корочки.есть - самый лучший портал</h1>
  11. <p class="text-xl xl:text-start text-center">- Для получения знаний!</p>
  12. </article>
  13. <a href="{{ route('apps') }}" class='bg-green-600 py-2 px-4 md:text-base text-xl rounded-xl text-white font-medium xl:self-end self-center'>Подать заявку</a>
  14. </article>
  15. </section>
  16. <section class="flex flex-col items-center">
  17. <h2 class="text-2xl font-bold text-indigo-800 my-12">Наши преимущества:</h2>
  18. <ul class="flex lg:flex-row flex-col lg:gap-16 gap-10">
  19. <li class="flex flex-col items-center gap-1 ">
  20. <img src="{{ asset('images/adv1.webp') }}" alt="adventage1" loading="lazy" class='md:w-32 w-28'>
  21. <p class='text-xl italic w-48 text-center'>Первые на рынке по предоставлению знаний</p>
  22. </li>
  23. <li class="flex flex-col items-center gap-1 ">
  24. <img src="{{ asset('images/adv2.webp') }}" alt="adventage2" loading="lazy" class='md:w-32 w-28'>
  25. <p class='text-xl italic w-48 text-center'>Отличные преподаватели</p>
  26. </li>
  27. <li class="flex flex-col items-center gap-1 ">
  28. <img src="{{ asset('images/adv3.webp') }}" alt="adventage3" loading="lazy" class='md:w-32 w-28'>
  29. <p class='text-xl italic w-48 text-center'>Цена/качество за обучение</p>
  30. </li>
  31. </ul>
  32. </section>
  33. <section class='flex flex-col items-center gap-1'>
  34. <h3 class="text-2xl font-bold text-indigo-800 mt-12 mb-4">Наши аудитории:</h3>
  35. <article class="relative overflow-hidden xl:w-1/2 md:w-2/3 w-full">
  36. <article class='flex duration-500' id="carousel">
  37. <img src="{{ asset('images/1.webp') }}" alt="carousel_item1" loading="lazy" class='w-full flex-shrink-0 '>
  38. <img src="{{ asset('images/2.webp') }}" alt="carousel_item2" loading="lazy" class='w-full flex-shrink-0 '>
  39. <img src="{{ asset('images/3.webp') }}" alt="carousel_item3" loading="lazy" class='w-full flex-shrink-0 '>
  40. <img src="{{ asset('images/4.webp') }}" alt="carousel_item4" loading="lazy" class='w-full flex-shrink-0 '>
  41. </article>
  42. <button class='w-14 h-14 font-bold bg-gray-800 text-white rounded-full absolute top-1/2 right-0' onclick="next()">></button>
  43. <button class='w-14 h-14 font-bold bg-gray-800 text-white rounded-full absolute top-1/2 ' onclick="prev()"><</button>
  44. </article>
  45. </section>
  46. <script>
  47. let index = 1
  48. function prev() {
  49. index = (index + 3) % 4
  50. carouselAction()
  51. }
  52. function next() {
  53. index = (index + 1) % 4
  54. carouselAction()
  55. }
  56. function carouselAction() {
  57. document.getElementById('carousel').style.transform = `translateX(-${index * 100}%)`
  58. }
  59. setInterval(() => {
  60. next()
  61. }, 3000);
  62. </script>
  63. </main>
  64. @endsection