Merge pull request #385 from jaschaurbach/main

Apple Books button
This commit is contained in:
Julian Prieber 2023-03-31 13:52:26 +02:00 committed by GitHub
commit bf17a4b49e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 147 additions and 92 deletions

View File

@ -4,6 +4,7 @@ $buttonNames = array(
'littlelink-custom' => 'LittleLink Custom',
'all-inkl' => 'ALL-INKL',
'appstore' => 'App Store',
'apple-books' => 'Apple Books',
'apple-music' => 'Apple Music',
'apple-podcasts' => 'Apple Podcasts',
'bookwyrm' => 'BookWyrm',

View File

@ -12,7 +12,7 @@ class ButtonSeeder extends Seeder
* Run the database seeds.
*
* ALWAYS ADD NEW BUTTONS TO THE END OF THE FILE!
*
*
* @return void
*/
public function run()
@ -21,51 +21,51 @@ class ButtonSeeder extends Seeder
[
'name' => 'custom'
],
[
'name' => 'custom_website'
],
[
'name' => 'bandcamp'
],
[
'name' => 'buy me a coffee'
],
[
'name' => 'cashapp'
],
[
'name' => 'default email'
],
[
'name' => 'default email_alt'
],
[
'name' => 'discord'
],
[
'name' => 'facebook'
],
[
'name' => 'figma'
],
[
'name' => 'github'
],
[
'name' => 'gitlab'
],
[
'name' => 'goodreads'
],
@ -73,123 +73,123 @@ class ButtonSeeder extends Seeder
[
'name' => 'instagram'
],
[
'name' => 'kit'
],
[
'name' => 'linkedin'
],
[
'name' => 'mastodon'
],
[
'name' => 'medium'
],
[
'name' => 'messenger'
],
[
'name' => 'patreon'
],
[
'name' => 'paypal'
],
[
'name' => 'pinterest'
],
[
'name' => 'reddit'
],
[
'name' => 'signal'
],
[
'name' => 'skoob'
],
[
'name' => 'snapchat'
],
[
'name' => 'soundcloud'
],
[
'name' => 'spotify'
],
[
'name' => 'steam'
],
[
'name' => 'telegram'
],
[
'name' => 'tiktok'
],
[
'name' => 'tumblr'
],
[
'name' => 'twitch'
],
[
'name' => 'twitter'
],
[
'name' => 'venmo'
],
[
'name' => 'vimeo'
],
[
'name' => 'website'
],
[
'name' => 'whatsapp'
],
[
'name' => 'wordpress'
],
[
'name' => 'xing'
],
[
'name' => 'youtube'
],
[
'name' => 'heading'
],
[
'name' => 'space'
],
[
'name' => 'phone'
],
@ -201,147 +201,147 @@ class ButtonSeeder extends Seeder
[
'name' => 'littlelink-custom'
],
[
'name' => 'space'
],
[
'name' => 'amazon'
],
[
'name' => 'appstore'
],
[
'name' => 'apple-music'
],
[
'name' => 'apple-podcasts'
],
[
'name' => 'briar'
],
[
[
'name' => 'castopod'
],
[
'name' => 'codepen'
],
[
'name' => 'codeberg'
],
[
'name' => 'cryptpad'
],
[
'name' => 'dev-to'
],
[
'name' => 'deezer'
],
[
'name' => 'epic-games'
],
[
'name' => 'etsy'
],
[
'name' => 'firefox'
],
[
'name' => 'flickr'
],
[
'name' => 'funkwhale'
],
[
'name' => 'f-droid'
],
[
'name' => 'itchio'
],
[
'name' => 'humble-bundle'
],
[
'name' => 'kickstarter'
],
[
'name' => 'ko-fi'
],
[
'name' => 'lemmy'
],
[
'name' => 'letterboxd'
],
[
'name' => 'liberapay'
],
[
'name' => 'matrix'
],
[
'name' => 'misskey'
],
[
'name' => 'notion'
],
[
'name' => 'odysee'
],
[
'name' => 'openstreetmap'
],
[
'name' => 'owncast'
],
[
'name' => 'peertube'
],
[
'name' => 'pixelfed'
],
[
'name' => 'piwigo'
],
[
'name' => 'playstore'
],
[
'name' => 'plemora'
],
@ -349,35 +349,35 @@ class ButtonSeeder extends Seeder
[
'name' => 'producthunt'
],
[
'name' => 'session'
],
[
'name' => 'strava'
],
[
'name' => 'unity'
],
[
'name' => 'unraid'
],
[
'name' => 'untappd'
],
[
'name' => 'upptime'
],
[
'name' => 'vrchat'
],
[
'name' => 'youtube-music'
],
@ -385,7 +385,7 @@ class ButtonSeeder extends Seeder
[
'name' => 'all-inkl'
],
[
'name' => 'text'
],
@ -402,8 +402,12 @@ class ButtonSeeder extends Seeder
'name' => 'vcard'
],
[
'name' => 'apple-books'
],
];
Button::insert($buttons);
}
}
}

