This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use yii\helpers\Url; | |
/* @var $this yii\web\View */ | |
?> | |
<h1 class="text text-center">Clientes</h1> | |
<a href="<?= Url::to(['clients/create']);?>" class="btn btn-success">Novo Cliente</a> | |
<table class="table"> | |
<thead> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create-react-app exemplo-react-bodymovin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i react-router-dom | |
npm i react-bodymovin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactBodyMovin from 'react-bodymovin'; | |
import ErrorServerAnimation from './../animations/error-500.json'; | |
const ErrorServer = () => { | |
//constante de configuração do ReactBodyMovin | |
const bodyMovinOptions = { | |
loop: true, | |
autoplay: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactBodyMovin from 'react-bodymovin'; | |
import NotFoundAnimation from './../animations/error-404.json'; | |
const NotFound = () => { | |
//constante de configuração do ReactBodyMovin | |
const bodyMovinOptions = { | |
loop: true, | |
autoplay: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { Link } from 'react-router-dom'; | |
const Home = () => { | |
return ( | |
<div> | |
<h1>Animações do Adobe After Effects no React JS</h1> | |
<ul> | |
<li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
BrowserRouter as Router, | |
Switch, | |
Route | |
} from 'react-router-dom'; | |
import Home from './components/Home'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composer create-project --prefer-dist laravel/laravel upload-base64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php artisan make:controller UploadController |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Route::post('/send-file', 'UploadController@sendFile'); |