diff --git a/app/Http/Controllers/SiteController.php b/app/Http/Controllers/SiteController.php index b44a6761d..6e58999e5 100644 --- a/app/Http/Controllers/SiteController.php +++ b/app/Http/Controllers/SiteController.php @@ -22,7 +22,16 @@ class SiteController extends Controller public function homeGuest() { - return view('site.index'); + $data = Cache::remember('site:landing:data', now()->addHours(3), function() { + return [ + 'stats' => [ + 'posts' => App\Util\Lexer\PrettyNumber::convert(App\Status::count()), + 'likes' => App\Util\Lexer\PrettyNumber::convert(App\Like::count()), + 'hashtags' => App\Util\Lexer\PrettyNumber::convert(App\StatusHashtag::count()) + ], + ]; + }); + return view('site.index', compact('data')); } public function homeTimeline(Request $request) @@ -105,7 +114,7 @@ class SiteController extends Controller $this->validate($request, [ 'url' => 'required|url' ]); - $url = urldecode(request()->input('url')); + $url = request()->input('url'); return view('site.redirect', compact('url')); } diff --git a/public/_landing/1.jpeg b/public/_landing/1.jpeg new file mode 100644 index 000000000..322400971 Binary files /dev/null and b/public/_landing/1.jpeg differ diff --git a/public/_landing/2.jpeg b/public/_landing/2.jpeg new file mode 100644 index 000000000..0f79791c7 Binary files /dev/null and b/public/_landing/2.jpeg differ diff --git a/public/_landing/3.jpeg b/public/_landing/3.jpeg new file mode 100644 index 000000000..6e8bf1227 Binary files /dev/null and b/public/_landing/3.jpeg differ diff --git a/public/_landing/4.jpeg b/public/_landing/4.jpeg new file mode 100644 index 000000000..e6ee63e98 Binary files /dev/null and b/public/_landing/4.jpeg differ diff --git a/public/_landing/5.jpeg b/public/_landing/5.jpeg new file mode 100644 index 000000000..c0ed43562 Binary files /dev/null and b/public/_landing/5.jpeg differ diff --git a/public/_landing/6.jpeg b/public/_landing/6.jpeg new file mode 100644 index 000000000..6c727c447 Binary files /dev/null and b/public/_landing/6.jpeg differ diff --git a/public/_landing/7.jpeg b/public/_landing/7.jpeg new file mode 100644 index 000000000..a81825b10 Binary files /dev/null and b/public/_landing/7.jpeg differ diff --git a/public/_landing/8.jpeg b/public/_landing/8.jpeg new file mode 100644 index 000000000..646cacd4f Binary files /dev/null and b/public/_landing/8.jpeg differ diff --git a/public/_landing/9.jpeg b/public/_landing/9.jpeg new file mode 100644 index 000000000..cebaa1be5 Binary files /dev/null and b/public/_landing/9.jpeg differ diff --git a/resources/views/site/index.blade.php b/resources/views/site/index.blade.php index d623792da..0af494e78 100644 --- a/resources/views/site/index.blade.php +++ b/resources/views/site/index.blade.php @@ -23,161 +23,277 @@ - +
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- +
+

Photo Sharing

+

For Everyone.

+
+
+
+
+
+ + Pixelfed +
+
+

Photo Sharing. For Everyone

+
+
+
+
+

Account Login

+
+
+
+ @csrf +
+ +
+ + + @if ($errors->has('email')) + + {{ $errors->first('email') }} + + @endif +
+
+ +
+ +
+ + + @if ($errors->has('password')) + + {{ $errors->first('password') }} + + @endif +
+
+ +
+
+
+ +
+
+
+ +
+
+ + +
+
+
+
-
-
-
-
+
+

+ Register + ยท + Password Reset +

+
+
+
+
+
+
+
+
+
+
+
+ +
-
-
-
-
-
-
-
-
-
+
+
+ +
-
-
-
- - - - +
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
-
-
-
-
- -
-
-

Pixelfed

-

Photo sharing for everyone

-
-
- @if(true === config('pixelfed.open_registration')) -
- @csrf -
-
- - - @if ($errors->has('name')) - - {{ $errors->first('name') }} - - @endif -
-
- -
-
- - - @if ($errors->has('username')) - - {{ $errors->first('username') }} - - @endif -
-
- -
-
- - - @if ($errors->has('email')) - - {{ $errors->first('email') }} - - @endif -
-
- -
-
- - - @if ($errors->has('password')) - - {{ $errors->first('password') }} - - @endif -
-
- -
-
- -
-
-
-
-
- - -
-
-
-
-
- -
-
-

By signing up, you agree to our Terms of Use and Privacy Policy.

-
- @else -
-
-

Registrations are closed.

-

You can find a list of other instances on the-federation.info/pixelfed or fediverse.network/pixelfed

-
-
- @endif -
+
+
+

Simple. Powerful.

+
+
+
+ + {{$data['stats']['posts']}} + Posts + + + {{$data['stats']['likes']}} + Likes + + + {{$data['stats']['hashtags']}} + Hashtags Used + +
+
+
+

A free and ethical photo sharing platform.

+
+
+
+
+
+
+
+

Feature Packed.

+
+
+

The best for the brightest.

+
+
+
+
+
+
+
+
+ +
+
+

Albums

+ Create an album with up to 10 photos
-
-

Have an account? Log in

+
+
+
+
+ +
+
+

Collections

+ Organize your posts +
+
+
+
+
+
+ +
+
+

Filters

+ Add a filter to your photos +
+
+
+ +
+
+
+
+
+ +
+
+

Comments

+ Comment on a post, or send a reply +
+
+
+
+
+
+ +
+
+

Discover

+ Explore categories, hashtags and topics +
+
+
+
+
+
+ +
+
+

Stories

+ Share posts that disappear after 24h +
-
@include('layouts.partial.footer')