View File

@ -187,6 +187,22 @@ button:hover,
filter: brightness(90%);
}
/* Apple Books */
.button.button-apple-books {
color: #FFFFFF;
background-image: linear-gradient(
-45deg,
#fa753b,
#feb033
);
}
.button.button-apple-books:hover,
.button.button-apple-books:focus {
filter: brightness(90%);
}
/* Apple Music */
.button.button-apple-music {
color: #FFFFFF;
@ -889,7 +905,7 @@ button:hover,
.button.button-strava:focus {
filter: brightness(90%);
}
/* Telegram */
.button.button-telegram {
color: #FFFFFF;
@ -1086,4 +1102,4 @@ button:hover,
.button.button-youtube-music:hover,
.button.button-youtube-music:focus {
filter: brightness(90%);
}
}

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Artwork" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 304 94" style="enable-background:new 0 0 304 94;" xml:space="preserve">
<style type="text/css">
.st0{fill:url(#SVGID_1_);}
.st1{fill:#FFFFFF;}
</style>
<g>
<g id="RGB_x5F_Icon_78_">
<g id="_x38_x_x5F_iOS11-iBooks-Icon_x5F_US-EN_x5F_00-0013-932_x5F_v1_x5F_w_x5F_RGB_x5F_R3_1_">
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="-206.1042" y1="354.6346" x2="-206.1042" y2="-242.6956" gradientTransform="matrix(1 0 0 -1 0 96)">
<stop offset="0" style="stop-color:#FFA80B"/>
<stop offset="1" style="stop-color:#F27218"/>
</linearGradient>
<path class="st0" d="M92.6-72c0-6.6,0-14.4,0-21c0-5.5,0-12.1,0-17.7c0-13.2-1.1-26.5-3.3-39.7c-2.2-13.2-6.6-25.4-12.1-37.5
c-5.5-12.1-13.2-22.1-23.2-32c-9.9-8.8-21-16.6-32-23.2c-12.1-6.6-24.3-9.9-37.5-12.1s-26.5-3.3-39.7-3.3c-5.5,0-12.1,0-17.7,0
c-6.6,0-14.4,0-21,0h-224.1c-6.6,0-14.4,0-21,0c-5.5,0-12.1,0-17.7,0c-13.2,0-26.5,1.1-39.7,3.3s-25.4,6.6-37.5,12.1
s-22.1,13.2-32,23.2c-8.8,8.8-16.6,19.9-23.2,32c-6.6,12.1-9.9,24.3-12.1,37.5c-2.2,13.2-3.3,26.5-3.3,39.7c0,5.5,0,12.1,0,17.7
c0,6.6,0,14.4,0,21v224.1c0,6.6,0,14.4,0,21c0,5.5,0,12.1,0,17.7c0,13.2,1.1,26.5,3.3,39.7c2.2,13.2,6.6,25.4,12.1,37.5
c5.5,12.1,13.2,22.1,23.2,32c8.8,8.8,19.9,17.7,32,23.2c12.1,6.6,24.3,9.9,37.5,12.1c13.2,2.2,26.5,3.3,39.7,3.3
c5.5,0,12.1,0,17.7,0c6.6,0,14.4,0,21,0H-94c6.6,0,14.4,0,21,0c5.5,0,12.1,0,17.7,0c13.2,0,26.5-1.1,39.7-3.3
c13.2-2.2,25.4-6.6,37.5-12.1c12.1-5.5,22.1-13.2,32-23.2c8.8-8.8,16.6-19.9,23.2-32s9.9-24.3,12.1-37.5
c2.2-13.2,3.3-26.5,3.3-39.7c0-5.5,0-12.1,0-17.7c0-6.6,0-14.4,0-21V-72z"/>
<path class="st1" d="M-228.7-90.8c9.9,15.5,15.5,19.9,15.5,62.9c0,54.1,0,188.8,0,241.8c0,9.9,0-24.3-34.2-49.7
c-35.3-27.6-96.1-29.8-145.7,6.6c-8.8,6.6-15.5,5.5-15.5-4.4c0-54.1,0-181.1,0-235.2c0-9.9,1.1-21,15.5-32
C-343.6-135-267.4-136.1-228.7-90.8z M-3.5-67.6c0-9.9-1.1-21-15.5-32c-49.7-36.4-125.9-36.4-164.5,8.8
c-9.9,15.5-15.5,19.9-15.5,62.9c0,54.1,0,188.8,0,241.8c0,9.9,0-24.3,34.2-49.7c35.3-27.6,96.1-29.8,145.7,6.6
c8.8,6.6,15.5,5.5,15.5-4.4C-3.5,113.5-3.5-13.5-3.5-67.6z"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.3 KiB