Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new features #1

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5364591
Added rounded avatar
JulianPrieber Feb 11, 2022
2548c4b
Added class 'rounded-avatar'
JulianPrieber Feb 11, 2022
8b030a3
Replaced (-) hyphen button seed with custom link button
JulianPrieber Feb 11, 2022
138fcb0
Added custom link button
JulianPrieber Feb 11, 2022
7eb0c0b
Added custom link icon
JulianPrieber Feb 11, 2022
b032c91
Update README.md
JulianPrieber Feb 11, 2022
d144bf7
Update README.md
JulianPrieber Feb 11, 2022
c1405bf
Update README.md
JulianPrieber Feb 11, 2022
0750e48
Added support for social media preview
JulianPrieber Feb 12, 2022
af979d7
Update README.md
JulianPrieber Feb 12, 2022
c74c781
Update README.md
JulianPrieber Feb 12, 2022
572a6c9
merged
JulianPrieber Feb 12, 2022
0bb11a1
Added Hover.css
JulianPrieber Feb 12, 2022
8f19cf7
Edit LICENSE
JulianPrieber Feb 12, 2022
84bfe58
Added button animation littlelink
JulianPrieber Feb 12, 2022
5e2a3fb
Revert "Added button animation littlelink"
JulianPrieber Feb 12, 2022
a58f412
Added button animation littlelink
JulianPrieber Feb 12, 2022
c5657f7
Added button animation home
JulianPrieber Feb 12, 2022
8f1f66a
Update README.md
JulianPrieber Feb 12, 2022
249ad51
Update README.md
JulianPrieber Feb 12, 2022
f35fedb
Merge pull request #2 from JulianPrieber/main
JulianPrieber Feb 12, 2022
95fd998
fixed hover-min.css
JulianPrieber Feb 14, 2022
63ce33e
fixed hover-min.css
JulianPrieber Feb 14, 2022
d4919fa
fixed URL
JulianPrieber Feb 20, 2022
85287b4
fixed spelling
JulianPrieber Feb 20, 2022
2b47f58
Made link title optional
JulianPrieber Mar 18, 2022
bef4195
Revert "Made link title optional"
JulianPrieber Mar 18, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -672,3 +672,20 @@ may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


------------------Third-Party licenses------------------

