Spaces:
Running

DISSASTER commited on
Commit
b6bb3b8
·
verified ·
1 Parent(s): f1c5ac9

Исправь пожалуйста раздел "наши риелторы" там сейчас дублируются риэлтора и показываются все сразу - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +4 -67
index.html CHANGED
@@ -885,69 +885,6 @@
885
  <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
886
  <!-- Agents will be populated from JavaScript -->
887
  <div id="agents-container"></div>
888
-
889
- <!-- Agent 2 -->
890
- <div class="glass-effect rounded-xl p-6 text-center transition duration-500 ease-in-out hover:shadow-lg">
891
- <div class="agent-photo mx-auto mb-6 w-32 h-32 rounded-full overflow-hidden border-4 border-gray-700">
892
- <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Agent" class="w-full h-full object-cover">
893
- </div>
894
- <h3 class="text-xl font-semibold mb-2">Виктор Кожухарь</h3>
895
- <p class="text-gray-400 mb-4">Риелтор по коммерческой недвижимости</p>
896
- <div class="gold-bg text-black font-bold px-3 py-1 rounded-full text-sm inline-block mb-4">
897
- 8 объектов
898
- </div>
899
- <div class="flex justify-center space-x-4 mb-4">
900
- <a href="#" class="social-icon text-gray-400 hover:text-green-500"><i class="fab fa-whatsapp text-xl"></i></a>
901
- <a href="#" class="social-icon text-gray-400 hover:text-blue-500"><i class="fab fa-telegram text-xl"></i></a>
902
- <a href="#" class="social-icon text-gray-400 hover:text-purple-500"><i class="fab fa-viber text-xl"></i></a>
903
- <a href="tel:+37312345678" class="social-icon text-gray-400 hover:text-gold-500"><i class="fas fa-phone-alt text-xl"></i></a>
904
- </div>
905
- <button class="w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
906
- Посмотреть объекты
907
- </button>
908
- </div>
909
-
910
- <!-- Agent 3 -->
911
- <div class="glass-effect rounded-xl p-6 text-center transition duration-500 ease-in-out hover:shadow-lg">
912
- <div class="agent-photo mx-auto mb-6 w-32 h-32 rounded-full overflow-hidden border-4 border-gray-700">
913
- <img src="https://randomuser.me/api/portraits/women/68.jpg" alt="Agent" class="w-full h-full object-cover">
914
- </div>
915
- <h3 class="text-xl font-semibold mb-2">Елена Волошина</h3>
916
- <p class="text-gray-400 mb-4">Эксперт по загородной недвижимости</p>
917
- <div class="gold-bg text-black font-bold px-3 py-1 rounded-full text-sm inline-block mb-4">
918
- 15 объектов
919
- </div>
920
- <div class="flex justify-center space-x-4 mb-4">
921
- <a href="#" class="social-icon text-gray-400 hover:text-green-500"><i class="fab fa-whatsapp text-xl"></i></a>
922
- <a href="#" class="social-icon text-gray-400 hover:text-blue-500"><i class="fab fa-telegram text-xl"></i></a>
923
- <a href="#" class="social-icon text-gray-400 hover:text-purple-500"><i class="fab fa-viber text-xl"></i></a>
924
- <a href="tel:+37312345678" class="social-icon text-gray-400 hover:text-gold-500"><i class="fas fa-phone-alt text-xl"></i></a>
925
- </div>
926
- <button class="w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
927
- Посмотреть объекты
928
- </button>
929
- </div>
930
-
931
- <!-- Agent 4 -->
932
- <div class="glass-effect rounded-xl p-6 text-center transition duration-500 ease-in-out hover:shadow-lg">
933
- <div class="agent-photo mx-auto mb-6 w-32 h-32 rounded-full overflow-hidden border-4 border-gray-700">
934
- <img src="https://randomuser.me/api/portraits/men/75.jpg" alt="Agent" class="w-full h-full object-cover">
935
- </div>
936
- <h3 class="text-xl font-semibold mb-2">Дмитрий Сырбу</h3>
937
- <p class="text-gray-400 mb-4">Риелтор по новостройкам</p>
938
- <div class="gold-bg text-black font-bold px-3 py-1 rounded-full text-sm inline-block mb-4">
939
- 10 объектов
940
- </div>
941
- <div class="flex justify-center space-x-4 mb-4">
942
- <a href="#" class="social-icon text-gray-400 hover:text-green-500"><i class="fab fa-whatsapp text-xl"></i></a>
943
- <a href="#" class="social-icon text-gray-400 hover:text-blue-500"><i class="fab fa-telegram text-xl"></i></a>
944
- <a href="#" class="social-icon text-gray-400 hover:text-purple-500"><i class="fab fa-viber text-xl"></i></a>
945
- <a href="tel:+37312345678" class="social-icon text-gray-400 hover:text-gold-500"><i class="fas fa-phone-alt text-xl"></i></a>
946
- </div>
947
- <button class="w-full gold-bg text-black font-bold py-2 px-4 rounded-lg btn-gold hover:bg-yellow-600 transition duration-300">
948
- Посмотреть объекты
949
- </button>
950
- </div>
951
  </div>
