!! update page links blade !!

This commit is contained in:
aprillio 2021-07-06 15:49:29 +07:00
parent 032488c400
commit 91595c1a48
1 changed files with 28 additions and 29 deletions

57
resources/views/littlelink.blade.php Executable file → Normal file
View File

@ -1,46 +1,42 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<!-- Page Information
-->
<meta charset="utf-8"> <meta charset="utf-8">
<title>{{ $littlelink_name }} 🔗 {{ config('app.name') }} </title> <title>{{ $littlelink_name }} 🔗 {{ config('app.name') }} </title>
<meta name="description" content="Find us online!"> <meta name="description" content="{{ $userinfo->littlelink_description }}">
<meta name="author" content="Seth Cottle"> <meta name="author" content="{{ $userinfo->name }}">
<!-- Mobile Specific Metas
-->
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap" rel="stylesheet">
<!-- FONT
-->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap" rel="stylesheet">
<!-- CSS
-->
<link rel="stylesheet" href="{{ asset('littlelink/css/normalize.css') }}"> <link rel="stylesheet" href="{{ asset('littlelink/css/normalize.css') }}">
<link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}"> <link rel="stylesheet" href="{{ asset('littlelink/css/skeleton-light.css') }}">
<link rel="stylesheet" href="{{ asset('littlelink/css/brands.css') }}"> <link rel="stylesheet" href="{{ asset('littlelink/css/brands.css') }}">
<!-- Favicon
-->
<link rel="icon" type="image/png" href="{{ asset('littlelink/images/avatar.png') }}"> <link rel="icon" type="image/png" href="{{ asset('littlelink/images/avatar.png') }}">
<style>
.container { max-width: 1080px !important; }
.button-title {
color: white !important;
background: #505050 !important;
height: auto !important;
line-height: 28px !important;
width: auto !important;
padding: 10px !important;
min-width: 300px !important;
}
@media (max-width: 767px) {
}
</style>
</head> </head>
<body> <body>
<!-- Primary Page Layout
-->
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="column" style="margin-top: 10%"> <div class="column" style="margin-top: 10%">
<!-- Your Image Here --> <!-- Your Image Here -->
@if(file_exists(public_path("img/$littlelink_name" . ".png" ))) @if(file_exists(public_path("img/$littlelink_name" . ".png" )))
<img src="{{ asset("img/$littlelink_name" . ".png") }}" srcset="{{ asset("img/$littlelink_name" . "@2x.png 2x") }}" width="100px" height="100px"> <img src="{{ asset("img/$littlelink_name" . ".png") }}" width="100px" height="100px">
@else @else
<img src="{{ asset('littlelink/images/avatar.png') }}" srcset="{{ asset('littlelink/images/avatar@2x.png 2x') }}"> <img src="{{ asset('littlelink/images/avatar.png') }}" srcset="{{ asset('littlelink/images/avatar@2x.png 2x') }}" width="100px" height="100px">
@endif @endif
@foreach($information as $info) @foreach($information as $info)
@ -54,8 +50,14 @@
<!-- Buttons --> <!-- Buttons -->
@foreach($links as $link) @foreach($links as $link)
@php $linkName = str_replace('default ','',$link->name) @endphp @php $linkName = str_replace('default ','',$link->name) @endphp
<a class="button button-{{ $link->name }}" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon" src="{{ asset('\/littlelink/icons\/') . $linkName }}.svg">{{ ucfirst($linkName) }}</a> @if($link->button_id === 0)
<a class="button button-title" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank">
{{ $link->title }}</a>
<br> <br>
@else
<a class="button button-{{ $link->name }}" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon" src="{{ asset('\/littlelink/icons\/') . $linkName }}.svg">{{ ucfirst($linkName) }}</a>
<br>
@endif
@endforeach @endforeach
@include('layouts.footer') @include('layouts.footer')
@ -63,8 +65,5 @@
</div> </div>
</div> </div>
</div> </div>
<!-- End Document
-->
</body> </body>
</html> </html>