Improved tree list

Adds a somewhat improved tree list as well as small changes to the online and offline icon in user list.
This commit is contained in:
tersiswilvin 2022-08-19 20:23:49 -07:00
parent f088aa24ed
commit 5f26c6b63a
3 changed files with 56 additions and 29 deletions

View File

@ -175,6 +175,7 @@ h6 {
} }
.NewPanel .SearchCloseBtn{ .NewPanel .SearchCloseBtn{
color: #af1400; color: #af1400;
transition: .1s linear;
left: auto; left: auto;
margin-left: -105px; margin-left: -105px;
margin-top: 1px; margin-top: 1px;
@ -344,29 +345,64 @@ h6 {
height: 12px; height: 12px;
display: block; display: block;
float: right; float: right;
top: -6px; top: -12px;
position: relative; position: relative;
border-radius: 50%; border-radius: 50%;
} }
.NewPanel .website { .NewPanel .website {
background: linear-gradient(0deg, #0087e0 0%, #005085 49%,#005a85 50%, #0099ff 95%, #fff 100%); background: linear-gradient(0deg, #0087e0 0%, #005085 49%,#005a85 50%, #0099ff 95%, #fff 100%);
border: 2px solid #111;
width: 12px; width: 12px;
height: 12px; height: 12px;
display: block; display: block;
border-radius: 50%; border-radius: 50%;
margin: -5px; margin: -8px;
} }
.NewPanel .offline { .NewPanel .offline {
background: linear-gradient(0deg, #a3a3a3 0%, #7a7a7a 49%, #797979 50%, #c9c9c9 95%, #fff 100%); background: linear-gradient(0deg, #a3a3a3 0%, #7a7a7a 49%, #797979 50%, #c9c9c9 95%, #fff 100%);
border: 2px solid #111;
width: 12px; width: 12px;
height: 12px; height: 12px;
display: block; display: block;
border-radius: 50%; border-radius: 50%;
margin: -5px; margin: -8px;
} }
.NewPanel.AdminPanel .flex { .NewPanel.AdminPanel .flex {
display: table!important; display: table!important;
} }
.NewPanel .InvitationUserName {
text-align: center;
margin-top: 20px;
font-size: 20px;
font-weight: 600;
display: block;
}
.NewPanel .InvitationSubName {
text-align: center;
font-size: 18px;
font-weight: 100;
}
.NewPanel .InvitationSubName .InvitationText {
display: inline-block;
font-weight: 100;
cursor: default;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.NewPanel .InvitationSubText {
text-align: center;
cursor: default;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (max-width:1000px) { @media (max-width:1000px) {
.NewPanel .AdminSubHeader ul { .NewPanel .AdminSubHeader ul {

View File

@ -18,6 +18,11 @@
<h2 class="MainHeader"> <h2 class="MainHeader">
Invite Tree Invite Tree
</h2> </h2>
@if (!request()->has('q'))
<h5 class="SubHeader">Enter a Username or ID.</h5>
@elseif (!$user)
<h5 class="SubHeader text-error">Unable to find user, please check if you entered the correct information.</h5>
@endif
<div class="Userlist"> <div class="Userlist">
<form method="GET" action="{{ route('admin_tree') }}"> <form method="GET" action="{{ route('admin_tree') }}">
<div> <div>
@ -32,36 +37,22 @@
</div> </div>
</form> </form>
@if ($user) @if ($user)
<div class="UserList"> <a class="InvitationUserName AuthenticatedUserName" href="{{ route('profile', $user->id) }}">{{ $user->name }}</a>
<h2>User Found: {{ $user->name }}</h2> <div class="InvitationSubName">
<ul> <h4 class="InvitationText">Invited By </h4>
<li> <a href="{{ route('profile', App\Models\User::where('name', $invited_by)->first()->id) }}" class="AuthenticatedUserName">{{ $invited_by }}</a>
<h3><a href="{{ route('profile', App\Models\User::where('name', $invited_by)->first()->id) }}" <h5 class="InvitationSubText">{{ $user->name }} Invited</h5>
target="_blank">{{ $invited_by }}</a> @foreach ($children as $child)
</h3> <li>
</li> <a href="{{ route('profile', $child->id) }}" target="_blank" class="AuthenticatedUserName">{{ $child->name }}</a>
<ul> </li>
<li><a href="{{ route('profile', $user->id) }}" target="_blank">{{ $user->name }}</a></li> @endforeach
<ul> </div>
@foreach ($children as $child)
<li><a href="{{ route('profile', $child->id) }}" target="_blank">{{ $child->name }}</a>
</li>
@endforeach
</ul>
</ul>
</ul>
</div>
@endif
@if (!request()->has('q'))
<h5>Enter a username or ID.</h5>
@elseif (!$user)
<h5>No user was found, check if you entered the correct details.</h5>
@endif @endif
</div> </div>
</div> </div>
@endsection @endsection
@section('content') @section('content')
<!-- This is legacy code and won't output to the document - Conkley -->
<div id="UserList"> <div id="UserList">
<h2>Invite Tree</h2> <h2>Invite Tree</h2>
@if (request()->query('q')) @if (request()->query('q'))

View File

@ -104,7 +104,7 @@
@default @default
@endswitch @endswitch
@endauth @endauth
<a id="logo_full" href="{{ route('home') }}"><img alt="ARCHBLOX Logo" class = "btn-logo" src="{{ asset('img/MORBLOXlogo.png') }}"/></a> <a id="logo_full" href="{{ route('home') }}"><img alt="ARCHBLOX Logo" class="btn-logo" src="{{ asset('img/MORBLOXlogo.png') }}"/></a>
<a id="logo_small" href="{{ route('home') }}"><img alt="ARCHBLOX Logo" <a id="logo_small" href="{{ route('home') }}"><img alt="ARCHBLOX Logo"
src="{{ asset('img/MORBLOXlogoshort.png') }}"/></a> src="{{ asset('img/MORBLOXlogoshort.png') }}"/></a>
<div id="NewRedesign" class="navbarbuttoncontainer NavigationRedesign"> <div id="NewRedesign" class="navbarbuttoncontainer NavigationRedesign">