diff --git a/app/Http/Controllers/DashController.php b/app/Http/Controllers/DashController.php index ac2a07f..dbf25c7 100644 --- a/app/Http/Controllers/DashController.php +++ b/app/Http/Controllers/DashController.php @@ -16,7 +16,7 @@ class DashController extends Controller $dismiss = false; if ($request->has('dismiss-greeter')) { $dismiss = Utils::parseBool01($request->get('dismiss-greeter')); - \Cookie::queue('dismiss-greeter', $dismiss); + \Cookie::queue('dismiss-greeter', $dismiss, 24*60*365*10); return back(); } diff --git a/resources/views/greeter.blade.php b/resources/views/greeter.blade.php new file mode 100644 index 0000000..191efab --- /dev/null +++ b/resources/views/greeter.blade.php @@ -0,0 +1,36 @@ +
+
+ +
+
+ + @sr(Close) + + +

Welcome to datatable.directory!

+ +

+ This website is a place for sharing useful tables of structured data. + These can be cipher tables, character maps, lists of electronic components, + paper grades, page formats, or scientific datasets, such as lists of countries, + geographic features, celestial bodies, elements, nutrition values, etc. + Anything you can put in a table can be shared here, as long as it conforms to our + Terms of Service. You can search, filter, and export + data from our tables to many different formats, such as JSON, XML, C structs, or CSV. +

+ + @guest +

+ The table directory is open to anyone, and can be used without login. However, + you will miss out on some features, like the ability to create or edit tables, + post comments, or save export presets. You can register using + your e-mail and a password, or through Google, + GitHub, + or Facebook. +

+ @endif +
{{-- end body --}} +
{{-- end card --}} + +
{{-- end col --}} +
{{-- end row --}} diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 07fb236..0bf2126 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -4,37 +4,7 @@ @section('content') @if($showGreeter) -
-
-
-
- - @sr(Close) - - -

Welcome to datatable.directory!

- -

- This website is a place for sharing useful tables of structured data. - These can be cipher tables, character maps, lists of electronic components, - paper grades, page formats, or scientific datasets, such as lists of countries, - geographic features, celestial bodies, elements, nutrition values, etc. - Anything you can put in a table can be shared here, as long as it conforms to our - Terms of Service. You can search, filter, and export - data from our tables to many different formats, such as JSON, XML, C structs, or CSV. -

-

- The table directory is open to anyone, and can be used without login. However, - you will miss out on some features, like the ability to create or edit tables, - post comments, or save export presets. You can register using - your e-mail and a password, or through Google, - GitHub, - or Facebook. -

-
-
-
-
+ @include('greeter') @endif