-
Notifications
You must be signed in to change notification settings - Fork 1
- add page with downloadable materials #394
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8255e17
- wip
EwelinaSkrzypacz f5af656
- wip
EwelinaSkrzypacz 26f9ba8
- wip
EwelinaSkrzypacz 9fbdccb
- wip
EwelinaSkrzypacz 84b764b
- wip
EwelinaSkrzypacz 2151916
- wip
EwelinaSkrzypacz 1201719
- change .rar to .zip
EwelinaSkrzypacz e93bc08
- fixes after cr; extension and filesize are now set automatically
EwelinaSkrzypacz e383507
- changed '' to ""
EwelinaSkrzypacz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| namespace Blumilk\Website\Http\Controllers; | ||
|
|
||
| use Illuminate\Contracts\View\Factory; | ||
| use Illuminate\Contracts\View\View; | ||
|
|
||
| class LogoController extends Controller | ||
| { | ||
| public function __invoke(Factory $factory): View | ||
| { | ||
| return $factory->make("logo"); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| return [ | ||
| "brand_book" => [ | ||
| "title" => "Brand book", | ||
| "description" => "Set of rules for the use of logos", | ||
| ], | ||
| "logo" => [ | ||
| "title" => "Logo", | ||
| "description" => "Logo in png, pdf, svg formats", | ||
| ], | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <?php | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
| return [ | ||
| "brand_book" => [ | ||
| "title" => "Księga znaków", | ||
| "description" => "Zbiór zasad wykorzystania logotypu", | ||
| ], | ||
| "logo" => [ | ||
| "title" => "Logo", | ||
| "description" => "Logo w formatach png, pdf, svg", | ||
| ], | ||
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| <a type="button" | ||
| class="block shadow-sm text-base h-12 3xl:text-lg text-center transform transition hover:scale-110 rounded-lg bg-website-normal px-6 3xl:px-5 py-3 font-normal leading-7.5 text-white flex items-center justify-center" | ||
| @isset($href) href="{{ $href }}" @endisset> | ||
| {{ $attributes->merge([ | ||
| 'class' => "block shadow-sm text-base h-12 3xl:text-lg text-center transform transition hover:scale-110 rounded-lg bg-website-normal px-6 3xl:px-5 py-3 font-normal leading-7.5 text-white flex items-center justify-center" ]) }} | ||
| @isset($href) href="{{ $href }}" @endisset> | ||
| {{$slot}} | ||
| </a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| @extends("layout.public", ["excludeBigBubbles" => true]) | ||
|
|
||
| @php | ||
| $materials = [ | ||
| [ | ||
| 'key' => 'brand_book', | ||
| 'file_type' => 'pdf', | ||
| 'file_size' => '2.4 MB', | ||
| 'download_url' => url('materials/blumilk_brand_book_2024.pdf'), | ||
| ], | ||
| [ | ||
| 'key' => 'logo', | ||
| 'file_type' => 'rar', | ||
| 'file_size' => '1 MB', | ||
| 'download_url' => url('materials/blumilk_logo.rar'), | ||
| ], | ||
| ]; | ||
| @endphp | ||
|
|
||
| @section("title", __("meta.logo.title")) | ||
| @section("description", __("meta.logo.description")) | ||
|
|
||
| @section("content") | ||
| <section class="py-12 text-center mx-[10%] lg:mx-[15%] 2xl:max-w-7xl 2xl:mx-auto"> | ||
| <div class="pb-24"> | ||
| <h2 class="font-semibold text-gray-900 text-3xl md:text-4xl lg:text-5xl text-center 2xl:justify-start 2xl:text-start pb-4"> | ||
| <span class="inline">{{ __("content.logo.title_1") }}</span> | ||
| <span class="inline text-website-normal leading-7.5">{{ __("content.logo.title_2") }}</span> | ||
| </h2> | ||
| </div> | ||
|
|
||
| @foreach($materials as $material) | ||
| <div class="bg-white border border-gray-200 rounded-lg flex flex-col md:flex-row justify-center md:justify-between py-4 md:py-8 px-5 md:px-10 items-center justify-between shadow-sm mb-6 space-y-4 md:space-y-0"> | ||
| <div class="flex flex-col md:flex-row items-center space-y-4 md:space-y-0"> | ||
| <div class="relative w-[220px] md:w-[180px] h-[150px] sm:h-[180px] md:h-[105px] bg-gray-100 flex items-center justify-center rounded-md md:mr-4"> | ||
| <i class="ti ti-paperclip text-website-normal -rotate-45 text-xl"></i> | ||
| <span class="absolute bottom-2 left-2 bg-website-normal text-white text-[10px] font-medium px-2 py-1"> | ||
| {{ $material['file_type'] }}, {{ $material['file_size'] }} | ||
| </span> | ||
| </div> | ||
| <div class="text-center md:text-left space-y-2 md:space-y-3"> | ||
| <h2 class="text-lg font-semibold text-gray-800">{{ __("materials.{$material['key']}.title") }}</h2> | ||
| <p class="text-sm text-gray-500">{{ __("materials.{$material['key']}.description") }}</p> | ||
| </div> | ||
| </div> | ||
| <x-small-primary-button href="{{ $material['download_url'] }}" class="font-semibold text-sm w-full md:w-auto"> | ||
| <span>{{ __("buttons.download") }}</span> | ||
| <span class="sr-only">{{ __('alt.download') }}</span> | ||
| <i class="ti ti-download text-lg text-white ml-2 font-semibold"></i> | ||
| </x-small-primary-button> | ||
| </div> | ||
| @endforeach | ||
| </section> | ||
|
|
||
| @endsection | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.