Skip to content

Commit

Permalink
Merge pull request #41 from Crudzaso/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
DiegoAndresRamirez authored Nov 6, 2024
2 parents 63c238e + 7ac0add commit 479f748
Show file tree
Hide file tree
Showing 8 changed files with 118 additions and 2 deletions.
13 changes: 13 additions & 0 deletions app/Http/Controllers/AboutController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class AboutController extends Controller
{
public function index()
{
return redirect('/about');
}
}
Binary file added public/assets/media/logo/gananzaLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/team/member1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/team/member2.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/team/member3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
98 changes: 98 additions & 0 deletions resources/js/Pages/About.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<template>
<div :style="{ backgroundColor: theme.background, color: theme.textPrimary }" class="min-h-screen transition-colors duration-500">
<!-- Encabezado de la página -->
<header :style="{ background: theme.primary }" class="p-8 text-center">
<h1 class="text-4xl font-bold mb-2">Acerca de Gananza</h1>
<p class="text-lg">Más cerca de ganar</p>

<a href="/" class="absolute left-8 top-4">
<img src="/assets/media/logo/gananzaLogo.png" alt="Logo de Gananza" class="w-32 h-32 object-contain cursor-pointer" />
</a>
</header>

<!-- Descripción del proyecto -->
<section class="py-12 px-6 max-w-4xl mx-auto text-center">
<h2 class="text-3xl font-semibold mb-4" :style="{ color: theme.accent }">¿Qué es Gananza?</h2>
<p class="text-lg leading-relaxed" :style="{ color: theme.textSecondary }">
Gananza es una plataforma innovadora que revoluciona la forma en que organizamos y participamos en rifas, conectando personas y sueños a través de la tecnología.
</p>
<p class="text-lg leading-relaxed mt-4" :style="{ color: theme.textSecondary }">
Con valores de confianza, transparencia, innovación y accesibilidad, Gananza ofrece una experiencia única, donde cada ticket representa una oportunidad de ganar y hacer realidad tus sueños.
</p>
</section>

<!-- Sección de Equipo -->
<section class="py-12 px-6 max-w-6xl mx-auto text-center">
<h2 class="text-3xl font-semibold mb-8" :style="{ color: theme.accent }">Nuestro Equipo</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div v-for="(member, index) in teamMembers" :key="index" class="text-center p-6 rounded-lg shadow-lg transition-transform duration-300 hover:scale-105" :style="{ background: theme.cardBackground }">
<img :src="member.photo" alt="Foto de {{ member.name }}" class="w-40 h-40 mx-auto rounded-full mb-4 object-cover" />

<h3 class="text-2xl font-semibold" :style="{ color: theme.textPrimary }">{{ member.name }}</h3>
<p class="text-lg" :style="{ color: theme.textSecondary }">{{ member.role }}</p>
<p class="mt-2" :style="{ color: theme.textSecondary }">{{ member.bio }}</p>
</div>
</div>
</section>

<!-- Toggle de Modo Oscuro/Claro -->
<div class="fixed top-4 right-4">
<button @click="toggleDarkMode" class="p-3 rounded-full transition-colors duration-200 hover:scale-105" :style="{ background: theme.cardBackground }">
<Sun v-if="isDarkMode" :size="24" :color="theme.accent" />
<Moon v-else :size="24" :color="theme.primary" />
</button>
</div>
</div>
</template>

<script setup>
import { ref, computed, onMounted } from 'vue';
import { Sun, Moon } from 'lucide-vue-next';
// Estado de modo oscuro
const isDarkMode = ref(false);
// Función para alternar el modo oscuro/claro
const toggleDarkMode = () => {
isDarkMode.value = !isDarkMode.value;
localStorage.setItem('isDarkMode', isDarkMode.value); // Guardar el modo en localStorage
};
// Cargar el modo al montar
onMounted(() => {
const savedMode = localStorage.getItem('isDarkMode');
isDarkMode.value = savedMode === 'true';
});
// Definición del tema dinámico
const theme = computed(() => ({
background: isDarkMode.value ? '#121212' : '#FFFFFF',
textPrimary: isDarkMode.value ? '#E0E0E0' : '#2C3E50',
textSecondary: isDarkMode.value ? '#B0BEC5' : '#757575',
primary: isDarkMode.value ? '#5DADE2' : '#5DADE2', // Azul suave en ambos modos
accent: isDarkMode.value ? '#F4D03F' : '#58D68D', // Dorado y Verde Suave
cardBackground: isDarkMode.value ? '#1E1E1E' : '#FFFFFF'
}));
// Información del equipo
const teamMembers = ref([
{
name: 'Alejandro Velasquez',
role: 'Full Stack Developer',
bio: 'Como desarrollador tanto de backend como de frontend y Scrum Master, se encarga de liderar las sprints y coordinar al equipo para asegurar que cada fase del desarrollo esté alineada con los objetivos del proyecto',
photo: '/assets/team/member1.jpg'
},
{
name: 'Diego Andres Ramirez',
role: 'Full Stack Developer',
bio: 'Como desarrollador full stack y encargado de la administración de GitHub, su rol es crucial para mantener la coherencia y la calidad del código. Gracias a su dominio en backend y frontend, es capaz de abordar cualquier problema técnico de manera integral, garantizando que los desarrollos sean consistentes y escalables',
photo: '/assets/team/member2.jpeg'
},
{
name: 'Jafet Ibarguen',
role: 'Full Stack Developer',
bio: 'Especializado en el diseño de componentes y en la experiencia de usuario, su trabajo se centra en crear interfaces intuitivas y atractivas para los usuarios de la plataforma de rifas.',
photo: '/assets/team/member3.jpeg'
}
]);
</script>
4 changes: 2 additions & 2 deletions resources/js/Pages/Welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ onBeforeUnmount(() => {
Repositorio en GitHub</Link>
<Link href="/contact" class="hover:underline transition-colors duration-200"
:style="{ color: theme.textSecondary }">Contáctanos</Link>
<Link href="/about" class="hover:underline transition-colors duration-200"
:style="{ color: theme.textSecondary }">Sobre Nosotros</Link>
<Link :href="route('about')" class="hover:underline transition-colors duration-200" :style="{ color: theme.textSecondary }">
Sobre Nosotros</Link>
</div>
<p class="text-sm mt-4">Laravel v{{ laravelVersion }} (PHP v{{ phpVersion }})</p>
</div>
Expand Down
5 changes: 5 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php

use App\Http\Controllers\AboutController;
use App\Http\Controllers\AuthController;
use Illuminate\Foundation\Application;
use Illuminate\Support\Facades\Route;
Expand Down Expand Up @@ -51,3 +52,7 @@
return Inertia::render('Profile/TestClient');
});
});

Route::get('/about', function () {
return Inertia::render('About');
})->name('about');

0 comments on commit 479f748

Please sign in to comment.