-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from simonhamp/more-customizable-themes
- Loading branch information
Showing
17 changed files
with
148 additions
and
94 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 was deleted.
Oops, something went wrong.
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,8 @@ | ||
<?php | ||
|
||
namespace SimonHamp\TheOg\Interfaces; | ||
|
||
interface Background | ||
{ | ||
public function path(): string; | ||
} |
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,8 @@ | ||
<?php | ||
|
||
namespace SimonHamp\TheOg\Interfaces; | ||
|
||
interface Font | ||
{ | ||
public function path(): string; | ||
} |
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 was deleted.
Oops, something went wrong.
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,15 @@ | ||
<?php | ||
|
||
namespace SimonHamp\TheOg\Theme; | ||
|
||
use SimonHamp\TheOg\Interfaces\Font; | ||
|
||
abstract class AbstractFont implements Font | ||
{ | ||
abstract public function path(): string; | ||
|
||
protected function __construct(protected ?string $variant = null) | ||
{ | ||
|
||
} | ||
} |
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,18 @@ | ||
<?php | ||
|
||
namespace SimonHamp\TheOg\Theme; | ||
|
||
use SimonHamp\TheOg\Interfaces\Background as BackgroundInterface; | ||
|
||
class Background implements BackgroundInterface | ||
{ | ||
public function __construct(protected string $path) | ||
{ | ||
|
||
} | ||
|
||
public function path(): string | ||
{ | ||
return $this->path; | ||
} | ||
} |
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,33 @@ | ||
<?php | ||
|
||
namespace SimonHamp\TheOg\Theme\Fonts; | ||
|
||
use SimonHamp\TheOg\Theme\AbstractFont; | ||
|
||
class Inter extends AbstractFont | ||
{ | ||
public static function regular(): self | ||
{ | ||
return new self('Regular'); | ||
} | ||
|
||
public static function black(): self | ||
{ | ||
return new self('Black'); | ||
} | ||
|
||
public static function bold(): self | ||
{ | ||
return new self('Bold'); | ||
} | ||
|
||
public static function light(): self | ||
{ | ||
return new self('Light'); | ||
} | ||
|
||
public function path(): string | ||
{ | ||
return __DIR__ . "/../../../resources/fonts/Inter/static/Inter-{$this->variant}.ttf"; | ||
} | ||
} |
Oops, something went wrong.