-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6868d9a
commit 8f24609
Showing
10 changed files
with
399 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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 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,113 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Database\Seeders; | ||
|
||
use Blumilk\Website\Models\Project; | ||
use Illuminate\Database\Seeder; | ||
|
||
class ProjectsSeeder extends Seeder | ||
{ | ||
public function run(): void | ||
{ | ||
$this->seedVita(); | ||
$this->seedGetTheBox(); | ||
$this->seedK1(); | ||
$this->seedCarbon(); | ||
|
||
Project::factory()->count(12)->create(); | ||
} | ||
|
||
private function seedVita(): void | ||
{ | ||
Project::factory()->create([ | ||
"name_first_part" => [ | ||
"pl" => "Aplikacja do", | ||
"en" => "Application for", | ||
], | ||
"name_second_part" => [ | ||
"pl" => "zamawiania usług medycznych", | ||
"en" => "ordering medical services", | ||
], | ||
"name_third_part" => [ | ||
"pl" => "z przychodni Vita+", | ||
"en" => "from the Vita+ clinic", | ||
], | ||
"color" => "#9676F9", | ||
"photo" => "factory/case_study.jpg", | ||
"published" => true, | ||
"slug" => "vita", | ||
"template" => "vita", | ||
]); | ||
} | ||
|
||
private function seedGetTheBox(): void | ||
{ | ||
Project::factory()->create([ | ||
"name_first_part" => [ | ||
"pl" => "Aplikacja shared economy do", | ||
"en" => "Shared economy application for", | ||
], | ||
"name_second_part" => [ | ||
"pl" => "przewozów przesyłek", | ||
"en" => "the transport of parcels", | ||
], | ||
"name_third_part" => [ | ||
"pl" => null, | ||
"en" => null, | ||
], | ||
"color" => "#FAD12A", | ||
"photo" => "factory/case_study.jpg", | ||
"published" => true, | ||
"slug" => "getthebox", | ||
"template" => "getthebox", | ||
]); | ||
} | ||
|
||
private function seedK1(): void | ||
{ | ||
Project::factory()->create([ | ||
"name_first_part" => [ | ||
"pl" => "System", | ||
"en" => "System for", | ||
], | ||
"name_second_part" => [ | ||
"pl" => "zarządzania licencjami i dystrybucji", | ||
"en" => "managing licenses and distributing", | ||
], | ||
"name_third_part" => [ | ||
"pl" => "oprogramowania", | ||
"en" => "Software", | ||
], | ||
"color" => "#FF5555", | ||
"photo" => "factory/case_study.jpg", | ||
"published" => true, | ||
"slug" => "k1", | ||
"template" => "k1", | ||
]); | ||
} | ||
|
||
private function seedCarbon(): void | ||
{ | ||
Project::factory()->create([ | ||
"name_first_part" => [ | ||
"pl" => "Aplikacja do zbierania danych i generowania raportów", | ||
"en" => "Application for collecting data and generating reports", | ||
], | ||
"name_second_part" => [ | ||
"pl" => "dotyczących śladu węglowego", | ||
"en" => "regarding carbon footprint", | ||
], | ||
"name_third_part" => [ | ||
"pl" => null, | ||
"en" => null, | ||
], | ||
"color" => "#F39200", | ||
"photo" => "factory/case_study.jpg", | ||
"published" => true, | ||
"slug" => "carbon", | ||
"template" => "carbon", | ||
]); | ||
} | ||
} |
This file contains 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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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,86 @@ | ||
@extends("layout.public") | ||
|
||
@section("title", $project->name_first_part . " " . $project->name_second_part . " " . $project->name_third_part) | ||
@section("description", $project->description) | ||
|
||
@section("content") | ||
<x-projects.title> | ||
<span class="mt-4"> {{ __("projects.carbon.title_1") }} </span> | ||
<span class="text-carbon"> {{ __("projects.carbon.title_2") }}</span> | ||
</x-projects.title> | ||
|
||
<x-projects.main-image src="{{ asset('images/projects/carbon/laptop_1.png') }}" alt="{{ __('projects.carbon.alt.laptop_1') }}" shift="object-[25%_50%]"/> | ||
|
||
<div class="mt-20 sm:mt-0"> | ||
<x-projects.description>{{ __("projects.carbon.project_description") }}</x-projects.description> | ||
</div> | ||
<section class="mx-[10%] lg:mx-[15%] 2xl:max-w-7xl 2xl:mx-auto space-y-10 py-10 md:py-20 text-center"> | ||
<h2 class="text-3xl md:text-4xl lg:text-5xl font-semibold md:pb-8">{{ __("projects.challenges") }}</h2> | ||
<div class="flex place-content-center flex-wrap gap-4 2xl:gap-10"> | ||
<x-tile title="{{ __('projects.carbon.challenges.challenge_1.title') }}" | ||
description="{{ __('projects.carbon.challenges.challenge_1.description') }}" | ||
class="max-w-[350px] 2xl:place-items-start"> | ||
<x-icons.app-window accent="stroke-carbon"/> | ||
</x-tile> | ||
|
||
<x-tile title="{{ __('projects.carbon.challenges.challenge_2.title') }}" | ||
description="{{ __('projects.carbon.challenges.challenge_2.description') }}" | ||
class="max-w-[350px] 2xl:place-items-start"> | ||
<x-icons.category accent="stroke-carbon"/> | ||
</x-tile> | ||
|
||
<x-tile title="{{ __('projects.carbon.challenges.challenge_3.title') }}" | ||
description="{{ __('projects.carbon.challenges.challenge_3.description') }}" | ||
class="max-w-[350px] 2xl:place-items-start"> | ||
<x-icons.credit-card accent="stroke-carbon"/> | ||
</x-tile> | ||
</div> | ||
</section> | ||
|
||
<x-projects.image src="{{ asset('images/projects/carbon/laptop_2.png') }}" alt="{{ __('projects.carbon.alt.laptop_2') }}" /> | ||
|
||
<div class="py-20 md:py-40"> | ||
<x-projects.title>{{ __("projects.sitemap") }}</x-projects.title> | ||
<x-projects.image src="{{ asset('images/projects/carbon/'.$locale.'/sitemap.svg') }}" alt="{{ __('projects.carbon.alt.sitemap') }}" margin="true" /> | ||
</div> | ||
|
||
<section class="mx-[10%] lg:mx-[15%] 2xl:max-w-7xl 2xl:mx-auto space-y-10 py-10 md:py-20 text-center"> | ||
<h2 class="text-3xl md:text-4xl lg:text-5xl font-semibold pb-8">{{ __("projects.key_functionalities") }}</h2> | ||
<div class="flex place-content-center flex-wrap gap-4 2xl:gap-10"> | ||
<x-tile title="{{ __('projects.carbon.functionalities.functionality_1.title') }}" | ||
description="{{ __('projects.carbon.functionalities.functionality_1.description') }}" | ||
class="max-w-[350px] 2xl:place-items-start"> | ||
<x-icons.chart-infographic accent="stroke-carbon" /> | ||
</x-tile> | ||
<x-tile title="{{ __('projects.carbon.functionalities.functionality_2.title') }}" | ||
description="{{ __('projects.carbon.functionalities.functionality_2.description') }}" | ||
class="max-w-[350px] 2xl:place-items-start"> | ||
<x-icons.box accent="stroke-carbon" /> | ||
</x-tile> | ||
<x-tile title="{{ __('projects.carbon.functionalities.functionality_3.title') }}" | ||
description="{{ __('projects.carbon.functionalities.functionality_3.description') }}" | ||
class="max-w-[350px] 2xl:place-items-start"> | ||
<x-icons.packages accent="stroke-carbon" /> | ||
</x-tile> | ||
<x-tile title="{{ __('projects.carbon.functionalities.functionality_4.title') }}" | ||
description="{{ __('projects.carbon.functionalities.functionality_4.description') }}" | ||
class="max-w-[350px] 2xl:place-items-start"> | ||
<x-icons.key accent="stroke-carbon" /> | ||
</x-tile> | ||
<x-tile title="{{ __('projects.carbon.functionalities.functionality_5.title') }}" | ||
description="{{ __('projects.carbon.functionalities.functionality_5.description') }}" | ||
class="max-w-[350px] 2xl:place-items-start"> | ||
<x-icons.shield-check accent="stroke-carbon" /> | ||
</x-tile> | ||
</div> | ||
</section> | ||
|
||
<x-projects.image src="{{ asset('images/projects/carbon/desktop.png') }}" alt="{{ __('projects.carbon.alt.desktop') }}" /> | ||
|
||
<x-projects.reference name="{{ __('projects.carbon.testimonial.name') }}" | ||
company="{{ __('projects.carbon.testimonial.company') }}" | ||
description="{{ __('projects.carbon.testimonial.description') }}" | ||
photo="graphics/placeholders/male.svg"/> | ||
|
||
<x-text-us-section/> | ||
@endsection |
Oops, something went wrong.