start project

master
Gustavo Luigi 2023-11-29 00:36:10 -03:00
commit a6ffdb572f
4 changed files with 45 additions and 0 deletions

3
config.json Normal file
View File

@ -0,0 +1,3 @@
{
"name": "Forms"
}

10
content/index.blade.php Normal file
View File

@ -0,0 +1,10 @@
@extends("template.{$template}.content.layout")
@section("title", "Forms")
@section("content")
<form action="">
<div>
<label for="nome">Nome</label>
<input type="text" id="nome" class="form-control">
</div>
</form>
@stop

22
content/layout.blade.php Normal file
View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>@yield("title")</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
</head>
<body>
<header class="container">
<h1>@yield("title")</h1>
</header>
<nav class="container">
<a href="{{url('/')}}" class="{{request()->is('inbox')?:'text-dark'}}">Home</a>
<a href="{{url('/inbox')}}" class="{{request()->is('inbox')?'text-dark':''}}">Inbox</a>
</nav>
<main class="container">
@yield('content')
</main>
</body>
</html>

View File

@ -0,0 +1,10 @@
@extends("template.{$template}.content.layout")
@section("title", "Inbox")
@section("content")
<form action="">
<div>
<label for="nome">Nome</label>
<input type="text" id="nome" class="form-control">
</div>
</form>
@stop