Skip to content
Snippets Groups Projects
Commit baffbf46 authored by Gabriel_Tha's avatar Gabriel_Tha
Browse files

Adiciona rotas de Sobre/Contato. Atualiza Navbar

parent 37626e50
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,17 @@ class HomeController extends Controller
public function galery()
{
$images = Image::all();
return view('frontend.galery')->with(['images' => $images, 'frase' => $this->frase()]);
return view('frontend.galery')->with(['images' => $images]);
}
public function about()
{
return view('frontend.about');
}
public function contact()
{
return view('frontend.contact');
}
public function frase(){
......
@extends('frontend.layout.base')
@section('content')
<!-- Header -->
<div class="div-index-geral">
<img class="bimagem" src="{{ asset('storage/images/background.jpg') }}"/>
<div class="div-index-texto" align="center">
<h2 class="hd2">Remember PET</h2>
<p class="pr1">Lembranças de toda a história do PET Computação recuperadas ao longo do tempo</p>
<a href="galery">
<button class="button-index">GALERIA</button>
</a>
</div>
</div>
@endsection
@section('bottomJs')
<script>
// Used to toggle the menu on small screens when clicking on the menu button
function myFunction() {
var x = document.getElementById("navDemo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>
@endsection
\ No newline at end of file
@extends('frontend.layout.base')
@section('content')
<!-- Header -->
<div class="div-index-geral">
<img class="bimagem" src="{{ asset('storage/images/background.jpg') }}"/>
<div class="div-index-texto" align="center">
<h2 class="hd2">Remember PET</h2>
<p class="pr1">Lembranças de toda a história do PET Computação recuperadas ao longo do tempo</p>
<a href="galery">
<button class="button-index">GALERIA</button>
</a>
</div>
</div>
@endsection
@section('bottomJs')
<script>
// Used to toggle the menu on small screens when clicking on the menu button
function myFunction() {
var x = document.getElementById("navDemo");
if (x.className.indexOf("w3-show") == -1) {
x.className += " w3-show";
} else {
x.className = x.className.replace(" w3-show", "");
}
}
</script>
@endsection
\ No newline at end of file
......@@ -2,18 +2,17 @@
<div class="w3-top">
<div class="w3-bar w3-black w3-card w3-left-align w3-large">
<a class="w3-bar-item w3-button w3-hide-medium w3-hide-large w3-right w3-padding-large w3-hover-white w3-large w3-black" href="javascript:void(0);" onclick="myFunction()" title="Toggle Navigation Menu"><i class="fa fa-bars"></i></a>
<a href="index.html" class="w3-bar-item w3-button w3-padding-large home">REMEMBER PET</a>
<a href="/" class="w3-bar-item w3-button w3-padding-large home">REMEMBER PET</a>
<a href="galery" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Galeria</a>
<a href="entrevistas.html" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Entrevistas</a>
<a href="sobre.html" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Sobre</a>
<a href="contato.html" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Contato</a>
<a href="about" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Sobre</a>
<a href="contact" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Contato</a>
<!--<a href="#" class="w3-bar-item w3-button w3-hide-small w3-padding-large w3-hover-white">Link 4</a> -->
</div>
<!-- Navbar on small screens -->
<div id="navDemo" class="w3-bar-block w3-black w3-hide w3-hide-large w3-hide-medium w3-large">
<a href="galery" class="w3-bar-item w3-button w3-padding-large w3-hover-white">Galeria</a>
<a href="sobre.html" class="w3-bar-item w3-button w3-padding-large w3-hover-white">Sobre</a>
<a href="contato.html" class="w3-bar-item w3-button w3-padding-large w3-hover-white">Contato</a>
<a href="about" class="w3-bar-item w3-button w3-padding-large w3-hover-white">Sobre</a>
<a href="contact" class="w3-bar-item w3-button w3-padding-large w3-hover-white">Contato</a>
<!--<a href="#" class="w3-bar-item w3-button w3-padding-large">Link 4</a> -->
</div>
</div>
\ No newline at end of file
......@@ -18,6 +18,8 @@
Route::get('/', 'HomeController@index')->name('home');
Route::get('/galery', 'HomeController@galery')->name('galery');
Route::get('/about', 'HomeController@about')->name('about');
Route::get('/contact', 'HomeController@contact')->name('contact');
Route::group(['prefix' => 'dashboard', 'middleware' => ['web', 'auth']], function () {
Route::get('/', function () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment