Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
create navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
FemiNoviaLina committed May 9, 2022
1 parent f1533c1 commit 465f1c6
Show file tree
Hide file tree
Showing 16 changed files with 515 additions and 383 deletions.
29 changes: 29 additions & 0 deletions app/View/Components/Button.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

namespace App\View\Components;

use Illuminate\View\Component;

class Button extends Component
{
public $filled;
/**
* Create a new component instance.
*
* @return void
*/
public function __construct($filled = false)
{
$this->filled = $filled;
}

/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return view('components.button');
}
}
35 changes: 35 additions & 0 deletions app/View/Components/Navbar.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

namespace App\View\Components;

use Illuminate\View\Component;

class Navbar extends Component
{

public string $selected;

/**
* Create a new component instance.
*
* @return void
*/
public function __construct($selected)
{
$this->selected = $selected;
}

/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
*/
public function render()
{
return view('components.navbar');
}

public function isRent($option) {
return $option == 'Rent';
}
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"devDependencies": {
"@tailwindcss/forms": "^0.4.0",
"alpinejs": "^3.4.2",
"autoprefixer": "^10.4.2",
"autoprefixer": "^10.4.7",
"axios": "^0.25",
"laravel-mix": "^6.0.6",
"lodash": "^4.17.19",
"postcss": "^8.4.6",
"postcss": "^8.4.13",
"postcss-import": "^14.0.2",
"tailwindcss": "^3.0.18"
"tailwindcss": "^3.0.24"
}
}
Loading

0 comments on commit 465f1c6

Please sign in to comment.