|
1 | 1 | <div class="text-center rounded-box mx-auto relative"> |
2 | | - <div class="relative"> |
3 | | - <%= image_tag 'intro-landing.jpg', alt: "Ruby Conf Africa 2025", class: "w-full object-cover rounded-lg" %> |
4 | | - <div class="absolute inset-0 bg-black bg-opacity-40 rounded-lg"></div> |
5 | | - <div class="absolute inset-0 flex items-center justify-center"> |
6 | | - <%= link_to "https://rubyconf.africa", title: "Click to visit Ruby Conf Africa 2025", class: "block relative z-10" do %> |
7 | | - <div class="text-center"> |
8 | | - <span class="text-2xl md:text-4xl font-extrabold text-white bg-red-600 bg-opacity-90 px-6 py-3 rounded-lg shadow-lg inline-block transform hover:scale-105 transition-transform duration-300"> |
9 | | - Ruby Conf Africa 2025 🔗 |
10 | | - <p class="mt-4 text-white text-lg md:text-lg font-medium">Join the largest Ruby conference in Africa!</p> |
11 | | - </span> |
12 | | - </div> |
13 | | - <% end %> |
14 | | - </div> |
| 2 | + <div class="relative"> |
| 3 | + <%= image_tag 'intro-landing.jpg', alt: "Ruby Conf Africa 2025", class: "w-full object-cover rounded-lg" %> |
| 4 | + <div class="absolute inset-0 bg-black bg-opacity-40 rounded-lg"></div> |
| 5 | + <div class="absolute inset-0 flex items-center justify-center"> |
| 6 | + <%= link_to "https://rubyconf.africa", title: "Click to visit Ruby Conf Africa 2025", class: "block relative z-10" do %> |
| 7 | + <div class="text-center"> |
| 8 | + <span class="text-2xl md:text-4xl font-extrabold text-white bg-red-600 bg-opacity-90 px-6 py-3 rounded-lg shadow-lg inline-block transform hover:scale-105 transition-transform duration-300 sm:inline-block group-hover:inline-block"> |
| 9 | + Ruby Conf Africa 2025 🔗 |
| 10 | + <p class="mt-4 text-white text-lg md:text-lg font-medium hidden sm:block">Join the largest Ruby conference in Africa!</p> |
| 11 | + </span> |
| 12 | + <% end %> |
15 | 13 | </div> |
| 14 | + </div> |
16 | 15 | </div> |
17 | 16 |
|
18 | 17 | <div class="grid md:grid-cols-2 pt-10 pb-10 gap-10"> |
19 | | - <div class="md:pt-12 md:px-12 flex flex-col gap-8"> |
| 18 | + <div class="md:pt-12 md:px-12 flex flex-col gap-8 text-center md:text-left"> |
20 | 19 | <h1 class="text-5xl font-semibold capitalize text-red-600 leading-[60px]"> |
21 | 20 | African Ruby Community |
22 | 21 | </h1> |
23 | 22 |
|
24 | | - <p class="text-base sm:w-3/4 leading-7 text-black font-normal"> |
| 23 | + <p class="text-base sm:w-3/4 leading-7 text-black font-normal mx-auto md:mx-0"> |
25 | 24 | A community organization that seeks to promote computer software programming skills with |
26 | 25 | the Ruby programming language. |
27 | 26 | </p> |
28 | 27 |
|
29 | | - <%= link_to new_user_registration_path do %> |
30 | | - <button class="btn btn-primary rounded-full py-4 px-8 text-white flex justify-center items-center gap-2"> |
31 | | - <span>Join Us</span> |
32 | | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-4"> |
33 | | - <path fill-rule="evenodd" d="M2 10a.75.75 0 01.75-.75h12.59l-2.1-1.95a.75.75 0 |
34 | | - 111.02-1.1l3.5 3.25a.75.75 0 010 1.1l-3.5 3.25a.75.75 0 |
35 | | - 11-1.02-1.1l2.1-1.95H2.75A.75.75 0 012 10z" clip-rule="evenodd"/> |
36 | | - </svg> |
37 | | - </button> |
38 | | - <% end %> |
| 28 | + <div class="flex justify-center md:justify-start"> |
| 29 | + <%= link_to new_user_registration_path do %> |
| 30 | + <button class="btn btn-primary rounded-full py-4 px-8 text-white flex justify-center items-center gap-2"> |
| 31 | + <span>Join Us</span> |
| 32 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-4"> |
| 33 | + <path fill-rule="evenodd" d="M2 10a.75.75 0 01.75-.75h12.59l-2.1-1.95a.75.75 0 |
| 34 | + 111.02-1.1l3.5 3.25a.75.75 0 010 1.1l-3.5 3.25a.75.75 0 |
| 35 | + 11-1.02-1.1l2.1-1.95H2.75A.75.75 0 012 10z" clip-rule="evenodd"/> |
| 36 | + </svg> |
| 37 | + </button> |
| 38 | + <% end %> |
| 39 | + </div> |
39 | 40 | </div> |
40 | 41 |
|
41 | 42 | <div class="grid lg:grid-cols-2 grid-cols-1 lg:gap-0 gap-5 lg:-ml-10"> |
42 | | - <div class="bg-red-600 text-white rounded-lg p-10 w-64 lg:w-72 h-40 text flex flex-col gap-3 justify-center items-center hover:scale-105 transition-transform duration-300"> |
| 43 | + <div class="bg-red-600 text-white rounded-lg p-10 w-76 h-40 text flex flex-col gap-3 justify-center items-center hover:scale-105 transition-transform duration-300"> |
43 | 44 | <p class="text-5xl font-bold"> 5000 + </p> |
44 | 45 | <p class="text-sm font-semibold">Members across East Africa</p> |
45 | 46 | </div> |
|
0 commit comments