Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
L
library
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kanoon meysam tamar
library
Commits
52b069a7
Commit
52b069a7
authored
May 03, 2020
by
Mohammad Javad Ghasemy
🦈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Just Say Hello To my React App
parent
31d18df6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
97 deletions
+18
-97
resources/views/welcome.blade.php
resources/views/welcome.blade.php
+11
-94
routes/web.php
routes/web.php
+7
-3
No files found.
resources/views/welcome.blade.php
View file @
52b069a7
<!DOCTYPE html>
<html
lang=
"{{ str_replace('_', '-', app()->getLocale()) }}"
>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
Laravel
</title>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
href=
"{{asset('css/app.css')}}"
rel=
"stylesheet"
type=
"text/css"
>
<title>
Laravel
</title>
<!-- Fonts -->
<link
href=
"https://fonts.googleapis.com/css?family=Nunito:200,600"
rel=
"stylesheet"
>
</head>
<!-- Styles -->
<style>
html
,
body
{
background-color
:
#fff
;
color
:
#636b6f
;
font-family
:
'Nunito'
,
sans-serif
;
font-weight
:
200
;
height
:
100vh
;
margin
:
0
;
}
<body>
<div
id=
"App"
></div>
<script
src=
"{{asset('js/app.js')}}"
></script>
</body>
.full-height
{
height
:
100vh
;
}
.flex-center
{
align-items
:
center
;
display
:
flex
;
justify-content
:
center
;
}
.position-ref
{
position
:
relative
;
}
.top-right
{
position
:
absolute
;
right
:
10px
;
top
:
18px
;
}
.content
{
text-align
:
center
;
}
.title
{
font-size
:
84px
;
}
.links
>
a
{
color
:
#636b6f
;
padding
:
0
25px
;
font-size
:
13px
;
font-weight
:
600
;
letter-spacing
:
.1rem
;
text-decoration
:
none
;
text-transform
:
uppercase
;
}
.m-b-md
{
margin-bottom
:
30px
;
}
</style>
</head>
<body>
<div
class=
"flex-center position-ref full-height"
>
@if (Route::has('login'))
<div
class=
"top-right links"
>
@auth
<a
href=
"{{ url('/home') }}"
>
Home
</a>
@else
<a
href=
"{{ route('login') }}"
>
Login
</a>
@if (Route::has('register'))
<a
href=
"{{ route('register') }}"
>
Register
</a>
@endif
@endauth
</div>
@endif
<div
class=
"content"
>
<div
class=
"title m-b-md"
>
Laravel
</div>
<div
class=
"links"
>
<a
href=
"https://laravel.com/docs"
>
Docs
</a>
<a
href=
"https://laracasts.com"
>
Laracasts
</a>
<a
href=
"https://laravel-news.com"
>
News
</a>
<a
href=
"https://blog.laravel.com"
>
Blog
</a>
<a
href=
"https://nova.laravel.com"
>
Nova
</a>
<a
href=
"https://forge.laravel.com"
>
Forge
</a>
<a
href=
"https://vapor.laravel.com"
>
Vapor
</a>
<a
href=
"https://github.com/laravel/laravel"
>
GitHub
</a>
</div>
</div>
</div>
</body>
</html>
</html>
\ No newline at end of file
routes/web.php
View file @
52b069a7
...
...
@@ -13,6 +13,10 @@ use Illuminate\Support\Facades\Route;
|
*/
Route
::
get
(
'/'
,
function
()
{
return
view
(
'welcome'
);
});
// Route::get('/', function () {
// return view('welcome');
// });
Route
::
view
(
'/{path?}'
,
'welcome'
)
->
where
(
'path'
,
'.*'
)
->
name
(
'react'
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment