Skip to content

Commit

Permalink
#298 - #300 - about page, case study page (#299)
Browse files Browse the repository at this point in the history
* sections about.blade.php

* about page translations

* remove partners page

* case studies page design

* add option to create colored ces study's title with factory, removed unnecessary fields in case studies table, changed images on home and about page, changed description on about page and case studies page

* removed hover bg color on navigation items

* cr changes

* cr changes

* reorder "Our mission" section, mention issues in ToDo's
  • Loading branch information
AleksandraKozubal authored Aug 2, 2024
1 parent 6eff7c5 commit 5aae60f
Show file tree
Hide file tree
Showing 29 changed files with 1,244 additions and 317 deletions.
38 changes: 21 additions & 17 deletions app/Filament/Resources/CaseStudyResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,27 @@ public static function form(Form $form): Form
Split::make([
Section::make([
TranslatableContainer::make(
Forms\Components\TextInput::make("name")
->label("Nazwa realizacji")
Forms\Components\TextInput::make("name_first_part")
->label("Część 1 tytułu")
->required()
->maxLength(255),
)->requiredLocales(config("app.translatable_locales")),
Forms\Components\TextInput::make("company")
->label("Firma")
->required()
->maxLength(255),
TranslatableContainer::make(
Forms\Components\TextInput::make("name_second_part")
->label("Część 2 tytułu")
->required()
->maxLength(255),
)->requiredLocales(config("app.translatable_locales")),
Forms\Components\ColorPicker::make("color")
->label("Kolor tekstu części 2")
->required(),
TranslatableContainer::make(
Forms\Components\TextInput::make("name_third_part")
->label("Część 3 tytułu")
->maxLength(255),
),
]),
Section::make([
Forms\Components\TextInput::make("slug")
->label("Slug")
->required()
Expand All @@ -50,16 +62,6 @@ public static function form(Form $form): Form
->label("Szablon")
->options(fn(): array => self::getTemplateOptions())
->native(false),
Forms\Components\Checkbox::make("published")
->label("Opublikowane"),
]),
Section::make([
TranslatableContainer::make(
Forms\Components\Textarea::make("description")
->label("Opis")
->required()
->maxLength(65000),
)->requiredLocales(config("app.translatable_locales")),
Forms\Components\FileUpload::make("photo")
->label("Zdjęcie")
->directory(CaseStudy::PHOTOS_DIRECTORY)
Expand All @@ -68,6 +70,8 @@ public static function form(Form $form): Form
->required()
->multiple(false)
->maxSize(1000),
Forms\Components\Checkbox::make("published")
->label("Opublikowane"),
]),
])->from("lg"),
])->columns(1);
Expand All @@ -77,7 +81,7 @@ public static function table(Table $table): Table
{
return $table
->columns([
Tables\Columns\TextColumn::make("name")
Tables\Columns\TextColumn::make("name_first_part")
->label("Nazwa realizacji")
->searchable(),
Tables\Columns\TextColumn::make("template")
Expand Down
16 changes: 0 additions & 16 deletions app/Http/Controllers/PartnersController.php

This file was deleted.

24 changes: 14 additions & 10 deletions app/Models/CaseStudy.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
use Spatie\Translatable\HasTranslations;

/**
* @property array $name
* @property array $description
* @property array $name_first_part
* @property array $name_second_part
* @property array $name_third_part
* @property string $photo
* @property string $slug
* @property string $company
* @property string $template
* @property bool $published
* @property string $color
*/
class CaseStudy extends Model
{
Expand All @@ -25,21 +26,24 @@ class CaseStudy extends Model
public const string PHOTOS_DIRECTORY = "case-studies";

public $translatable = [
"name",
"description",
"name_first_part",
"name_second_part",
"name_third_part",
];
protected $fillable = [
"name",
"description",
"name_first_part",
"name_second_part",
"name_third_part",
"photo",
"published",
"company",
"slug",
"template",
"color",
];
protected $casts = [
"name" => "array",
"description" => "array",
"name_first_part" => "array",
"name_second_part" => "array",
"name_third_part" => "array",
"published" => "boolean",
];
}
7 changes: 4 additions & 3 deletions database/factories/CaseStudyFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ public function definition(): array
$locales = config("app.translatable_locales");

return [
"name" => $this->translations($locales, $this->faker->sentence),
"description" => $this->translations($locales, $this->faker->paragraph),
"name_first_part" => $this->translations($locales, $this->faker->words(2, true)),
"name_second_part" => $this->translations($locales, $this->faker->words(2, true)),
"name_third_part" => $this->translations($locales, $this->faker->words(2, true)),
"color" => $this->faker->hexColor,
"photo" => sprintf("%s/%s", "factory", "case_study.jpg"),
"published" => $this->faker->boolean,
"company" => $this->faker->company,
"slug" => $this->faker->slug,
"template" => "base-template.blade.php",
];
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class() extends Migration {
public function up(): void
{
Schema::table("case_studies", function (Blueprint $table): void {
$table->renameColumn("name", "name_first_part");
$table->string("name_second_part")->nullable();
$table->string("name_third_part")->nullable();
});
}

public function down(): void
{
Schema::table("case_studies", function (Blueprint $table): void {
$table->renameColumn("name_first_part", "name");
$table->dropColumn("name_second_part");
$table->dropColumn("name_third_part");
});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class() extends Migration {
public function up(): void
{
Schema::table("case_studies", function (Blueprint $table): void {
$table->string("color")->nullable();
});
}

public function down(): void
{
Schema::table("case_studies", function (Blueprint $table): void {
$table->dropColumn("color");
});
}
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

declare(strict_types=1);

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class() extends Migration {
public function up(): void
{
Schema::table("case_studies", function (Blueprint $table): void {
$table->dropColumn("description");
$table->dropColumn("company");
});
}

public function down(): void
{
Schema::table("case_studies", function (Blueprint $table): void {
$table->json("description")->nullable();
$table->string("company")->nullable();
});
}
};
58 changes: 40 additions & 18 deletions lang/en/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"pages" => [
"about" => "About",
"case_study" => "Case Study",
"partners" => "Partners",
"career" => "Career",
"activities" => "Activities",
"contact" => "Contact",
Expand Down Expand Up @@ -77,41 +76,64 @@
],
"about" => [
"section_1" => [
"title_1" => "Blumilk ",
"title_1" => "Blumilk",
"title_2" => "is primarily people",
"subtitle_1" => "Our team consists of over 25 unique technology enthusiasts - project managers, programmers, and testers with rich experiences. We serve both local and foreign clients, allowing us to flexibly adapt to diverse requirements and expectations.",
"subtitle_2" => "We are ready to meet even the most demanding projects.",
"subtitle_1" => "Our team consists of",
"subtitle_2" => "25 unique technology enthusiasts",
"subtitle_3" => "- programmers, testers, project managers and specialists with extensive experience.",
"subtitle_4" => "We work in stationary and hybrid mode",
"subtitle_5" => "from Legnica, combining flexibility with efficiency.",
],
"section_2" => [
"title_1" => "Our ",
"title_2" => "mission",
"subtitle_1" => "As code enthusiasts, we create modern technological solutions that inspire and simplify the daily lives of our clients.",
"subtitle_2" => "We ensure technical excellence, ease of use, and effectiveness in operation.",
"stat_1" => "people in the team",
"stat_2" => "years of shared experience",
"stat_3" => "GitHub repositories",
"stat_4" => "lines of code weekly",
],
"section_3" => [
"title_1" => "Values",
"subtitle_1" => "Discover the key values that shape our company and form the foundation of our operations. At Blumilk, we focus on what we do, which is passion, innovation, and technical excellence.",
"content_1" => "Passion: ",
"title_1" => "Our values",
"subtitle_1" => "Discover the key values that shape our company and constitute the foundation of our business.",
"subtitle_2" => "At Blumilk, we focus on what we do, i.e. passion, innovation and technical perfection.",
"content_1" => "Passion",
"content_2" => "We are passionate about creating software, engaging in both scientific research and education to share knowledge and support the development of young talents.",
"content_3" => "Innovation: ",
"content_3" => "Innovation",
"content_4" => "We operate in the areas of big data processing, artificial intelligence, and optimization, developing modern technologies and promoting innovations.",
"content_5" => "Technical excellence: ",
"content_5" => "Technical excellence",
"content_6" => "We create software that works efficiently and reliably, is safe and easy to use. We hone our skills to create products that stand out in the market.",
],
"section_4" => [
"badge" => "after work",
"title_1" => "Our mission",
"subtitle_1" => "As code enthusiasts, we create modern technological solutions that inspire and make the everyday lives of our customers easier. We improve our skills in order to actively contribute to the programming community in Poland.",
"activity_1" => [
"title" => "Research and development projects (R&D)",
"subtitle" => "We deal with a variety of research issues, including: processing large data sets (big data), solving task scheduling problems, using artificial intelligence, and optimization. Thanks to the experience and knowledge gained by our team members, we are able to effectively manage and implement R&D projects, providing our clients with the highest quality and innovation at every stage of cooperation.",
],
"activity_2" => [
"title" => "We connect the technological community in Legnica",
"subtitle" => "We are the organizer of Legnica Technology Meetups - open meetings for backend programmers, frontend developers, application testers, graphic designers, project managers and everyone interested in the world of code.",
],
"activity_3" => [
"title" => "Academic environment",
"subtitle" => "We conduct classes in Computer Science and Production and Logistics Engineering at Collegium Witelon State University in Legnica. We also organize an open internship program for IT students and are partners in scientific conferences.",
],
"activity_4" => [
"title" => "SoDA (Software Development Association Poland)",
"subtitle" => "We are one of the founders of probably the largest research group in the field of artificial intelligence in Poland - SoDA AI Research Group. We provide expert comments on industry reports and the national press, including Forbes and Dziennik Prawny. We train the public sector in how to use AI. We give expert interviews on television and radio and speak at conferences.",
],
],
"section_5" => [
"title_1" => "Blumilk after hours",
"subtitle_1" => "Our company promotes ",
"subtitle_2" => "work-life balance, ",
"subtitle_3" => "giving employees the opportunity to develop outside of the professional sphere as well. After hours, our team builds bonds through shared passions such as board games, mountain trips, basketball tournaments, and regular outdoor meetings.",
"subtitle_1" => "We are incredibly lucky that we enjoy spending time together, not only in the office!",
],
],
"case_studies" => [
"section_1" => [
"title_1" => "Our ",
"title_2" => "projects",
"subtitle_1" => "See what we worked on for our clients.",
"subtitle_2" => "Each case study contains a detailed description of the project implementation.",
"subtitle_2" => "Each case study contains a",
"subtitle_3" => "detailed description",
"subtitle_4" => "of the project implementation.",
],
"section_2" => [
"title_1" => "Interested in cooperation?",
Expand Down
4 changes: 0 additions & 4 deletions lang/en/meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
"title" => "Case studies",
"description" => "See what projects we have managed to complete.",
],
"partners" => [
"title" => "Partners",
"description" => "We cooperate with the best to provide you with the highest quality solutions.",
],
"career" => [
"title" => "Career",
"description" => "Join our team!",
Expand Down
Loading

0 comments on commit 5aae60f

Please sign in to comment.