-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
There's a lot here. I'll break this down in the release notes, but it's good...
- Loading branch information
Showing
27 changed files
with
1,267 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace SimonHamp\TheOg\Interfaces; | ||
|
||
use Intervention\Image\Image; | ||
use SimonHamp\TheOg\Border; | ||
use SimonHamp\TheOg\Image as Config; | ||
use SimonHamp\TheOg\Layout\TextBox; | ||
|
||
interface Layout | ||
{ | ||
public function border(Border $border): self; | ||
|
||
public function render(Config $config): Image; | ||
|
||
public function getCallToAction(): TextBox; | ||
|
||
public function getDescription(): TextBox; | ||
|
||
public function getTitle(): TextBox; | ||
|
||
public function getUrl(): TextBox; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?php | ||
|
||
namespace SimonHamp\TheOg\Interfaces; | ||
|
||
use Intervention\Image\Colors\Rgb\Color; | ||
use SimonHamp\TheOg\Background; | ||
use SimonHamp\TheOg\Font; | ||
|
||
interface Theme | ||
{ | ||
public function accentColor(string $color): self; | ||
|
||
public function getAccentColor(): Color; | ||
|
||
public function background(Background $background): self; | ||
|
||
public function getBackground(): ?Background; | ||
|
||
public function backgroundColor(string $color): self; | ||
|
||
public function getBackgroundColor(): Color; | ||
|
||
public function backgroundOpacity(float $opacity): self; | ||
|
||
public function getBackgroundOpacity(): float; | ||
|
||
public function baseColor(string $color): self; | ||
|
||
public function getBaseColor(): Color; | ||
|
||
public function baseFont(Font $font): self; | ||
|
||
public function getBaseFont(): Font; | ||
|
||
public function borderColor(string $color): self; | ||
|
||
public function getBorderColor(): Color; | ||
|
||
public function callToActionBackgroundColor(string $color): self; | ||
|
||
public function getCallToActionBackgroundColor(): Color; | ||
|
||
public function callToActionColor(string $color): self; | ||
|
||
public function getCallToActionColor(): Color; | ||
|
||
public function callToActionFont(Font $font): self; | ||
|
||
public function getCallToActionFont(): Font; | ||
|
||
public function descriptionColor(string $color): self; | ||
|
||
public function getDescriptionColor(): Color; | ||
|
||
public function descriptionFont(Font $font): self; | ||
|
||
public function getDescriptionFont(): Font; | ||
|
||
public function titleColor(string $color): self; | ||
|
||
public function getTitleColor(): Color; | ||
|
||
public function titleFont(Font $font): self; | ||
|
||
public function getTitleFont(): Font; | ||
|
||
public function urlColor(string $color): self; | ||
|
||
public function getUrlColor(): Color; | ||
|
||
public function urlFont(Font $font): self; | ||
|
||
public function getUrlFont(): Font; | ||
} |
Oops, something went wrong.