#begin Hover
(https://github.com/IanLunn/Hover)

Personal/Open Source License
Copyright 2017 Ian Lunn Design Limited

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

#end Hover
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ LittleLink Admin is an admin panel for [littlelink] that provides you a website

- creating a link page with more than 20 buttons
- raising important links on the page
- button hover animations (new) | [demo]
- ordering links (new)
- custom link option (new)
- Social Share Preview for individual users (new)
- counting clicks
- managing users and pages and links
- and ...
Expand Down Expand Up @@ -39,6 +42,8 @@ php artisan db:seed
php artisan db:seed --class="AdminSeeder"
php artisan db:seed --class="PageSeeder"
php artisan db:seed --class="ButtonSeeder"

php artisan key:generate
php artisan serve (optional)
```

Expand All @@ -54,6 +59,7 @@ password: 12345678
- [littlelink]
- [laravel]
- [panel template]
- [button animations]

## 🎲 [Donate](#donate)

Expand All @@ -64,3 +70,5 @@ password: 12345678
[linktree]: <https://linktr.ee>
[laravel]: <https://github.com/laravel/laravel>
[panel template]: <https://colorlib.com/wp/bootstrap-sidebar>
[button animations]: <https://github.com/IanLunn/Hover>
[demo]: <https://julianprieber.github.io/littlelink-admin-demo>
2 changes: 1 addition & 1 deletion database/seeders/ButtonSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function run()
{
$buttons = [
[
'name' => '-'
'name' => 'custom'
],

[
Expand Down
19 changes: 19 additions & 0 deletions public/littlelink/css/brands.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,22 @@
/* Table of contents
––––––––––––––––––––––––––––––––––––––––––––––––––

- Rounded user avatars
- Buttons
- Brand Styles

*/


/* Rounded avatars
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Disable this if you don't want rounded avatars for users */
.rounded-avatar {
border-radius: 50%;
}


/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */

Expand Down Expand Up @@ -75,6 +85,15 @@ button:hover,
/* Brand Styles
–––––––––––––––––––––––––––––––––––––––––––––––––– */

/* Added custom link button*/
.button.button-custom {
color: #FFFFFF;
background-color: #FFFFFF;
background-image: linear-gradient(-135deg,#0f0c29,#302b63,#24243e) }
.button.button-custom:hover,
.button.button-custom:focus {
filter: brightness(90%) }

/* Default (this is great for your own brand color!) */
.button.button-default {
color: #FFFFFF;
Expand Down
9 changes: 9 additions & 0 deletions public/littlelink/css/hover-min.css

Large diffs are not rendered by default.

59 changes: 59 additions & 0 deletions public/littlelink/icons/custom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<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/brands.css') }}">
<link rel="stylesheet" href="{{ asset('littlelink/css/hover-min.css') }}">
<link rel="icon" type="image/png" href="{{ asset('littlelink/images/avatar.png') }}">
</head>
<body>
Expand Down Expand Up @@ -39,13 +40,13 @@

<!-- Replace # with your profile URL. Delete whatever you don't need & create your own brand styles in css/brands.css -->

<a class="button button-github" href="#"><img class="icon" src="{{ asset('littlelink/icons/github.svg') }}">Github</a>
<a class="button button-twitter" href="#"><img class="icon" src="{{ asset('littlelink/icons/twitter.svg') }}">Twitter</a>
<a class="button button-instagram" href="#"><img class="icon" src="{{ asset('littlelink/icons/instagram.svg') }}">Instagram</a>
<a class="button button-github button hvr-grow hvr-icon-wobble-vertical" href="#"><img class="icon hvr-icon" src="{{ asset('littlelink/icons/github.svg') }}">Github</a>
<a class="button button-twitter button hvr-grow hvr-icon-wobble-vertical" href="#"><img class="icon hvr-icon" src="{{ asset('littlelink/icons/twitter.svg') }}">Twitter</a>
<a class="button button-instagram button hvr-grow hvr-icon-wobble-vertical" href="#"><img class="icon hvr-icon" src="{{ asset('littlelink/icons/instagram.svg') }}">Instagram</a>
<!--<a class="button button-pinterest" href="#"><img class="icon" src="{{ asset('littlelink/icons/pinterest.svg') }}">Pinterest</a>-->
</br></br>

<p>and {{ $countButton - 3 }} other button ...</p>
<p>and {{ $countButton - 3 }} other buttons ...</p>

<hr class="my-4" style="display:none">

Expand Down
43 changes: 38 additions & 5 deletions resources/views/littlelink.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,40 @@
<meta name="description" content="{{ $userinfo->littlelink_description }}">
<meta name="author" content="{{ $userinfo->name }}">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!--#### BEGIN Meta Tags social media preview images ####-->
<!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites -->

<!-- Facebook Meta Tags -->
<meta property="og:url" content="{{ config('app.url') }}/@littlelink_name">
<meta property="og:type" content="website">
<meta property="og:title" content="{{ $userinfo->littlelink_name }}">
<meta property="og:description" content="{{ $userinfo->littlelink_description }}">
@if(file_exists(public_path("img/$littlelink_name" . ".png" )))
<meta property="og:image" content="{{ asset("img/$littlelink_name" . ".png") }}">
@else
<meta property="og:image" content="{{ asset('littlelink/images/[email protected]') }}">
@endif

<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="{{ config('app.url') }}/@littlelink_name">
<meta property="twitter:url" content="{{ config('app.url') }}/@littlelink_name">
<meta name="twitter:title" content="{{ $userinfo->littlelink_name }}">
<meta name="twitter:description" content="{{ $userinfo->littlelink_description }}">
@if(file_exists(public_path("img/$littlelink_name" . ".png" )))
<meta name="twitter:image" content="{{ asset("img/$littlelink_name" . ".png") }}">
@else
<meta name="twitter:image" content="{{ asset('littlelink/images/[email protected]') }}">
@endif

<!--#### END Meta Tags social media preview images ####-->

<link href="//fonts.googleapis.com/css?family=Open+Sans:400,600,800&display=swap" rel="stylesheet">
<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/brands.css') }}">
<link rel="stylesheet" href="{{ asset('littlelink/css/hover-min.css') }}">
<link rel="icon" type="image/png" href="{{ asset('littlelink/images/avatar.png') }}">
<style>
.container { max-width: 1080px !important; }
Expand All @@ -34,9 +64,9 @@
<div class="column" style="margin-top: 5%">
<!-- Your Image Here -->
@if(file_exists(public_path("img/$littlelink_name" . ".png" )))
<img src="{{ asset("img/$littlelink_name" . ".png") }}" width="100px" height="100px">
<img class="rounded-avatar" src="{{ asset("img/$littlelink_name" . ".png") }}" width="100px" height="100px">
@else
<img src="{{ asset('littlelink/images/avatar.png') }}" srcset="{{ asset('littlelink/images/[email protected] 2x') }}" width="100px" height="100px">
<img class="rounded-avatar" src="{{ asset('littlelink/images/avatar.png') }}" srcset="{{ asset('littlelink/images/[email protected] 2x') }}" width="100px" height="100px">
@endif

@foreach($information as $info)
Expand All @@ -51,11 +81,14 @@
@foreach($links as $link)
@php $linkName = str_replace('default ','',$link->name) @endphp
@if($link->button_id === 0)
<a class="button button-title" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank">
<a class="button button-title button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank">
{{ $link->title }}</a>
<br>
@elseif($link->name === "custom")
<a class="button button-{{ $link->name }} button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/') . $linkName }}.svg">{{ $link->title }}</a>
<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>
<a class="button button-{{ $link->name }} button hvr-grow hvr-icon-wobble-vertical" href="{{ route('clickNumber') . '/' . $link->id . '/' . $link->link}}" target="_blank"><img class="icon hvr-icon" src="{{ asset('\/littlelink/icons\/') . $linkName }}.svg">{{ ucfirst($linkName) }}</a>
<br>
@endif
@endforeach
Expand All @@ -66,4 +99,4 @@
</div>
</div>
</body>
</html>
</html>