-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IP-79: Create a new page with the new solution form
- Loading branch information
Showing
12 changed files
with
171 additions
and
7 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
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,25 @@ | ||
<?php | ||
|
||
namespace App\ViewModels\Solution; | ||
|
||
use App\Models\CrowdSourcingProject\CrowdSourcingProject; | ||
use App\Models\Language; | ||
use App\Models\Problem\Problem; | ||
|
||
class ProposeSolutionPage { | ||
public CrowdSourcingProject $project; | ||
public Problem $problem; | ||
public Language $language; | ||
public string $page_title; | ||
|
||
public function __construct( | ||
CrowdSourcingProject $project, | ||
Problem $problem, | ||
Language $language, | ||
) { | ||
$this->project = $project; | ||
$this->problem = $problem; | ||
$this->language = $language; | ||
$this->page_title = $project->currentTranslation->name . ' | ' . $problem->currentTranslation->title . ' ➔ ' . __('solution.propose_solution'); | ||
} | ||
} |
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
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,29 @@ | ||
#propose-solution-page { | ||
#propose-solution-overview, | ||
.row.propose-solution-description { | ||
padding-bottom: 3.25rem; | ||
} | ||
|
||
.section-title { | ||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
font-family: "Noto Sans Variable", sans-serif; | ||
font-weight: 600; | ||
font-size: 24px; // 24px // bookmark1 - calculate in rem | ||
line-height: 32.69px; // 32.69px // bookmark1 - calculate in rem | ||
text-align: left; | ||
} | ||
|
||
.section-body { | ||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
} | ||
|
||
.section-body p { | ||
font-family: "Open Sans Variable", sans-serif; | ||
font-weight: 400; | ||
font-size: 16px; // 16px // bookmark1 - calculate in rem | ||
line-height: 21.82px; // 21.82px // bookmark1 - calculate in rem | ||
text-align: left; | ||
} | ||
} |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
'propose_solution' => 'Πρότεινε Λύση', | ||
]; |
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,5 @@ | ||
<?php | ||
|
||
return [ | ||
'propose_solution' => 'Propose Solution', | ||
]; |
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 @@ | ||
<p>solution-form-works!</p> |
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,20 @@ | ||
@extends('crowdsourcing-project.layout') | ||
@push('css') | ||
@vite('resources/assets/sass/solution/propose-page.scss') | ||
<style> | ||
:root { | ||
--project-primary-color: {{ $viewModel->project->lp_primary_color}}; | ||
--btn-text-color: {{ $viewModel->project->lp_btn_text_color_theme == "light" ? "#ffffff" : "#212529"}}; | ||
} | ||
</style> | ||
@endpush | ||
|
||
@section('content') | ||
|
||
<h2>propose-solution-works!</h2> | ||
|
||
<section id="propose-solution-overview" class="bg-clr-primary-white"> | ||
@include('solution.partials.new-solution-form') | ||
</section> | ||
|
||
@endsection |
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