Added slogans

- Added Navbar hover animations
This commit is contained in:
2024-02-19 23:37:40 +01:00
parent b10822f7ce
commit f2395accff
4 changed files with 53 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<div class="container mx-auto p-4 mt-4 overflow-visible md:overflow-hidden">
<h1 class="text-4xl font-bold text-center text-gray-800 mb-10">Welcome to SharePulse</h1>
<p class="text-xl text-center text-gray-800 mb-10">Where sharing files is easier than finding a matching sock on laundry day!</p>
<p class="text-xl text-center text-gray-800 mb-10">{{ slogan }}</p>
<div class="grid md:grid-cols-2 gap-4">
<!-- Downloading Section -->
<div class="bg-white shadow-lg rounded-lg p-6 flex flex-col items-center justify-center text-center ">

View File

@ -2,6 +2,7 @@ import {Component, ElementRef, ViewChild} from '@angular/core';
import {RouterLink} from "@angular/router";
import {FormsModule} from "@angular/forms";
import {LegalService} from "../../service/legalService";
import slogans from "../../assets/slogans";
@Component({
selector: 'app-home',
@ -14,7 +15,10 @@ import {LegalService} from "../../service/legalService";
styleUrl: './home.component.scss'
})
export class HomeComponent {
slogan: string = "";
constructor(private legalService: LegalService) {
this.slogan = slogans[Math.floor(Math.random() * slogans.length)];
}
openPrivacyPolicyModal() {

View File

@ -1,12 +1,12 @@
<header>
<nav class="bg-white border-gray-200 px-4 lg:px-6 py-2.5 border-b-2 border-accent-content/5" [ngClass]="{'navbar-shadow': isMenuOpen}">
<div class="flex flex-wrap justify-between items-center mx-auto max-w-screen-xl">
<a routerLink="/" class="flex items-center">
<a routerLink="/" class="flex items-center hover:scale-110 transition-transform duration-100">
<img src="./assets/cloud-solid.svg" class="mr-3 h-6 sm:h-9 animate-in fade-in slide-in-from-top duration-500" alt="Flowbite Logo" />
<span class="self-center text-xl font-semibold whitespace-nowrap">SharePulse</span>
</a>
<div class="flex items-center lg:order-2">
<a routerLink="/credits" class="flex justify-center items-center text-gray-800 font-medium rounded-lg text-sm px-5 py-2 lg:py-2.5 lg:px-5 mr-2" style="min-width: 9rem;"><!--Administration-->About</a>
<a routerLink="/credits" class="hover:scale-110 transition-transform duration-100 lg:visible invisible flex justify-center items-center text-gray-800 font-medium rounded-lg text-sm px-5 py-2 lg:py-2.5 lg:px-5 mr-2" style="min-width: 9rem;"><!--Administration-->About</a>
<button (click)="toggleMenu()" type="button" class="inline-flex items-center p-2 ml-1 text-sm text-gray-500 rounded-lg lg:hidden hover:bg-gray-100 " aria-controls="mobile-menu-2" aria-expanded="false">
<span class="sr-only">Open main menu</span>
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clip-rule="evenodd"></path></svg>
@ -16,10 +16,13 @@
<div [ngClass]="{'hidden': !isMenuOpen, 'flex': isMenuOpen}" class="justify-between items-center w-full lg:flex lg:w-auto lg:order-1" id="mobile-menu-2">
<ul class="flex flex-col mt-4 font-medium lg:flex-row lg:space-x-8 lg:mt-0">
<li>
<a routerLink="/download" class="block py-2 pr-4 pl-3 rounded bg-primary-700 lg:bg-transparent lg:text-primary-700 lg:p-0" aria-current="page">Download</a>
<a routerLink="/download" class="hover:scale-110 transition-transform duration-100 block py-2 pr-4 pl-3 rounded bg-primary-700 lg:bg-transparent lg:text-primary-700 lg:p-0" aria-current="page">Download</a>
</li>
<li>
<a routerLink="/upload" class="block py-2 pr-4 pl-3 rounded bg-primary-700 lg:bg-transparent lg:text-primary-700 lg:p-0" aria-current="page">Upload</a>
<a routerLink="/upload" class="hover:scale-110 transition-transform duration-100 block py-2 pr-4 pl-3 rounded bg-primary-700 lg:bg-transparent lg:text-primary-700 lg:p-0" aria-current="page">Upload</a>
</li>
<li class="lg:hidden visible">
<a routerLink="/about" class="hover:scale-110 transition-transform duration-100 block py-2 pr-4 pl-3 rounded bg-primary-700 lg:bg-transparent lg:text-primary-700 lg:p-0" aria-current="page">About</a>
</li>
</ul>
</div>