Skip to content

Feature create core layout#40

Open
Th-Fernandes wants to merge 7 commits into
mainfrom
36-feature-create-project-layout
Open

Feature create core layout#40
Th-Fernandes wants to merge 7 commits into
mainfrom
36-feature-create-project-layout

Conversation

@Th-Fernandes
Copy link
Copy Markdown
Collaborator

@Th-Fernandes Th-Fernandes commented Apr 11, 2024

Description

In order to make it easier to re-use the most used layout all over the project, this PR introduces the layout-core.blade.php layout.

Overview

  • a new layout component at resources/views/layout
  • a new header component that uses the new brand's color
  • a aside component that navigates through project details
  • wrapper components that render different versions of the layout depending in which route user is
  • the configuration of the new color at tailwind file. Just use main-400 prefix to use it

Use-case

It is quite simple to re-use the layout component. Here are the step-by-step:

  • create a new blade file
  • include "@extends('layout.core.layout')" at the top of the file
  • wrap all the main content of your new file using "@section" directive (it must be called 'content' in order for the layout component to recognize your content )
/* resources/views/project/index.blade.php */

@extends('layout.core.layout')

@section('content')
   <h1> Sup everyone!</h1>
   <p> This is how the layout should be re-used :D</p>
@endSection

Releated Issues

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 11, 2024

Deploy Preview for diagier failed.

Name Link
🔨 Latest commit 45596e3
🔍 Latest deploy log https://app.netlify.com/sites/diagier/deploys/6618730030eb880008e8614e

@Th-Fernandes Th-Fernandes self-assigned this Apr 11, 2024
@Th-Fernandes Th-Fernandes added the 👨‍💻dev 👨‍💻 dev task label Apr 11, 2024
@Th-Fernandes Th-Fernandes requested a review from Gierdiaz April 12, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👨‍💻dev 👨‍💻 dev task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants