diff --git a/mamutes/Users/__pycache__/__init__.cpython-312.pyc b/mamutes/Users/__pycache__/__init__.cpython-312.pyc index df16278..d5b8149 100644 Binary files a/mamutes/Users/__pycache__/__init__.cpython-312.pyc and b/mamutes/Users/__pycache__/__init__.cpython-312.pyc differ diff --git a/mamutes/Users/__pycache__/admin.cpython-312.pyc b/mamutes/Users/__pycache__/admin.cpython-312.pyc index 39e0a0e..da2b7ca 100644 Binary files a/mamutes/Users/__pycache__/admin.cpython-312.pyc and b/mamutes/Users/__pycache__/admin.cpython-312.pyc differ diff --git a/mamutes/Users/__pycache__/apps.cpython-312.pyc b/mamutes/Users/__pycache__/apps.cpython-312.pyc index b6e35df..2a7a7aa 100644 Binary files a/mamutes/Users/__pycache__/apps.cpython-312.pyc and b/mamutes/Users/__pycache__/apps.cpython-312.pyc differ diff --git a/mamutes/Users/__pycache__/forms.cpython-312.pyc b/mamutes/Users/__pycache__/forms.cpython-312.pyc index b72af95..da68e58 100644 Binary files a/mamutes/Users/__pycache__/forms.cpython-312.pyc and b/mamutes/Users/__pycache__/forms.cpython-312.pyc differ diff --git a/mamutes/Users/__pycache__/models.cpython-312.pyc b/mamutes/Users/__pycache__/models.cpython-312.pyc index 24f5df8..de71839 100644 Binary files a/mamutes/Users/__pycache__/models.cpython-312.pyc and b/mamutes/Users/__pycache__/models.cpython-312.pyc differ diff --git a/mamutes/Users/__pycache__/views.cpython-312.pyc b/mamutes/Users/__pycache__/views.cpython-312.pyc index 0c559c3..eab04e1 100644 Binary files a/mamutes/Users/__pycache__/views.cpython-312.pyc and b/mamutes/Users/__pycache__/views.cpython-312.pyc differ diff --git a/mamutes/Users/migrations/0006_membroequipe_profile_picture.py b/mamutes/Users/migrations/0006_membroequipe_profile_picture.py new file mode 100644 index 0000000..c4be45a --- /dev/null +++ b/mamutes/Users/migrations/0006_membroequipe_profile_picture.py @@ -0,0 +1,18 @@ +# Generated by Django 5.1.4 on 2024-12-10 00:46 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('Users', '0005_area_function_membroequipe_areas_and_more'), + ] + + operations = [ + migrations.AddField( + model_name='membroequipe', + name='profile_picture', + field=models.ImageField(blank=True, null=True, upload_to='profile_pictures/'), + ), + ] diff --git a/mamutes/Users/migrations/0007_remove_membroequipe_profile_picture.py b/mamutes/Users/migrations/0007_remove_membroequipe_profile_picture.py new file mode 100644 index 0000000..ed6ee4f --- /dev/null +++ b/mamutes/Users/migrations/0007_remove_membroequipe_profile_picture.py @@ -0,0 +1,17 @@ +# Generated by Django 5.1.4 on 2024-12-16 23:40 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('Users', '0006_membroequipe_profile_picture'), + ] + + operations = [ + migrations.RemoveField( + model_name='membroequipe', + name='profile_picture', + ), + ] diff --git a/mamutes/db.sqlite3 b/mamutes/db.sqlite3 index 7dd9003..82c44c3 100644 Binary files a/mamutes/db.sqlite3 and b/mamutes/db.sqlite3 differ diff --git a/mamutes/guest/static/css/home.css b/mamutes/guest/static/css/home.css index 3bc3f39..4ea1172 100644 --- a/mamutes/guest/static/css/home.css +++ b/mamutes/guest/static/css/home.css @@ -782,10 +782,17 @@ path{ display: flex; justify-content: center; align-items: flex-start; + transition: transform 0.3s ease-in-out; } -.carousel-item.active { - transform: scale(1.2); +.carousel-item:hover { + transform: scale(1.05); + transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; + opacity: 0.85; +} + +.carousel-item .carousel-item-inner { + pointer-events: none; } .card-hall{ diff --git a/mamutes/guest/static/scripts/index.js b/mamutes/guest/static/scripts/index.js new file mode 100644 index 0000000..8b8aa0d --- /dev/null +++ b/mamutes/guest/static/scripts/index.js @@ -0,0 +1,43 @@ +const carouselTrack = document.querySelector('.carousel-track'); +const carouselItems = document.querySelectorAll('.carousel-item'); +const totalItems = carouselItems.length; + +const itemWidth = carouselItems[0].offsetWidth; +const gap = 16; +const fullItemWidth = itemWidth + gap; + +let offset = 0; +const speed = 1; +let isPaused = false; + +function moveCarousel() { + if (!isPaused) { + offset -= speed; + + if (offset <= -fullItemWidth) { + carouselTrack.appendChild(carouselTrack.firstElementChild); + offset += fullItemWidth; + } + + carouselTrack.style.transition = 'none'; + carouselTrack.style.transform = `translateX(${offset}px)`; + + setTimeout(() => { + carouselTrack.style.transition = 'transform 0.5s ease'; + }, 100); + } + + requestAnimationFrame(moveCarousel); +} + +carouselTrack.addEventListener('mouseover', () => { + isPaused = true; +}); + +carouselTrack.addEventListener('mouseout', () => { + isPaused = false; +}); + + +moveCarousel(); + diff --git a/mamutes/guest/templates/index.html b/mamutes/guest/templates/index.html index 6d795f9..5715870 100644 --- a/mamutes/guest/templates/index.html +++ b/mamutes/guest/templates/index.html @@ -217,7 +217,7 @@ -
+
@@ -390,6 +390,120 @@
+ + + + + +

Fez parte da Mamutes e quer aparecer aqui também? Clique aqui!

@@ -570,7 +684,7 @@ Facebook - /mamutesdocerrado + /mamutesdocerrado
@@ -587,5 +701,7 @@
+ + {% endblock %} \ No newline at end of file diff --git a/mamutes/media/profile_pictures/pfp-pic.jfif b/mamutes/media/profile_pictures/pfp-pic.jfif new file mode 100644 index 0000000..cbebacd Binary files /dev/null and b/mamutes/media/profile_pictures/pfp-pic.jfif differ