1
0
Fork 0

Merge pull request #1040 from pixelfed/frontend-ui-refactor

Frontend ui refactor
This commit is contained in:
daniel 2019-03-17 01:08:06 -06:00 committed by GitHub
commit c5dbc7776f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 21 additions and 20 deletions

View File

@ -13,6 +13,7 @@ return [
'discover' => 'Discover', 'discover' => 'Discover',
'directMessages' => 'Direct Messages', 'directMessages' => 'Direct Messages',
'timelines' => 'Timelines', 'timelines' => 'Timelines',
'embed' => 'Embed',
'communityGuidelines' => 'Community Guidelines', 'communityGuidelines' => 'Community Guidelines',
'whatIsTheFediverse' => 'What is the fediverse?', 'whatIsTheFediverse' => 'What is the fediverse?',

View File

@ -43,7 +43,7 @@
<p class="py-1 text-center"> <p class="py-1 text-center">
<i class="fas fa-hashtag text-lighter fa-2x"></i> <i class="fas fa-hashtag text-lighter fa-2x"></i>
</p> </p>
<p class="text-center text-muted font-weight-bold h4 mb-0">Hashtags</p> <p class="text-center text-muted font-weight-bold h4 mb-0">{{__('helpcenter.hashtags')}}</p>
<div class="text-center pt-3"> <div class="text-center pt-3">
<p class="small text-dark font-weight-bold mb-0">&nbsp;</p> <p class="small text-dark font-weight-bold mb-0">&nbsp;</p>
<p class="small text-dark font-weight-bold mb-0">&nbsp;</p> <p class="small text-dark font-weight-bold mb-0">&nbsp;</p>

View File

@ -1,9 +1,9 @@
@extends('site.help.partial.template', ['breadcrumb'=>'Getting Started']) @extends('site.help.partial.template', ['breadcrumb'=>__('helpcenter.gettingStarted')])
@section('section') @section('section')
<div class="title"> <div class="title">
<h3 class="font-weight-bold">Getting Started</h3> <h3 class="font-weight-bold">{{__('helpcenter.gettingStarted')}}</h3>
</div> </div>
<hr> <hr>
<p class="lead font-weight-light">Welcome to Pixelfed!</p> <p class="lead font-weight-light">Welcome to Pixelfed!</p>

View File

@ -1,66 +1,66 @@
<div class="col-12 col-md-3 py-3" style="border-right:1px solid #ccc;"> <div class="col-12 col-md-3 py-3" style="border-right:1px solid #ccc;">
<ul class="nav flex-column settings-nav"> <ul class="nav flex-column settings-nav">
<li class="nav-item {{request()->is('*/getting-started')?'active':''}}"> <li class="nav-item {{request()->is('*/getting-started')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.getting-started')}}">Getting Started</a> <a class="nav-link font-weight-light text-muted" href="{{route('help.getting-started')}}">{{__('helpcenter.gettingStarted')}}</a>
</li> </li>
<li class="nav-item {{request()->is('*/sharing-media')?'active':''}}"> <li class="nav-item {{request()->is('*/sharing-media')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.sharing-media')}}">Sharing Photos & Videos</a> <a class="nav-link font-weight-light text-muted" href="{{route('help.sharing-media')}}">{{__('helpcenter.sharingMedia')}}</a>
</li> </li>
<li class="nav-item {{request()->is('*/your-profile')?'active':''}}"> <li class="nav-item {{request()->is('*/your-profile')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.your-profile')}}">Your Profile</a> <a class="nav-link font-weight-light text-muted" href="{{route('help.your-profile')}}">{{__('helpcenter.profile')}}</a>
</li> </li>
<li class="nav-item {{request()->is('*/stories')?'active':''}}"> <li class="nav-item {{request()->is('*/stories')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.stories')}}">Stories</a> <a class="nav-link font-weight-light text-muted" href="{{route('help.stories')}}">{{__('helpcenter.stories')}}</a>
</li> </li>
<li class="nav-item {{request()->is('*/hashtags')?'active':''}}"> <li class="nav-item {{request()->is('*/hashtags')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.hashtags')}}">Hashtags</a> <a class="nav-link font-weight-light text-muted" href="{{route('help.hashtags')}}">{{__('helpcenter.hashtags')}}</a>
</li> </li>
<li class="nav-item {{request()->is('*/discover')?'active':''}}"> <li class="nav-item {{request()->is('*/discover')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.discover')}}">Discover</a> <a class="nav-link font-weight-light text-muted" href="{{route('help.discover')}}">{{__('helpcenter.discover')}}</a>
</li> </li>
<li class="nav-item {{request()->is('*/direct-messages')?'active':''}}"> <li class="nav-item {{request()->is('*/direct-messages')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.dm')}}">Direct Messages</a> <a class="nav-link font-weight-light text-muted" href="{{route('help.dm')}}">{{__('helpcenter.directMessages')}}</a>
</li> </li>
<li class="nav-item {{request()->is('*/timelines')?'active':''}}"> <li class="nav-item {{request()->is('*/timelines')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.timelines')}}">Timelines</a> <a class="nav-link font-weight-light text-muted" href="{{route('help.timelines')}}">{{__('helpcenter.timelines')}}</a>
</li> </li>
<li class="nav-item {{request()->is('*/embed')?'active':''}}"> <li class="nav-item {{request()->is('*/embed')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.embed')}}">Embed</a> <a class="nav-link font-weight-light text-muted" href="{{route('help.embed')}}">{{__('helpcenter.embed')}}</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<hr> <hr>
</li> </li>
<li class="nav-item {{request()->is('*/community-guidelines')?'active':''}}"> <li class="nav-item {{request()->is('*/community-guidelines')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.community-guidelines')}}"> <a class="nav-link font-weight-light text-muted" href="{{route('help.community-guidelines')}}">
Community Guidelines {{__('helpcenter.communityGuidelines')}}
</a> </a>
</li> </li>
<li class="nav-item {{request()->is('*/what-is-the-fediverse')?'active':''}}"> <li class="nav-item {{request()->is('*/what-is-the-fediverse')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.what-is-fediverse')}}">What is the fediverse?</a> <a class="nav-link font-weight-light text-muted" href="{{route('help.what-is-fediverse')}}">{{__('helpcenter.whatIsTheFediverse')}}</a>
</li> </li>
<li class="nav-item {{request()->is('*/controlling-visibility')?'active':''}}"> <li class="nav-item {{request()->is('*/controlling-visibility')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.controlling-visibility')}}"> <a class="nav-link font-weight-light text-muted" href="{{route('help.controlling-visibility')}}">
Controlling Visibility {{__('helpcenter.controllingVisibility')}}
</a> </a>
</li> </li>
<li class="nav-item {{request()->is('*/blocking-accounts')?'active':''}}"> <li class="nav-item {{request()->is('*/blocking-accounts')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.blocking-accounts')}}"> <a class="nav-link font-weight-light text-muted" href="{{route('help.blocking-accounts')}}">
Blocking Accounts {{__('helpcenter.blockingAccounts')}}
</a> </a>
</li> </li>
<li class="nav-item {{request()->is('*/safety-tips')?'active':''}}"> <li class="nav-item {{request()->is('*/safety-tips')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.safety-tips')}}"> <a class="nav-link font-weight-light text-muted" href="{{route('help.safety-tips')}}">
Safety Tips {{__('helpcenter.safetyTips')}}
</a> </a>
</li> </li>
<li class="nav-item {{request()->is('*/report-something')?'active':''}}"> <li class="nav-item {{request()->is('*/report-something')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.report-something')}}"> <a class="nav-link font-weight-light text-muted" href="{{route('help.report-something')}}">
Report Something {{__('helpcenter.reportSomething')}}
</a> </a>
</li> </li>
<li class="nav-item {{request()->is('*/data-policy')?'active':''}}"> <li class="nav-item {{request()->is('*/data-policy')?'active':''}}">
<a class="nav-link font-weight-light text-muted" href="{{route('help.data-policy')}}"> <a class="nav-link font-weight-light text-muted" href="{{route('help.data-policy')}}">
Data Policy {{__('helpcenter.dataPolicy')}}
</a> </a>
</li> </li>
</ul> </ul>

View File

@ -6,7 +6,7 @@
<div class="col-12"> <div class="col-12">
<div class="card mt-5"> <div class="card mt-5">
<div class="card-header font-weight-bold text-muted bg-white py-4"> <div class="card-header font-weight-bold text-muted bg-white py-4">
<a href="{{route('site.help')}}" class="text-muted">Help Center</a> <a href="{{route('site.help')}}" class="text-muted">{{__('helpcenter.helpcenter')}}</a>
<span class="px-2 font-weight-light">&mdash;</span> <span class="px-2 font-weight-light">&mdash;</span>
{{ $breadcrumb ?? ''}} {{ $breadcrumb ?? ''}}
</div> </div>