952
 
953
  <div class="text-center mt-12">
@@ -2149,7 +2086,7 @@
2149
  const loadMoreAgentsBtn = document.getElementById('load-more-agents-btn');
2150
  const closeAgentsBtn = document.getElementById('close-agents-btn');
2151
  let visibleAgentsCount = 0;
2152
- const agentsPerPage = window.innerWidth < 768 ? 3 : 4;
2153
 
2154
  function showNextAgents() {
2155
  const nextItems = Math.min(visibleAgentsCount + agentsPerPage, agentCards.length);
@@ -2167,7 +2104,7 @@
2167
  }
2168
 
2169
  function closeAgents() {
2170
- // Hide all agents except first 3
2171
  agentCards.forEach((card, index) => {
2172
  if (index >= agentsPerPage) {
2173
  card.classList.add('hidden');
@@ -2179,10 +2116,10 @@
2179
  loadMoreAgentsBtn.classList.remove('hidden');
2180
  }
2181
 
2182
- // Initialize - show first 3 agents on mobile, 4 on desktop
2183
  // Initialize agents display based on screen size
2184
  function initAgentsDisplay() {
2185
- const agentsToShow = window.innerWidth < 768 ? 3 : 4;
2186
 
2187
  agentCards.forEach((card, index) => {
2188
  if (index >= agentsToShow) {
 
885
  <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8">
886
  <!-- Agents will be populated from JavaScript -->
887
  <div id="agents-container"></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
888
  </div>
889
 
890
  <div class="text-center mt-12">
 
2086
  const loadMoreAgentsBtn = document.getElementById('load-more-agents-btn');
2087
  const closeAgentsBtn = document.getElementById('close-agents-btn');
2088
  let visibleAgentsCount = 0;
2089
+ const agentsPerPage = window.innerWidth < 768 ? 2 : 4;
2090
 
2091
  function showNextAgents() {
2092
  const nextItems = Math.min(visibleAgentsCount + agentsPerPage, agentCards.length);
 
2104
  }
2105
 
2106
  function closeAgents() {
2107
+ // Hide all agents except first batch
2108
  agentCards.forEach((card, index) => {
2109
  if (index >= agentsPerPage) {
2110
  card.classList.add('hidden');
 
2116
  loadMoreAgentsBtn.classList.remove('hidden');
2117
  }
2118
 
2119
+ // Initialize - show first agents on mobile, 4 on desktop
2120
  // Initialize agents display based on screen size
2121
  function initAgentsDisplay() {
2122
+ const agentsToShow = window.innerWidth < 768 ? 2 : 4;
2123
 
2124
  agentCards.forEach((card, index) => {
2125
  if (index >= agentsToShow) {