diff --git a/app/Designs/AbstractDesign.php b/app/Designs/AbstractDesign.php index 25fd82218593..6a2befd497a8 100644 --- a/app/Designs/AbstractDesign.php +++ b/app/Designs/AbstractDesign.php @@ -13,18 +13,16 @@ namespace App\Designs; abstract class AbstractDesign { - abstract public function include(); + abstract public function includes(); abstract public function header(); abstract public function body(); - abstract public function product_table(); + abstract public function product(); - abstract public function task_table(); + abstract public function task(); abstract public function footer(); - abstract public function table_styles(); - } \ No newline at end of file diff --git a/app/Designs/Bold.php b/app/Designs/Bold.php index c49facd2a520..df720fda9a7f 100644 --- a/app/Designs/Bold.php +++ b/app/Designs/Bold.php @@ -17,34 +17,29 @@ class Bold extends AbstractDesign public function __construct() { } - public function include() + public function includes() { return ' - - $number + $css_url - - '; } @@ -92,30 +87,40 @@ class Bold extends AbstractDesign } - public function table_styles() { - return [ - 'table_header_thead_class' => "text-left", - 'table_header_td_class' => "px-12 text-2xl px-4 py-2", - 'table_body_td_class' => "bg-gray-200 py-5 pl-12", - ]; - } - public function task_table() { + public function task() { + return ' + + + + $task_table_header + + + + $task_table_body + +
+ '; } - public function product_table() { + public function product() { return ' - $table_header + $product_table_header - $table_body + $product_table_body
- + '; + } + + public function footer() { + + return '
$entity.public_notes @@ -144,15 +149,7 @@ class Bold extends AbstractDesign
- '; - } - - public function footer() { - - return ' - - - '; + '; } diff --git a/app/Designs/Business.php b/app/Designs/Business.php index 9406342c085a..1254ff35197c 100644 --- a/app/Designs/Business.php +++ b/app/Designs/Business.php @@ -17,7 +17,7 @@ class Business extends AbstractDesign public function __construct() { } - public function include() + public function includes() { return ' @@ -27,10 +27,8 @@ class Business extends AbstractDesign - + + @@ -46,6 +44,11 @@ class Business extends AbstractDesign thead th:last-child { border-top-right-radius: 0.5rem; } + + .table_header_thead_class text-left bg-blue-900 + .table_header_td_class font-semibold text-white px-4 bg-blue-900 py-5 + .table_body_td_class border-4 border-white text-orange-700 px-4 py-4 + '; @@ -98,69 +101,74 @@ class Business extends AbstractDesign } - public function table_styles() { - return [ - 'table_header_thead_class' => "text-left bg-blue-900", - 'table_header_td_class' => "font-semibold text-white px-4 bg-blue-900 py-5", - 'table_body_td_class' => "border-4 border-white text-orange-700 px-4 py-4", - ]; - } - - public function task_table() { + public function task() { + return ' + + + + $task_table_header + + + + $task_table_body + +
+ '; } - public function product_table() { + public function product() { return ' - $table_header + $product_table_header - $table_body + $product_table_body
-
-
-
-

$entity.public_notes

-
-
-
-
-
- $total_tax_labels - $line_tax_labels -
-
- $total_tax_values - $line_tax_values -
-
-
-
-
-
-
-

$terms_label

-

$terms

-
-
-
-
-

$balance_due_label

-

$balance_due

-
-
-
+ '; } public function footer() { return ' +
+
+
+

$entity.public_notes

+
+
+
+
+
+ $total_tax_labels + $line_tax_labels +
+
+ $total_tax_values + $line_tax_values +
+
+
+
+
+
+
+

$terms_label

+

$terms

+
+
+
+
+

$balance_due_label

+

$balance_due

+
+
+
diff --git a/app/Designs/Clean.php b/app/Designs/Clean.php index 4b4342338004..d29b8352fbb0 100644 --- a/app/Designs/Clean.php +++ b/app/Designs/Clean.php @@ -18,7 +18,7 @@ class Clean extends AbstractDesign } - public function include() + public function includes() { return ' @@ -28,10 +28,8 @@ class Clean extends AbstractDesign - + + @@ -41,6 +39,10 @@ class Clean extends AbstractDesign size: auto; margin-top: 5mm; } + + .table_header_thead_class text-left + .table_header_td_class px-4 py-2 + .table_body_td_class text-blue-600 border-t border-b border-gray-400 px-4 py-4 '; } @@ -98,27 +100,19 @@ class Clean extends AbstractDesign } - public function table_styles() { - return [ - 'table_header_thead_class' => "text-left", - 'table_header_td_class' => "px-4 py-2", - 'table_body_td_class' => "text-blue-600 border-t border-b border-gray-400 px-4 py-4", - ]; - } - - public function task_table() { + public function task() { } - public function product_table() { + public function product() { return ' - $table_header + $product_table_header - $table_body + $product_table_body
diff --git a/app/Designs/Creative.php b/app/Designs/Creative.php index de8f4ba7c165..03029fcbfa2d 100644 --- a/app/Designs/Creative.php +++ b/app/Designs/Creative.php @@ -21,7 +21,7 @@ class Creative extends AbstractDesign } - public function include() + public function includes() { return ' @@ -31,10 +31,7 @@ class Creative extends AbstractDesign - + @@ -44,6 +41,9 @@ class Creative extends AbstractDesign size: auto; margin-top: 6mm; } + .table_header_thead_class text-left rounded-lg + .table_header_td_class font-medium uppercase text-pink-700 text-xl px-4 py-5 + .table_body_td_class px-4 py-4 '; @@ -94,28 +94,21 @@ class Creative extends AbstractDesign } - public function table_styles() { - return [ - 'table_header_thead_class' => "text-left rounded-lg", - 'table_header_td_class' => "font-medium uppercase text-pink-700 text-xl px-4 py-5", - 'table_body_td_class' => "px-4 py-4", - ]; - } - public function task_table() { + public function task() { } - public function product_table() { + public function product() { return ' - $table_header + $product_table_header - $table_body + $product_table_body
diff --git a/app/Designs/Custom.php b/app/Designs/Custom.php index 72de8f97a636..ba15f34719c2 100644 --- a/app/Designs/Custom.php +++ b/app/Designs/Custom.php @@ -13,41 +13,37 @@ namespace App\Designs; class Custom extends AbstractDesign { - private $include; + private $includes; private $header; private $body; - private $product_table; + private $product; - private $task_table; + private $task; private $footer; - private $table_styles; - public function __construct($design) { - $this->include = $design->include; + $this->includes = $design->includes; $this->header = $design->header; $this->body = $design->body; - $this->product_table = $design->product_table; + $this->product = $design->product; - $this->task_table = $design->task_table; + $this->task = $design->task; $this->footer = $design->footer; - - $this->table_styles = $design->table_styles; - + } - public function include() + public function includes() { - return $this->include; + return $this->includes; } public function header() @@ -64,23 +60,16 @@ class Custom extends AbstractDesign } - public function table_styles() + public function product() { - return $this->table_styles; + return $this->product; } - public function product_table() + public function task() { - - return $this->product_table; - - } - - public function task_table() - { - return $this->task_table; + return $this->task; } public function footer() diff --git a/app/Designs/Designer.php b/app/Designs/Designer.php index 5a59b917f0f7..ad64f7826f12 100644 --- a/app/Designs/Designer.php +++ b/app/Designs/Designer.php @@ -16,7 +16,9 @@ use App\Models\Invoice; class Designer { - protected $design; + public $design; + + public $design_name; protected $input_variables; @@ -55,7 +57,9 @@ class Designer { { $this->entity = $entity; - $this->design = $design; + $this->design = $design->design; + + $this->design_name = lcfirst($design->name); $this->input_variables = (array) $input_variables; @@ -73,7 +77,7 @@ class Designer { $this->setHtml() ->exportVariables() - ->setDesign($this->getSection('include')) + ->setDesign($this->getSection('includes')) ->setDesign($this->getSection('header')) ->setDesign($this->getSection('body')) ->setDesign($this->getProductTable($this->entity)) @@ -91,11 +95,17 @@ class Designer { return $this; } + public function getIncludes() + { + $this->setDesign($this->getSection('includes')); + + return $this; + } + public function getHeader() { - $this->setDesign($this->getSection('include')) - ->setDesign($this->getSection('header')); + $this->setDesign($this->getSection('header')); return $this; } @@ -111,9 +121,7 @@ class Designer { public function getBody() { - $this->setDesign($this->getSection('include')) - ->setDesign($this->getSection('body')) - ->setDesign($this->getProductTable()); + $this->setDesign($this->getSection('body')); return $this; } @@ -121,11 +129,24 @@ class Designer { public function getProductTable():string { - $table_header = $this->entity->table_header($this->input_variables['product_columns'], $this->design->table_styles()); - $table_body = $this->entity->table_body($this->input_variables['product_columns'], $this->design->table_styles()); + $table_header = $this->entity->table_header($this->input_variables['product_columns']); + $table_body = $this->entity->table_body($this->input_variables['product_columns']); - $data = str_replace('$table_header', $table_header, $this->getSection('product_table')); - $data = str_replace('$table_body', $table_body, $data); + $data = str_replace('$product_table_header', $table_header, $this->getSection('product')); + $data = str_replace('$product_table_body', $table_body, $data); + + return $data; + + } + + public function getTaskTable():string + { + + $table_header = $this->entity->table_header($this->input_variables['task_columns']); + $table_body = $this->entity->table_body($this->input_variables['task_columns']); + + $data = str_replace('$task_table_header', $table_header, $this->getSection('task')); + $data = str_replace('$task_table_body', $table_body, $data); return $data; @@ -160,7 +181,7 @@ class Designer { */ public function getSection($section):string { - return str_replace(array_keys($this->exported_variables), array_values($this->exported_variables), $this->design->{$section}()); + return str_replace(array_keys($this->exported_variables), array_values($this->exported_variables), $this->design->{$section}); } private function exportVariables() @@ -366,7 +387,7 @@ class Designer { foreach (self::$custom_fields as $cf) { - if (!property_exists($custom_fields, $cf) || (strlen($custom_fields->{ $cf}) == 0)) { + if (!property_exists($custom_fields, $cf) || (strlen($custom_fields->{$cf}) == 0)) { unset($data[$cf]); } diff --git a/app/Designs/Elegant.php b/app/Designs/Elegant.php index 1523055e4d58..6de6c1ffa0f6 100644 --- a/app/Designs/Elegant.php +++ b/app/Designs/Elegant.php @@ -18,7 +18,7 @@ class Elegant extends AbstractDesign } - public function include() + public function includes() { return ' @@ -28,10 +28,7 @@ class Elegant extends AbstractDesign - + @@ -41,6 +38,12 @@ class Elegant extends AbstractDesign size: auto; margin-top: 5mm; } + + + .table_header_thead_class text-left border-dashed border-b border-black + .table_header_td_class font-normal text-green-700 px-4 py-2 + .table_body_td_class px-4 py-4 + ]; '; @@ -87,27 +90,19 @@ class Elegant extends AbstractDesign } - public function table_styles() { - return [ - 'table_header_thead_class' => "text-left border-dashed border-b border-black", - 'table_header_td_class' => "font-normal text-green-700 px-4 py-2", - 'table_body_td_class' => "px-4 py-4", - ]; - } - - public function task_table() { + public function task() { } - public function product_table() { + public function product() { return ' - $table_header + $product_table_header - $table_body + $product_table_body
diff --git a/app/Designs/Hipster.php b/app/Designs/Hipster.php index 926f0b15491a..fdb5188cfd62 100644 --- a/app/Designs/Hipster.php +++ b/app/Designs/Hipster.php @@ -18,7 +18,7 @@ class Hipster extends AbstractDesign } - public function include() + public function includes() { return ' @@ -28,10 +28,8 @@ class Hipster extends AbstractDesign - + + @@ -41,6 +39,10 @@ class Hipster extends AbstractDesign size: auto; margin-top: 5mm; } + + .table_header_thead_classtext-left + .table_header_td_class px-4 py-2 uppercase font-semibold border-l-2 border-black + .table_body_td_class border-l-2 border-black px-4 py-4 @@ -102,27 +104,19 @@ class Hipster extends AbstractDesign } - public function table_styles() { - return [ - 'table_header_thead_class' => "text-left", - 'table_header_td_class' => "px-4 py-2 uppercase font-semibold border-l-2 border-black", - 'table_body_td_class' => "border-l-2 border-black px-4 py-4", - ]; - } - - public function task_table() { + public function task() { } - public function product_table() { + public function product() { return ' - $table_header + $product_table_header - $table_body + $product_table_body
diff --git a/app/Designs/Modern.php b/app/Designs/Modern.php index d27d3371c8e9..b50370e35a04 100644 --- a/app/Designs/Modern.php +++ b/app/Designs/Modern.php @@ -18,7 +18,7 @@ class Modern extends AbstractDesign } - public function include() + public function includes() { return ' @@ -28,9 +28,9 @@ class Modern extends AbstractDesign + @@ -109,28 +114,20 @@ class Modern extends AbstractDesign } - public function table_styles() { - return [ - 'table_header_thead_class' => "text-left text-white bg-gray-900", - 'table_header_td_class' => "px-4 py-2", - 'table_body_td_class' => "border-t border-b border-gray-900 px-4 py-4", - ]; - } - - public function task_table() { + public function task() { } - public function product_table() { + public function product() { return '
- $table_header + $product_table_header - $table_body + $product_table_body
diff --git a/app/Designs/Photo.php b/app/Designs/Photo.php index 3de79489f06c..004b4ac847a9 100644 --- a/app/Designs/Photo.php +++ b/app/Designs/Photo.php @@ -18,7 +18,7 @@ class Photo extends AbstractDesign } - public function include() + public function includes() { return ' @@ -28,10 +28,8 @@ class Photo extends AbstractDesign - + + @@ -58,6 +56,11 @@ class Photo extends AbstractDesign background-image: url(/assets/images/006-photographer-2.jpg); background-size: cover; } + + + .table_header_thead_class text-left border-b-4 border-black + .table_header_td_class font-normal px-4 py-2 uppercase + .table_body_td_class text-orange-700 px-4 py-4
@@ -101,28 +104,20 @@ class Photo extends AbstractDesign } - public function table_styles() { - return [ - 'table_header_thead_class' => "text-left border-b-4 border-black", - 'table_header_td_class' => "font-normal px-4 py-2 uppercase", - 'table_body_td_class' => "text-orange-700 px-4 py-4", - ]; - } - - public function task_table() { + public function task() { } - public function product_table() { + public function product() { return '
- $table_header + $product_table_header - $table_body + $product_table_body
diff --git a/app/Designs/Plain.php b/app/Designs/Plain.php index d8f6f1833b66..3eecae3e28ff 100644 --- a/app/Designs/Plain.php +++ b/app/Designs/Plain.php @@ -18,7 +18,7 @@ class Plain extends AbstractDesign } - public function include() + public function includes() { return ' @@ -28,10 +28,7 @@ class Plain extends AbstractDesign - + @@ -41,6 +38,12 @@ class Plain extends AbstractDesign size: auto; margin-top: 5mm; } + + + .table_header_thead_class text-left bg-gray-300 + .table_header_td_class px-4 py-2 + .table_body_td_class border-t-2 border-b border-gray-300 px-4 py-4 + @@ -88,27 +91,19 @@ class Plain extends AbstractDesign } - public function table_styles() { - return [ - 'table_header_thead_class' => "text-left bg-gray-300", - 'table_header_td_class' => "px-4 py-2", - 'table_body_td_class' => "border-t-2 border-b border-gray-300 px-4 py-4", - ]; - } - - public function task_table() { + public function task() { } - public function product_table() { + public function product() { return ' - $table_header + $product_table_header - $table_body + $product_table_body
diff --git a/app/Designs/Playful.php b/app/Designs/Playful.php index 765ff1d9beeb..7aa6f63750d5 100644 --- a/app/Designs/Playful.php +++ b/app/Designs/Playful.php @@ -18,7 +18,7 @@ class Playful extends AbstractDesign } - public function include() + public function includes() { return ' @@ -28,19 +28,20 @@ class Playful extends AbstractDesign - + - '; } @@ -96,27 +97,19 @@ class Playful extends AbstractDesign } - public function table_styles() { - return [ - 'table_header_thead_class' => "text-left bg-teal-600 rounded-lg", - 'table_header_td_class' => "font-semibold text-white px-4 py-3", - 'table_body_td_class' => "border-b-4 border-teal-600 text-red-800 px-4 py-4", - ]; - } - - public function task_table() { + public function task() { } - public function product_table() { + public function product() { return ' - $table_header + $product_table_header - $table_body + $product_table_body
diff --git a/app/Http/Controllers/CreditController.php b/app/Http/Controllers/CreditController.php index 5ddb0ced87f4..1edc569ff4c8 100644 --- a/app/Http/Controllers/CreditController.php +++ b/app/Http/Controllers/CreditController.php @@ -186,7 +186,7 @@ class CreditController extends BaseController { $client = Client::find($request->input('client_id')); - $credit = $this->credit_repository->save($request->all(), $client->setCreditDefaults()); + $credit = $this->credit_repository->save($request->all(), CreditFactory::create(auth()->user()->company()->id, auth()->user()->id)); $credit = StoreCredit::dispatchNow($credit, $request->all(), $credit->company); diff --git a/app/Http/Controllers/QuoteController.php b/app/Http/Controllers/QuoteController.php index f30321684508..0b3aeb2cc63d 100644 --- a/app/Http/Controllers/QuoteController.php +++ b/app/Http/Controllers/QuoteController.php @@ -205,7 +205,7 @@ class QuoteController extends BaseController { $client = Client::find($request->input('client_id')); - $quote = $this->quote_repo->save($request->all(), $client->setQuoteDefaults()); + $quote = $this->quote_repo->save($request->all(), QuoteFactory::create(auth()->user()->company()->id, auth()->user()->id)); return $this->itemResponse($quote); } diff --git a/app/Jobs/Credit/CreateCreditPdf.php b/app/Jobs/Credit/CreateCreditPdf.php index 040dea40994a..d72314f82847 100644 --- a/app/Jobs/Credit/CreateCreditPdf.php +++ b/app/Jobs/Credit/CreateCreditPdf.php @@ -78,19 +78,12 @@ class CreateCreditPdf implements ShouldQueue { $file_path = $path . $this->credit->number . '.pdf'; $design = Design::find($this->decodePrimaryKey($this->credit->client->getSetting('credit_design_id'))); - - if($design->is_custom){ - $credit_design = new Custom($design->design); - } - else{ - $class = 'App\Designs\\'.$design->name; - $credit_design = new $class(); - } - - $designer = new Designer($this->credit, $credit_design, $this->credit->client->getSetting('pdf_variables'), 'credit'); + + $designer = new Designer($this->credit, $design, $this->credit->client->getSetting('pdf_variables'), 'credit'); //get invoice design - $html = $this->generateInvoiceHtml($designer->build()->getHtml(), $this->credit, $this->contact); +// $html = $this->generateInvoiceHtml($designer->build()->getHtml(), $this->credit, $this->contact); + $html = $this->generateEntityHtml($designer, $this->credit, $this->contact); //todo - move this to the client creation stage so we don't keep hitting this unnecessarily Storage::makeDirectory($path, 0755); diff --git a/app/Jobs/Invoice/CreateInvoicePdf.php b/app/Jobs/Invoice/CreateInvoicePdf.php index 2ca21e2a6836..d2087c81c60f 100644 --- a/app/Jobs/Invoice/CreateInvoicePdf.php +++ b/app/Jobs/Invoice/CreateInvoicePdf.php @@ -77,18 +77,12 @@ class CreateInvoicePdf implements ShouldQueue { $design = Design::find($this->decodePrimaryKey($this->invoice->client->getSetting('invoice_design_id'))); - if($design->is_custom){ - $invoice_design = new Custom($design->design); - } - else{ - $class = 'App\Designs\\'.$design->name; - $invoice_design = new $class(); - } - - $designer = new Designer($this->invoice, $invoice_design, $this->invoice->client->getSetting('pdf_variables'), 'invoice'); + $designer = new Designer($this->invoice, $design, $this->invoice->client->getSetting('pdf_variables'), 'invoice'); //get invoice design - $html = $this->generateInvoiceHtml($designer->build()->getHtml(), $this->invoice, $this->contact); + //$html = $this->generateInvoiceHtml($designer->build()->getHtml(), $this->invoice, $this->contact); + $html = $this->generateEntityHtml($designer, $this->invoice, $this->contact); + //todo - move this to the client creation stage so we don't keep hitting this unnecessarily Storage::makeDirectory($path, 0755); diff --git a/app/Jobs/Quote/CreateQuotePdf.php b/app/Jobs/Quote/CreateQuotePdf.php index b6a9d9fafb9c..f346289dc29f 100644 --- a/app/Jobs/Quote/CreateQuotePdf.php +++ b/app/Jobs/Quote/CreateQuotePdf.php @@ -79,15 +79,7 @@ class CreateQuotePdf implements ShouldQueue { $design = Design::find($this->decodePrimaryKey($this->quote->client->getSetting('quote_design_id'))); - if($design->is_custom){ - $quote_design = new Custom($design->design); - } - else{ - $class = 'App\Designs\\'.$design->name; - $quote_design = new $class(); - } - - $designer = new Designer($this->quote, $quote_design, $this->quote->client->getSetting('pdf_variables'), 'quote'); + $designer = new Designer($this->quote, $design, $this->quote->client->getSetting('pdf_variables'), 'quote'); //todo - move this to the client creation stage so we don't keep hitting this unnecessarily Storage::makeDirectory($path, 0755); @@ -123,7 +115,8 @@ class CreateQuotePdf implements ShouldQueue { //get invoice design - $html = $this->generateInvoiceHtml($design_body, $this->quote, $this->contact); +// $html = $this->generateInvoiceHtml($design_body, $this->quote, $this->contact); + $html = $this->generateEntityHtml($designer, $this->quote, $this->contact); $pdf = $this->makePdf($all_pages_header, $all_pages_footer, $html); $file_path = $path . $quote_number . '.pdf'; diff --git a/app/Jobs/Util/Import.php b/app/Jobs/Util/Import.php index 2e01f4d81256..cd9fcf69ddd8 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -134,8 +134,6 @@ class Import implements ShouldQueue throw new ResourceNotAvailableForMigration("Resource {$key} is not available for migration."); } - \Log::error($key); - $method = sprintf("process%s", Str::ucfirst(Str::camel($key))); $this->{$method}($resource); diff --git a/app/Models/Client.php b/app/Models/Client.php index eb9251399bb7..8d51d696c4a8 100644 --- a/app/Models/Client.php +++ b/app/Models/Client.php @@ -468,10 +468,10 @@ class Client extends BaseModel implements HasLocalePreference public function setCompanyDefaults($data, $entity_name) { - if(strlen($data['terms']) == 0) + if(isset($data['terms']) && strlen($data['terms']) == 0) $data['terms'] = $this->getSetting($entity_name.'_terms'); - if(strlen($data['footer']) == 0) + if(isset($data['footer']) && strlen($data['footer']) == 0) $data['footer'] = $this->getSetting($entity_name.'_footer'); if(strlen($this->public_notes) >=1) diff --git a/app/Repositories/BaseRepository.php b/app/Repositories/BaseRepository.php index 99e17d3a5f85..96d1112b55b3 100644 --- a/app/Repositories/BaseRepository.php +++ b/app/Repositories/BaseRepository.php @@ -188,7 +188,10 @@ class BaseRepository { $class = new ReflectionClass($model); - $client = Client::find($data['client_id']); + if(array_key_exists('client_id', $data)) + $client = Client::find($data['client_id']); + else + $client = Client::find($model->client_id); $state = []; $resource = explode('\\', $class->name)[2]; /** This will extract 'Invoice' from App\Models\Invoice */ @@ -202,8 +205,6 @@ class BaseRepository $model->uses_inclusive_taxes = $client->getSetting('inclusive_taxes'); } -\Log::error(print_r($data,1)); - $model->fill($data); $model->save(); @@ -288,4 +289,4 @@ class BaseRepository return $model->fresh(); } -} +} \ No newline at end of file diff --git a/app/Utils/Traits/MakesInvoiceHtml.php b/app/Utils/Traits/MakesInvoiceHtml.php index dd0abc35af6e..efbda5f1c8af 100644 --- a/app/Utils/Traits/MakesInvoiceHtml.php +++ b/app/Utils/Traits/MakesInvoiceHtml.php @@ -11,6 +11,7 @@ namespace App\Utils\Traits; +use App\Designs\Designer; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\Blade; use Symfony\Component\Debug\Exception\FatalThrowableError; @@ -47,12 +48,51 @@ trait MakesInvoiceHtml $design = str_replace(array_keys($values), array_values($values), $design); $data['invoice'] = $invoice; + $data['lang'] = $client->preferredLocale(); return $this->renderView($design, $data); //return view($design, $data)->render(); } + public function generateEntityHtml(Designer $designer, $entity, $contact = null) :string + { + + $entity->load('client'); + + $client = $entity->client; + + App::setLocale($client->preferredLocale()); + + $labels = $entity->makeLabels(); + $values = $entity->makeValues($contact); + + $css_url = url('').'/css/design/'.$designer->design_name.'.css'; + $css_url = ""; + + $data = []; + $data['entity'] = $entity; + $data['lang'] = $client->preferredLocale(); + $data['includes'] = $this->parseLabelsAndValues($labels, $values, $designer->init()->getIncludes()->getHtml()); + $data['includes'] = str_replace('$css_url', $css_url, $data['includes']); + $data['header'] = $this->parseLabelsAndValues($labels, $values, $designer->init()->getHeader()->getHtml()); + $data['body'] = $this->parseLabelsAndValues($labels, $values, $designer->init()->getBody()->getHtml()); + $data['product'] = $this->parseLabelsAndValues($labels, $values, $designer->init()->getProductTable()); + $data['task'] = $this->parseLabelsAndValues($labels, $values, $designer->init()->getTaskTable()); + $data['footer'] = $this->parseLabelsAndValues($labels, $values, $designer->init()->getFooter()->getHtml()); + + + + return view('pdf.stub', $data)->render(); + } + + private function parseLabelsAndValues($labels, $values, $section) :string + { + $section = str_replace(array_keys($labels), array_values($labels), $section); + $section = str_replace(array_keys($values), array_values($values), $section); + return $section; + } + /** * Parses the blade file string and processes the template variables * @@ -61,11 +101,8 @@ trait MakesInvoiceHtml * @return string The return HTML string * */ - public function renderView($string, $data) :string + public function renderView($string, $data = []) :string { - if (!$data) { - $data = []; - } $data['__env'] = app(\Illuminate\View\Factory::class); diff --git a/app/Utils/Traits/MakesInvoiceValues.php b/app/Utils/Traits/MakesInvoiceValues.php index dafd121af306..bf7f75ff5285 100644 --- a/app/Utils/Traits/MakesInvoiceValues.php +++ b/app/Utils/Traits/MakesInvoiceValues.php @@ -505,7 +505,7 @@ trait MakesInvoiceValues } - public function table_header($columns, $css) :?string + public function table_header($columns) :?string { /* Table Header */ @@ -524,7 +524,10 @@ trait MakesInvoiceValues } - public function table_body($columns, $css) :?string + /** + * @todo need to differentiate here between products and tasks - need to filter by invoice_type_id + */ + public function table_body($columns) :?string { $table_body = ''; diff --git a/database/seeds/DesignSeeder.php b/database/seeds/DesignSeeder.php index 0b292792287e..90d1295f02ed 100644 --- a/database/seeds/DesignSeeder.php +++ b/database/seeds/DesignSeeder.php @@ -42,11 +42,11 @@ class DesignSeeder extends Seeder $invoice_design = new $class(); $design_object = new \stdClass; - $design_object->include = $invoice_design->include() ?: ''; + $design_object->includes = $invoice_design->includes() ?: ''; $design_object->header = $invoice_design->header() ?: ''; $design_object->body = $invoice_design->body() ?: ''; - $design_object->product_table = $invoice_design->product_table() ?: ''; - $design_object->task_table = $invoice_design->task_table() ?: ''; + $design_object->product = $invoice_design->product() ?: ''; + $design_object->task = $invoice_design->task() ?: ''; $design_object->footer = $invoice_design->footer() ?: ''; $design->design = $design_object; diff --git a/public/css/design/bold.css b/public/css/design/bold.css new file mode 100644 index 000000000000..3b9cf4c3549f --- /dev/null +++ b/public/css/design/bold.css @@ -0,0 +1 @@ + body{font-size:98%}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}img{border-style:none}[type=button],[type=reset],[type=submit]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden],template{display:none}html{box-sizing:border-box;font-family:sans-serif}*,:after,:before{box-sizing:inherit}h1,h2,h4,p{margin:0}html{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{border:0 solid #e2e8f0}img{border-style:solid}[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h4{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}img{display:block;vertical-align:middle;max-width:100%;height:auto}.bg-white{background-color:#fff}.bg-gray-100{background-color:#f7fafc}.bg-gray-200{background-color:#edf2f7}.bg-gray-300{background-color:#e2e8f0}.bg-gray-800{background-color:#2d3748}.bg-gray-900{background-color:#1a202c}.bg-orange-600{background-color:#dd6b20}.bg-orange-700{background-color:#c05621}.bg-teal-600{background-color:#319795}.bg-blue-900{background-color:#2a4365}.border-black{border-color:#000}.border-white{border-color:#fff}.border-gray-300{border-color:#e2e8f0}.border-gray-400{border-color:#cbd5e0}.border-gray-900{border-color:#1a202c}.border-teal-600{border-color:#319795}.border-pink-700{border-color:#b83280}.rounded-lg{border-radius:.5rem}.border-dashed{border-style:dashed}.border-4{border-width:4px}.border{border-width:1px}.border-t-2{border-top-width:2px}.border-l-2{border-left-width:2px}.border-t-4{border-top-width:4px}.border-b-4{border-bottom-width:4px}.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.inline-block{display:inline-block}.flex{display:-webkit-box;display:flex}.table{display:table}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{-webkit-box-align:end;align-items:flex-end}.items-center{-webkit-box-align:center;align-items:center}.justify-end{-webkit-box-pack:end;justify-content:flex-end}.justify-center{-webkit-box-pack:center;justify-content:center}.justify-between{-webkit-box-pack:justify;justify-content:space-between}.content-center{align-content:center}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-24{height:6rem}.h-auto{height:auto}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mx-16{margin-left:4rem;margin-right:4rem}.my-20{margin-top:5rem;margin-bottom:5rem}.mx-24{margin-left:6rem;margin-right:6rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mr-3{margin-right:.75rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mr-5{margin-right:1.25rem}.ml-5{margin-left:1.25rem}.mt-6{margin-top:1.5rem}.ml-6{margin-left:1.5rem}.mt-8{margin-top:2rem}.mr-8{margin-right:2rem}.ml-8{margin-left:2rem}.mt-10{margin-top:2.5rem}.mr-10{margin-right:2.5rem}.ml-10{margin-left:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.ml-16{margin-left:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.ml-24{margin-left:6rem}.mt-32{margin-top:8rem}.mr-40{margin-right:10rem}.ml-40{margin-left:10rem}.p-1{padding:.25rem}.p-5{padding:1.25rem}.p-12{padding:3rem}.p-16{padding:4rem}.p-px{padding:1px}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.px-12{padding-left:3rem;padding-right:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.pt-4{padding-top:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pl-12{padding-left:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.table-auto{table-layout:auto}.text-left{text-align:left}.text-right{text-align:right}.text-white{color:#fff}.text-gray-600{color:#718096}.text-red-700{color:#c53030}.text-red-800{color:#9b2c2c}.text-orange-600{color:#dd6b20}.text-orange-700{color:#c05621}.text-orange-800{color:#9c4221}.text-yellow-600{color:#d69e2e}.text-green-700{color:#2f855a}.text-teal-600{color:#319795}.text-blue-500{color:#4299e1}.text-blue-600{color:#3182ce}.text-pink-700{color:#b83280}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-5xl{font-size:3rem}.text-6xl{font-size:4rem}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.align-middle{vertical-align:middle}.w-24{width:6rem}.w-32{width:8rem}.w-40{width:10rem}.w-48{width:12rem}.w-56{width:14rem}.w-64{width:16rem}.w-auto{width:auto}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-2\/3{width:66.666667%}.w-full{width:100%} \ No newline at end of file diff --git a/public/css/design/business.css b/public/css/design/business.css new file mode 100644 index 000000000000..49d98b5f0e7b --- /dev/null +++ b/public/css/design/business.css @@ -0,0 +1 @@ +body{font-size:85%}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}img{border-style:none}[type=button],[type=reset],[type=submit]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden],template{display:none}h1,h2,h4,p{margin:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}img{border-style:solid}[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h4{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}img{display:block;vertical-align:middle;max-width:100%;height:auto}.bg-black{background-color:#000}.bg-white{background-color:#fff}.bg-gray-100{background-color:#f7fafc}.bg-gray-200{background-color:#edf2f7}.bg-gray-300{background-color:#e2e8f0}.bg-gray-800{background-color:#2d3748}.bg-gray-900{background-color:#1a202c}.bg-red-100{background-color:#fff5f5}.bg-red-300{background-color:#feb2b2}.bg-orange-600{background-color:#dd6b20}.bg-orange-700{background-color:#c05621}.bg-teal-600{background-color:#319795}.bg-blue-900{background-color:#2a4365}.border-black{border-color:#000}.border-white{border-color:#fff}.border-gray-300{border-color:#e2e8f0}.border-gray-400{border-color:#cbd5e0}.border-gray-900{border-color:#1a202c}.border-teal-600{border-color:#319795}.border-pink-700{border-color:#b83280}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem}.rounded-r-lg,.rounded-t-lg{border-top-right-radius:.5rem}.rounded-r-lg{border-bottom-right-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border-4{border-width:4px}.border{border-width:1px}.border-t-2{border-top-width:2px}.border-l-2{border-left-width:2px}.border-t-4{border-top-width:4px}.border-b-4{border-bottom-width:4px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.content-center{align-content:center}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-12{height:3rem}.h-24{height:6rem}.h-auto{height:auto}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mx-16{margin-left:4rem;margin-right:4rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mr-5{margin-right:1.25rem}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mt-8{margin-top:2rem}.mr-8{margin-right:2rem}.mb-8{margin-bottom:2rem}.ml-8{margin-left:2rem}.mt-10{margin-top:2.5rem}.mr-10{margin-right:2.5rem}.ml-10{margin-left:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.ml-24{margin-left:6rem}.mt-32{margin-top:8rem}.mr-40{margin-right:10rem}.p-1{padding:.25rem}.p-5{padding:1.25rem}.p-12{padding:3rem}.p-16{padding:4rem}.p-px{padding:1px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-8{padding-left:2rem;padding-right:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.px-12{padding-left:3rem;padding-right:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pl-12{padding-left:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.table-auto{table-layout:auto}.text-left{text-align:left}.text-right{text-align:right}.text-white{color:#fff}.text-gray-600{color:#718096}.text-red-700{color:#c53030}.text-red-800{color:#9b2c2c}.text-orange-600{color:#dd6b20}.text-orange-700{color:#c05621}.text-orange-800{color:#9c4221}.text-yellow-600{color:#d69e2e}.text-green-700{color:#2f855a}.text-teal-600{color:#319795}.text-blue-500{color:#4299e1}.text-blue-600{color:#3182ce}.text-pink-700{color:#b83280}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-5xl{font-size:3rem}.text-6xl{font-size:4rem}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.align-middle{vertical-align:middle}.w-32{width:8rem}.w-40{width:10rem}.w-48{width:12rem}.w-56{width:14rem}.w-64{width:16rem}.w-auto{width:auto}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-2\/3{width:66.666667%}.w-1\/4{width:25%}.w-2\/5{width:40%}.w-full{width:100%} \ No newline at end of file diff --git a/public/css/design/clean.css b/public/css/design/clean.css new file mode 100644 index 000000000000..d7c0539d7eaf --- /dev/null +++ b/public/css/design/clean.css @@ -0,0 +1 @@ + body{font-size:90%}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}img{border-style:none}[type=button],[type=reset],[type=submit]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden],template{display:none}h1,h2,h4,p{margin:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}img{border-style:solid}[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h4{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}img{display:block;vertical-align:middle;max-width:100%;height:auto}.bg-black{background-color:#000}.bg-white{background-color:#fff}.bg-gray-100{background-color:#f7fafc}.bg-gray-200{background-color:#edf2f7}.bg-gray-300{background-color:#e2e8f0}.bg-gray-800{background-color:#2d3748}.bg-gray-900{background-color:#1a202c}.bg-red-100{background-color:#fff5f5}.bg-red-300{background-color:#feb2b2}.bg-orange-600{background-color:#dd6b20}.bg-orange-700{background-color:#c05621}.bg-teal-600{background-color:#319795}.bg-blue-900{background-color:#2a4365}.border-black{border-color:#000}.border-white{border-color:#fff}.border-gray-300{border-color:#e2e8f0}.border-gray-400{border-color:#cbd5e0}.border-gray-900{border-color:#1a202c}.border-teal-600{border-color:#319795}.border-pink-700{border-color:#b83280}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem}.rounded-r-lg,.rounded-t-lg{border-top-right-radius:.5rem}.rounded-r-lg{border-bottom-right-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border-4{border-width:4px}.border{border-width:1px}.border-t-2{border-top-width:2px}.border-l-2{border-left-width:2px}.border-t-4{border-top-width:4px}.border-b-4{border-bottom-width:4px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.content-center{align-content:center}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-12{height:3rem}.h-24{height:6rem}.h-auto{height:auto}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mx-16{margin-left:4rem;margin-right:4rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mr-5{margin-right:1.25rem}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mt-8{margin-top:2rem}.mr-8{margin-right:2rem}.mb-8{margin-bottom:2rem}.ml-8{margin-left:2rem}.mt-10{margin-top:2.5rem}.mr-10{margin-right:2.5rem}.ml-10{margin-left:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.ml-24{margin-left:6rem}.mt-32{margin-top:8rem}.mr-40{margin-right:10rem}.p-1{padding:.25rem}.p-5{padding:1.25rem}.p-12{padding:3rem}.p-16{padding:4rem}.p-px{padding:1px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-8{padding-left:2rem;padding-right:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.px-12{padding-left:3rem;padding-right:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pl-12{padding-left:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.table-auto{table-layout:auto}.text-left{text-align:left}.text-right{text-align:right}.text-white{color:#fff}.text-gray-600{color:#718096}.text-red-700{color:#c53030}.text-red-800{color:#9b2c2c}.text-orange-600{color:#dd6b20}.text-orange-700{color:#c05621}.text-orange-800{color:#9c4221}.text-yellow-600{color:#d69e2e}.text-green-700{color:#2f855a}.text-teal-600{color:#319795}.text-blue-500{color:#4299e1}.text-blue-600{color:#3182ce}.text-pink-700{color:#b83280}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-5xl{font-size:3rem}.text-6xl{font-size:4rem}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.align-middle{vertical-align:middle}.w-32{width:8rem}.w-40{width:10rem}.w-48{width:12rem}.w-56{width:14rem}.w-64{width:16rem}.w-auto{width:auto}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-2\/3{width:66.666667%}.w-1\/4{width:25%}.w-2\/5{width:40%}.w-full{width:100%} \ No newline at end of file diff --git a/public/css/design/creative.css b/public/css/design/creative.css new file mode 100644 index 000000000000..7107a4f62def --- /dev/null +++ b/public/css/design/creative.css @@ -0,0 +1 @@ +body{font-size:90%}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}img{border-style:none}[type=button],[type=reset],[type=submit]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden],template{display:none}h1,h2,h4,p{margin:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}img{border-style:solid}[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h4{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}img{display:block;vertical-align:middle;max-width:100%;height:auto}.bg-black{background-color:#000}.bg-white{background-color:#fff}.bg-gray-100{background-color:#f7fafc}.bg-gray-200{background-color:#edf2f7}.bg-gray-300{background-color:#e2e8f0}.bg-gray-800{background-color:#2d3748}.bg-gray-900{background-color:#1a202c}.bg-red-100{background-color:#fff5f5}.bg-red-300{background-color:#feb2b2}.bg-orange-600{background-color:#dd6b20}.bg-orange-700{background-color:#c05621}.bg-teal-600{background-color:#319795}.bg-blue-900{background-color:#2a4365}.border-black{border-color:#000}.border-white{border-color:#fff}.border-gray-300{border-color:#e2e8f0}.border-gray-400{border-color:#cbd5e0}.border-gray-900{border-color:#1a202c}.border-teal-600{border-color:#319795}.border-pink-700{border-color:#b83280}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem}.rounded-r-lg,.rounded-t-lg{border-top-right-radius:.5rem}.rounded-r-lg{border-bottom-right-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border-4{border-width:4px}.border{border-width:1px}.border-t-2{border-top-width:2px}.border-l-2{border-left-width:2px}.border-t-4{border-top-width:4px}.border-b-4{border-bottom-width:4px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.content-center{align-content:center}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-12{height:3rem}.h-24{height:6rem}.h-auto{height:auto}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mx-16{margin-left:4rem;margin-right:4rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mr-5{margin-right:1.25rem}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mt-8{margin-top:2rem}.mr-8{margin-right:2rem}.mb-8{margin-bottom:2rem}.ml-8{margin-left:2rem}.mt-10{margin-top:2.5rem}.mr-10{margin-right:2.5rem}.ml-10{margin-left:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.ml-24{margin-left:6rem}.mt-32{margin-top:8rem}.mr-40{margin-right:10rem}.p-1{padding:.25rem}.p-5{padding:1.25rem}.p-12{padding:3rem}.p-16{padding:4rem}.p-px{padding:1px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-8{padding-left:2rem;padding-right:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.px-12{padding-left:3rem;padding-right:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pl-12{padding-left:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.table-auto{table-layout:auto}.text-left{text-align:left}.text-right{text-align:right}.text-white{color:#fff}.text-gray-600{color:#718096}.text-red-700{color:#c53030}.text-red-800{color:#9b2c2c}.text-orange-600{color:#dd6b20}.text-orange-700{color:#c05621}.text-orange-800{color:#9c4221}.text-yellow-600{color:#d69e2e}.text-green-700{color:#2f855a}.text-teal-600{color:#319795}.text-blue-500{color:#4299e1}.text-blue-600{color:#3182ce}.text-pink-700{color:#b83280}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-5xl{font-size:3rem}.text-6xl{font-size:4rem}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.align-middle{vertical-align:middle}.w-32{width:8rem}.w-40{width:10rem}.w-48{width:12rem}.w-56{width:14rem}.w-64{width:16rem}.w-auto{width:auto}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-2\/3{width:66.666667%}.w-1\/4{width:25%}.w-2\/5{width:40%}.w-full{width:100%} \ No newline at end of file diff --git a/public/css/design/custom.css b/public/css/design/custom.css new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/public/css/design/elegant.css b/public/css/design/elegant.css new file mode 100644 index 000000000000..2ede9028a776 --- /dev/null +++ b/public/css/design/elegant.css @@ -0,0 +1 @@ +body{font-size:80%}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}img{border-style:none}[type=button],[type=reset],[type=submit]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden],template{display:none}h1,h2,h4,p{margin:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}img{border-style:solid}[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h4{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}img{display:block;vertical-align:middle;max-width:100%;height:auto}.bg-black{background-color:#000}.bg-white{background-color:#fff}.bg-gray-100{background-color:#f7fafc}.bg-gray-200{background-color:#edf2f7}.bg-gray-300{background-color:#e2e8f0}.bg-gray-800{background-color:#2d3748}.bg-gray-900{background-color:#1a202c}.bg-red-100{background-color:#fff5f5}.bg-red-300{background-color:#feb2b2}.bg-orange-600{background-color:#dd6b20}.bg-orange-700{background-color:#c05621}.bg-teal-600{background-color:#319795}.bg-blue-900{background-color:#2a4365}.border-black{border-color:#000}.border-white{border-color:#fff}.border-gray-300{border-color:#e2e8f0}.border-gray-400{border-color:#cbd5e0}.border-gray-900{border-color:#1a202c}.border-teal-600{border-color:#319795}.border-pink-700{border-color:#b83280}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem}.rounded-r-lg,.rounded-t-lg{border-top-right-radius:.5rem}.rounded-r-lg{border-bottom-right-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border-4{border-width:4px}.border{border-width:1px}.border-t-2{border-top-width:2px}.border-l-2{border-left-width:2px}.border-t-4{border-top-width:4px}.border-b-4{border-bottom-width:4px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.content-center{align-content:center}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-12{height:3rem}.h-24{height:6rem}.h-auto{height:auto}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mx-16{margin-left:4rem;margin-right:4rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mr-5{margin-right:1.25rem}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mt-8{margin-top:2rem}.mr-8{margin-right:2rem}.mb-8{margin-bottom:2rem}.ml-8{margin-left:2rem}.mt-10{margin-top:2.5rem}.mr-10{margin-right:2.5rem}.ml-10{margin-left:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.ml-24{margin-left:6rem}.mt-32{margin-top:8rem}.mr-40{margin-right:10rem}.p-1{padding:.25rem}.p-5{padding:1.25rem}.p-12{padding:3rem}.p-16{padding:4rem}.p-px{padding:1px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-8{padding-left:2rem;padding-right:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.px-12{padding-left:3rem;padding-right:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pl-12{padding-left:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.table-auto{table-layout:auto}.text-left{text-align:left}.text-right{text-align:right}.text-white{color:#fff}.text-gray-600{color:#718096}.text-red-700{color:#c53030}.text-red-800{color:#9b2c2c}.text-orange-600{color:#dd6b20}.text-orange-700{color:#c05621}.text-orange-800{color:#9c4221}.text-yellow-600{color:#d69e2e}.text-green-700{color:#2f855a}.text-teal-600{color:#319795}.text-blue-500{color:#4299e1}.text-blue-600{color:#3182ce}.text-pink-700{color:#b83280}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-5xl{font-size:3rem}.text-6xl{font-size:4rem}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.align-middle{vertical-align:middle}.w-32{width:8rem}.w-40{width:10rem}.w-48{width:12rem}.w-56{width:14rem}.w-64{width:16rem}.w-auto{width:auto}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-2\/3{width:66.666667%}.w-1\/4{width:25%}.w-2\/5{width:40%}.w-full{width:100%} \ No newline at end of file diff --git a/public/css/design/hipster.css b/public/css/design/hipster.css new file mode 100644 index 000000000000..2ede9028a776 --- /dev/null +++ b/public/css/design/hipster.css @@ -0,0 +1 @@ +body{font-size:80%}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}img{border-style:none}[type=button],[type=reset],[type=submit]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden],template{display:none}h1,h2,h4,p{margin:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}img{border-style:solid}[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h4{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}img{display:block;vertical-align:middle;max-width:100%;height:auto}.bg-black{background-color:#000}.bg-white{background-color:#fff}.bg-gray-100{background-color:#f7fafc}.bg-gray-200{background-color:#edf2f7}.bg-gray-300{background-color:#e2e8f0}.bg-gray-800{background-color:#2d3748}.bg-gray-900{background-color:#1a202c}.bg-red-100{background-color:#fff5f5}.bg-red-300{background-color:#feb2b2}.bg-orange-600{background-color:#dd6b20}.bg-orange-700{background-color:#c05621}.bg-teal-600{background-color:#319795}.bg-blue-900{background-color:#2a4365}.border-black{border-color:#000}.border-white{border-color:#fff}.border-gray-300{border-color:#e2e8f0}.border-gray-400{border-color:#cbd5e0}.border-gray-900{border-color:#1a202c}.border-teal-600{border-color:#319795}.border-pink-700{border-color:#b83280}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem}.rounded-r-lg,.rounded-t-lg{border-top-right-radius:.5rem}.rounded-r-lg{border-bottom-right-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border-4{border-width:4px}.border{border-width:1px}.border-t-2{border-top-width:2px}.border-l-2{border-left-width:2px}.border-t-4{border-top-width:4px}.border-b-4{border-bottom-width:4px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.content-center{align-content:center}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-12{height:3rem}.h-24{height:6rem}.h-auto{height:auto}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mx-16{margin-left:4rem;margin-right:4rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mr-5{margin-right:1.25rem}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mt-8{margin-top:2rem}.mr-8{margin-right:2rem}.mb-8{margin-bottom:2rem}.ml-8{margin-left:2rem}.mt-10{margin-top:2.5rem}.mr-10{margin-right:2.5rem}.ml-10{margin-left:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.ml-24{margin-left:6rem}.mt-32{margin-top:8rem}.mr-40{margin-right:10rem}.p-1{padding:.25rem}.p-5{padding:1.25rem}.p-12{padding:3rem}.p-16{padding:4rem}.p-px{padding:1px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-8{padding-left:2rem;padding-right:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.px-12{padding-left:3rem;padding-right:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pl-12{padding-left:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.table-auto{table-layout:auto}.text-left{text-align:left}.text-right{text-align:right}.text-white{color:#fff}.text-gray-600{color:#718096}.text-red-700{color:#c53030}.text-red-800{color:#9b2c2c}.text-orange-600{color:#dd6b20}.text-orange-700{color:#c05621}.text-orange-800{color:#9c4221}.text-yellow-600{color:#d69e2e}.text-green-700{color:#2f855a}.text-teal-600{color:#319795}.text-blue-500{color:#4299e1}.text-blue-600{color:#3182ce}.text-pink-700{color:#b83280}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-5xl{font-size:3rem}.text-6xl{font-size:4rem}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.align-middle{vertical-align:middle}.w-32{width:8rem}.w-40{width:10rem}.w-48{width:12rem}.w-56{width:14rem}.w-64{width:16rem}.w-auto{width:auto}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-2\/3{width:66.666667%}.w-1\/4{width:25%}.w-2\/5{width:40%}.w-full{width:100%} \ No newline at end of file diff --git a/public/css/design/modern.css b/public/css/design/modern.css new file mode 100644 index 000000000000..49d98b5f0e7b --- /dev/null +++ b/public/css/design/modern.css @@ -0,0 +1 @@ +body{font-size:85%}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}img{border-style:none}[type=button],[type=reset],[type=submit]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden],template{display:none}h1,h2,h4,p{margin:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}img{border-style:solid}[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h4{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}img{display:block;vertical-align:middle;max-width:100%;height:auto}.bg-black{background-color:#000}.bg-white{background-color:#fff}.bg-gray-100{background-color:#f7fafc}.bg-gray-200{background-color:#edf2f7}.bg-gray-300{background-color:#e2e8f0}.bg-gray-800{background-color:#2d3748}.bg-gray-900{background-color:#1a202c}.bg-red-100{background-color:#fff5f5}.bg-red-300{background-color:#feb2b2}.bg-orange-600{background-color:#dd6b20}.bg-orange-700{background-color:#c05621}.bg-teal-600{background-color:#319795}.bg-blue-900{background-color:#2a4365}.border-black{border-color:#000}.border-white{border-color:#fff}.border-gray-300{border-color:#e2e8f0}.border-gray-400{border-color:#cbd5e0}.border-gray-900{border-color:#1a202c}.border-teal-600{border-color:#319795}.border-pink-700{border-color:#b83280}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem}.rounded-r-lg,.rounded-t-lg{border-top-right-radius:.5rem}.rounded-r-lg{border-bottom-right-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border-4{border-width:4px}.border{border-width:1px}.border-t-2{border-top-width:2px}.border-l-2{border-left-width:2px}.border-t-4{border-top-width:4px}.border-b-4{border-bottom-width:4px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.content-center{align-content:center}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-12{height:3rem}.h-24{height:6rem}.h-auto{height:auto}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mx-16{margin-left:4rem;margin-right:4rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mr-5{margin-right:1.25rem}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mt-8{margin-top:2rem}.mr-8{margin-right:2rem}.mb-8{margin-bottom:2rem}.ml-8{margin-left:2rem}.mt-10{margin-top:2.5rem}.mr-10{margin-right:2.5rem}.ml-10{margin-left:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.ml-24{margin-left:6rem}.mt-32{margin-top:8rem}.mr-40{margin-right:10rem}.p-1{padding:.25rem}.p-5{padding:1.25rem}.p-12{padding:3rem}.p-16{padding:4rem}.p-px{padding:1px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-8{padding-left:2rem;padding-right:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.px-12{padding-left:3rem;padding-right:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pl-12{padding-left:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.table-auto{table-layout:auto}.text-left{text-align:left}.text-right{text-align:right}.text-white{color:#fff}.text-gray-600{color:#718096}.text-red-700{color:#c53030}.text-red-800{color:#9b2c2c}.text-orange-600{color:#dd6b20}.text-orange-700{color:#c05621}.text-orange-800{color:#9c4221}.text-yellow-600{color:#d69e2e}.text-green-700{color:#2f855a}.text-teal-600{color:#319795}.text-blue-500{color:#4299e1}.text-blue-600{color:#3182ce}.text-pink-700{color:#b83280}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-5xl{font-size:3rem}.text-6xl{font-size:4rem}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.align-middle{vertical-align:middle}.w-32{width:8rem}.w-40{width:10rem}.w-48{width:12rem}.w-56{width:14rem}.w-64{width:16rem}.w-auto{width:auto}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-2\/3{width:66.666667%}.w-1\/4{width:25%}.w-2\/5{width:40%}.w-full{width:100%} \ No newline at end of file diff --git a/public/css/design/photo.css b/public/css/design/photo.css new file mode 100644 index 000000000000..2ede9028a776 --- /dev/null +++ b/public/css/design/photo.css @@ -0,0 +1 @@ +body{font-size:80%}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}img{border-style:none}[type=button],[type=reset],[type=submit]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden],template{display:none}h1,h2,h4,p{margin:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}img{border-style:solid}[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h4{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}img{display:block;vertical-align:middle;max-width:100%;height:auto}.bg-black{background-color:#000}.bg-white{background-color:#fff}.bg-gray-100{background-color:#f7fafc}.bg-gray-200{background-color:#edf2f7}.bg-gray-300{background-color:#e2e8f0}.bg-gray-800{background-color:#2d3748}.bg-gray-900{background-color:#1a202c}.bg-red-100{background-color:#fff5f5}.bg-red-300{background-color:#feb2b2}.bg-orange-600{background-color:#dd6b20}.bg-orange-700{background-color:#c05621}.bg-teal-600{background-color:#319795}.bg-blue-900{background-color:#2a4365}.border-black{border-color:#000}.border-white{border-color:#fff}.border-gray-300{border-color:#e2e8f0}.border-gray-400{border-color:#cbd5e0}.border-gray-900{border-color:#1a202c}.border-teal-600{border-color:#319795}.border-pink-700{border-color:#b83280}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem}.rounded-r-lg,.rounded-t-lg{border-top-right-radius:.5rem}.rounded-r-lg{border-bottom-right-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border-4{border-width:4px}.border{border-width:1px}.border-t-2{border-top-width:2px}.border-l-2{border-left-width:2px}.border-t-4{border-top-width:4px}.border-b-4{border-bottom-width:4px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.content-center{align-content:center}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-12{height:3rem}.h-24{height:6rem}.h-auto{height:auto}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mx-16{margin-left:4rem;margin-right:4rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mr-5{margin-right:1.25rem}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mt-8{margin-top:2rem}.mr-8{margin-right:2rem}.mb-8{margin-bottom:2rem}.ml-8{margin-left:2rem}.mt-10{margin-top:2.5rem}.mr-10{margin-right:2.5rem}.ml-10{margin-left:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.ml-24{margin-left:6rem}.mt-32{margin-top:8rem}.mr-40{margin-right:10rem}.p-1{padding:.25rem}.p-5{padding:1.25rem}.p-12{padding:3rem}.p-16{padding:4rem}.p-px{padding:1px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-8{padding-left:2rem;padding-right:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.px-12{padding-left:3rem;padding-right:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pl-12{padding-left:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.table-auto{table-layout:auto}.text-left{text-align:left}.text-right{text-align:right}.text-white{color:#fff}.text-gray-600{color:#718096}.text-red-700{color:#c53030}.text-red-800{color:#9b2c2c}.text-orange-600{color:#dd6b20}.text-orange-700{color:#c05621}.text-orange-800{color:#9c4221}.text-yellow-600{color:#d69e2e}.text-green-700{color:#2f855a}.text-teal-600{color:#319795}.text-blue-500{color:#4299e1}.text-blue-600{color:#3182ce}.text-pink-700{color:#b83280}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-5xl{font-size:3rem}.text-6xl{font-size:4rem}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.align-middle{vertical-align:middle}.w-32{width:8rem}.w-40{width:10rem}.w-48{width:12rem}.w-56{width:14rem}.w-64{width:16rem}.w-auto{width:auto}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-2\/3{width:66.666667%}.w-1\/4{width:25%}.w-2\/5{width:40%}.w-full{width:100%} \ No newline at end of file diff --git a/public/css/design/plain.css b/public/css/design/plain.css new file mode 100644 index 000000000000..ee6e5e232819 --- /dev/null +++ b/public/css/design/plain.css @@ -0,0 +1,2 @@ + body{font-size:90%} + /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}img{border-style:none}[type=button],[type=reset],[type=submit]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden],template{display:none}h1,h2,h4,p{margin:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}img{border-style:solid}[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h4{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}img{display:block;vertical-align:middle;max-width:100%;height:auto}.bg-black{background-color:#000}.bg-white{background-color:#fff}.bg-gray-100{background-color:#f7fafc}.bg-gray-200{background-color:#edf2f7}.bg-gray-300{background-color:#e2e8f0}.bg-gray-800{background-color:#2d3748}.bg-gray-900{background-color:#1a202c}.bg-red-100{background-color:#fff5f5}.bg-red-300{background-color:#feb2b2}.bg-orange-600{background-color:#dd6b20}.bg-orange-700{background-color:#c05621}.bg-teal-600{background-color:#319795}.bg-blue-900{background-color:#2a4365}.border-black{border-color:#000}.border-white{border-color:#fff}.border-gray-300{border-color:#e2e8f0}.border-gray-400{border-color:#cbd5e0}.border-gray-900{border-color:#1a202c}.border-teal-600{border-color:#319795}.border-pink-700{border-color:#b83280}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem}.rounded-r-lg,.rounded-t-lg{border-top-right-radius:.5rem}.rounded-r-lg{border-bottom-right-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border-4{border-width:4px}.border{border-width:1px}.border-t-2{border-top-width:2px}.border-l-2{border-left-width:2px}.border-t-4{border-top-width:4px}.border-b-4{border-bottom-width:4px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.content-center{align-content:center}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-12{height:3rem}.h-24{height:6rem}.h-auto{height:auto}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mx-16{margin-left:4rem;margin-right:4rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mr-5{margin-right:1.25rem}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mt-8{margin-top:2rem}.mr-8{margin-right:2rem}.mb-8{margin-bottom:2rem}.ml-8{margin-left:2rem}.mt-10{margin-top:2.5rem}.mr-10{margin-right:2.5rem}.ml-10{margin-left:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.ml-24{margin-left:6rem}.mt-32{margin-top:8rem}.mr-40{margin-right:10rem}.p-1{padding:.25rem}.p-5{padding:1.25rem}.p-12{padding:3rem}.p-16{padding:4rem}.p-px{padding:1px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-8{padding-left:2rem;padding-right:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.px-12{padding-left:3rem;padding-right:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pl-12{padding-left:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.table-auto{table-layout:auto}.text-left{text-align:left}.text-right{text-align:right}.text-white{color:#fff}.text-gray-600{color:#718096}.text-red-700{color:#c53030}.text-red-800{color:#9b2c2c}.text-orange-600{color:#dd6b20}.text-orange-700{color:#c05621}.text-orange-800{color:#9c4221}.text-yellow-600{color:#d69e2e}.text-green-700{color:#2f855a}.text-teal-600{color:#319795}.text-blue-500{color:#4299e1}.text-blue-600{color:#3182ce}.text-pink-700{color:#b83280}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-5xl{font-size:3rem}.text-6xl{font-size:4rem}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.align-middle{vertical-align:middle}.w-32{width:8rem}.w-40{width:10rem}.w-48{width:12rem}.w-56{width:14rem}.w-64{width:16rem}.w-auto{width:auto}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-2\/3{width:66.666667%}.w-1\/4{width:25%}.w-2\/5{width:40%}.w-full{width:100%} \ No newline at end of file diff --git a/public/css/design/playful.css b/public/css/design/playful.css new file mode 100644 index 000000000000..2ede9028a776 --- /dev/null +++ b/public/css/design/playful.css @@ -0,0 +1 @@ +body{font-size:80%}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}h1{font-size:2em;margin:.67em 0}a{background-color:transparent}img{border-style:none}[type=button],[type=reset],[type=submit]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden],template{display:none}h1,h2,h4,p{margin:0}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}*,:after,:before{box-sizing:border-box;border:0 solid #e2e8f0}img{border-style:solid}[role=button]{cursor:pointer}table{border-collapse:collapse}h1,h2,h4{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}img{display:block;vertical-align:middle;max-width:100%;height:auto}.bg-black{background-color:#000}.bg-white{background-color:#fff}.bg-gray-100{background-color:#f7fafc}.bg-gray-200{background-color:#edf2f7}.bg-gray-300{background-color:#e2e8f0}.bg-gray-800{background-color:#2d3748}.bg-gray-900{background-color:#1a202c}.bg-red-100{background-color:#fff5f5}.bg-red-300{background-color:#feb2b2}.bg-orange-600{background-color:#dd6b20}.bg-orange-700{background-color:#c05621}.bg-teal-600{background-color:#319795}.bg-blue-900{background-color:#2a4365}.border-black{border-color:#000}.border-white{border-color:#fff}.border-gray-300{border-color:#e2e8f0}.border-gray-400{border-color:#cbd5e0}.border-gray-900{border-color:#1a202c}.border-teal-600{border-color:#319795}.border-pink-700{border-color:#b83280}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem}.rounded-r-lg,.rounded-t-lg{border-top-right-radius:.5rem}.rounded-r-lg{border-bottom-right-radius:.5rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.border-dashed{border-style:dashed}.border-4{border-width:4px}.border{border-width:1px}.border-t-2{border-top-width:2px}.border-l-2{border-left-width:2px}.border-t-4{border-top-width:4px}.border-b-4{border-bottom-width:4px}.border-t{border-top-width:1px}.border-r{border-right-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.inline-block{display:inline-block}.flex{display:flex}.table{display:table}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.content-center{align-content:center}.font-normal{font-weight:400}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.h-12{height:3rem}.h-24{height:6rem}.h-auto{height:auto}.m-3{margin:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-16{margin-top:4rem;margin-bottom:4rem}.mx-16{margin-left:4rem;margin-right:4rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mr-2{margin-right:.5rem}.ml-2{margin-left:.5rem}.mt-4{margin-top:1rem}.mr-4{margin-right:1rem}.mb-4{margin-bottom:1rem}.ml-4{margin-left:1rem}.mt-5{margin-top:1.25rem}.mr-5{margin-right:1.25rem}.mt-6{margin-top:1.5rem}.mr-6{margin-right:1.5rem}.mb-6{margin-bottom:1.5rem}.ml-6{margin-left:1.5rem}.mt-8{margin-top:2rem}.mr-8{margin-right:2rem}.mb-8{margin-bottom:2rem}.ml-8{margin-left:2rem}.mt-10{margin-top:2.5rem}.mr-10{margin-right:2.5rem}.ml-10{margin-left:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-20{margin-top:5rem}.mt-24{margin-top:6rem}.ml-24{margin-left:6rem}.mt-32{margin-top:8rem}.mr-40{margin-right:10rem}.p-1{padding:.25rem}.p-5{padding:1.25rem}.p-12{padding:3rem}.p-16{padding:4rem}.p-px{padding:1px}.py-2{padding-top:.5rem;padding-bottom:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.px-4{padding-left:1rem;padding-right:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-8{padding-top:2rem;padding-bottom:2rem}.px-8{padding-left:2rem;padding-right:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.px-12{padding-left:3rem;padding-right:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.px-16{padding-left:4rem;padding-right:4rem}.pr-2{padding-right:.5rem}.pt-4{padding-top:1rem}.pb-4{padding-bottom:1rem}.pl-4{padding-left:1rem}.pt-5{padding-top:1.25rem}.pb-6{padding-bottom:1.5rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pl-12{padding-left:3rem}.pb-16{padding-bottom:4rem}.pb-20{padding-bottom:5rem}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.table-auto{table-layout:auto}.text-left{text-align:left}.text-right{text-align:right}.text-white{color:#fff}.text-gray-600{color:#718096}.text-red-700{color:#c53030}.text-red-800{color:#9b2c2c}.text-orange-600{color:#dd6b20}.text-orange-700{color:#c05621}.text-orange-800{color:#9c4221}.text-yellow-600{color:#d69e2e}.text-green-700{color:#2f855a}.text-teal-600{color:#319795}.text-blue-500{color:#4299e1}.text-blue-600{color:#3182ce}.text-pink-700{color:#b83280}.text-xl{font-size:1.25rem}.text-2xl{font-size:1.5rem}.text-5xl{font-size:3rem}.text-6xl{font-size:4rem}.uppercase{text-transform:uppercase}.tracking-tight{letter-spacing:-.025em}.align-middle{vertical-align:middle}.w-32{width:8rem}.w-40{width:10rem}.w-48{width:12rem}.w-56{width:14rem}.w-64{width:16rem}.w-auto{width:auto}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-2\/3{width:66.666667%}.w-1\/4{width:25%}.w-2\/5{width:40%}.w-full{width:100%} \ No newline at end of file diff --git a/resources/views/pdf/stub.blade.php b/resources/views/pdf/stub.blade.php index d05847828592..ecda510c61c1 100644 --- a/resources/views/pdf/stub.blade.php +++ b/resources/views/pdf/stub.blade.php @@ -1 +1,23 @@ -{!! $pdf !!} \ No newline at end of file + + + +{!! $includes !!} + + + {!! $header !!} + + {!! $body !!} + + @if($product) + {!! $product !!} + @endif + + @if($task) + {!! $task !!} + @endif + + {!! $footer !!} + + + + \ No newline at end of file diff --git a/tests/Feature/QuoteTest.php b/tests/Feature/QuoteTest.php index b4aa871385a9..17e4b95c382f 100644 --- a/tests/Feature/QuoteTest.php +++ b/tests/Feature/QuoteTest.php @@ -80,7 +80,6 @@ class QuoteTest extends TestCase $message = json_decode($e->validator->getMessageBag(),1); - \Log::error($message); } if($response) diff --git a/tests/Integration/DesignTest.php b/tests/Integration/DesignTest.php index 6a5ec817fd39..1af117e685c9 100644 --- a/tests/Integration/DesignTest.php +++ b/tests/Integration/DesignTest.php @@ -7,6 +7,7 @@ use App\Designs\Modern; use App\Jobs\Credit\CreateCreditPdf; use App\Jobs\Invoice\CreateInvoicePdf; use App\Jobs\Quote\CreateQuotePdf; +use App\Models\Design; use App\Utils\Traits\GeneratesCounter; use App\Utils\Traits\MakesHash; use Tests\MockAccountData; @@ -32,9 +33,9 @@ class DesignTest extends TestCase public function testInvoiceDesignExists() { - $modern = new Modern(); + $design = Design::find(3); - $designer = new Designer($this->invoice, $modern, $this->company->settings->pdf_variables, 'quote'); + $designer = new Designer($this->invoice, $design, $this->company->settings->pdf_variables, 'quote'); $html = $designer->build()->getHtml(); @@ -61,9 +62,9 @@ class DesignTest extends TestCase public function testQuoteDesignExists() { - $modern = new Modern(); + $design = Design::find(3); - $designer = new Designer($this->quote, $modern, $this->company->settings->pdf_variables, 'quote'); + $designer = new Designer($this->quote, $design, $this->company->settings->pdf_variables, 'quote'); $html = $designer->build()->getHtml(); @@ -169,9 +170,9 @@ class DesignTest extends TestCase public function testCreditDesignExists() { - $modern = new Modern(); + $design = Design::find(3); - $designer = new Designer($this->credit, $modern, $this->company->settings->pdf_variables, 'credit'); + $designer = new Designer($this->credit, $design, $this->company->settings->pdf_variables, 'credit'); $html = $designer->build()->getHtml(); diff --git a/tests/Integration/HtmlGenerationTest.php b/tests/Integration/HtmlGenerationTest.php new file mode 100644 index 000000000000..adae010e4432 --- /dev/null +++ b/tests/Integration/HtmlGenerationTest.php @@ -0,0 +1,41 @@ +makeTestData(); + } + + public function testHtmlOutput() + { + $design = Design::find(3); + + $designer = new Designer($this->invoice, $design, $this->invoice->client->getSetting('pdf_variables'), 'invoice'); + + $html = $this->generateEntityHtml($designer, $this->invoice); + + \Log::error($html); + + $this->assertNotNull($html); + } + + +} \ No newline at end of file