Skip to content

Commit

Permalink
feat(contracts): add group for colon svg
Browse files Browse the repository at this point in the history
  • Loading branch information
owieth committed Aug 18, 2023
1 parent 55148c2 commit 7af7fb3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/libraries/NFTIMEArt.sol
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ library NFTIMEArt {
string private constant PATH_OUTLINE =
'<path fill="none" stroke="#fff" d="M960 220c0 11-9 20-20 20H540c-11 0-20-9-20-20V60c0-11 9-20 20-20h400c11 0 20 9 20 20v160zm0 240c0 11-9 20-20 20H540c-11 0-20-9-20-20V300c0-11 9-20 20-20h400c11 0 20 9 20 20v160zM720 700c0 11-9 20-20 20H540c-11 0-20-9-20-20V540c0-11 9-20 20-20h160c11 0 20 9 20 20v160zm240 0c0 11-9 20-20 20H780c-11 0-20-9-20-20V540c0-11 9-20 20-20h160c11 0 20 9 20 20v160zm0 240c0 11-9 20-20 20H540c-11 0-20-9-20-20V780c0-11 9-20 20-20h400c11 0 20 9 20 20v160zM480 460c0 11-9 20-20 20H60c-11 0-20-9-20-20V60c0-11 9-20 20-20h400c11 0 20 9 20 20v400zm0 480c0 11-9 20-20 20H60c-11 0-20-9-20-20V540c0-11 9-20 20-20h400c11 0 20 9 20 20v400z" />';

string private constant GROUP_COLON =
'<g fill="#fff"><circle class="st0" cx="739.6" cy="595.5" r="8.8" /><circle class="st0" cx="739.6" cy="644.5" r="8.8" /></g>';

string private constant PATH_CLOCK_MINUTES =
'<path stroke="white" d="M310.221 542.499l-2.202-21.116M255.679 23.401l2.202 21.116M310.221 23.401l-2.202 21.116M255.679 542.499l2.202-21.116M228.658 27.604l4.504 20.816M337.242 538.296l-4.404-20.816M202.338 34.71l6.505 20.215M363.662 531.19l-6.605-20.215M389.181 521.483l-8.706-19.515M176.819 44.517l8.606 19.415M436.418 494.162l-12.51-17.213M129.582 71.838l12.51 17.213M108.366 89.051l14.211 15.813M457.634 476.949l-14.311-15.812M89.051 108.366l15.813 14.211M476.949 457.634l-15.813-14.311M71.838 129.582l17.213 12.51M494.162 436.418l-17.213-12.51M521.483 389.181l-19.515-8.706M44.517 176.819l19.415 8.606M34.71 202.338l20.215 6.505M531.19 363.662l-20.215-6.605M538.296 337.242l-20.816-4.404M27.604 228.658l20.816 4.504M542.499 310.221l-21.116-2.202M23.401 255.679l21.116 2.202M23.401 310.221l21.116-2.202M542.499 255.679l-21.116 2.202M27.604 337.242l20.816-4.404M538.296 228.658l-20.816 4.504M34.71 363.662l20.215-6.605M531.19 202.338l-20.215 6.505M63.932 380.475l-19.415 8.706M521.483 176.819l-19.515 8.606M494.162 129.582l-17.213 12.51M71.838 436.418l17.213-12.51M476.949 108.366l-15.813 14.211M89.051 457.634l15.813-14.311M457.634 89.051l-14.311 15.813M108.366 476.949l14.211-15.812M129.582 494.162l12.51-17.213M436.418 71.838l-12.51 17.213M176.819 521.483l8.606-19.515M389.181 44.517l-8.706 19.415M363.662 34.71l-6.605 20.215M202.338 531.19l6.505-20.215M228.658 538.296l4.504-20.816M337.242 27.604l-4.404 20.816" />';

Expand Down Expand Up @@ -86,7 +89,8 @@ library NFTIMEArt {
_generateClock(_date),
PATH_SMALL_DATE_OUTLINE,
PATH_LINE_THROUGH,
PATH_OUTLINE
PATH_OUTLINE,
GROUP_COLON
);
}

Expand All @@ -105,7 +109,6 @@ library NFTIMEArt {
/// @return Returns concated attributes.
function _fillDateAttributes(Date memory _date, bool _isMinute) internal pure returns (string memory) {
return string.concat(
_isMinute ? _fillDateAttribute("720", "520", "200", "40", "126", ":") : "",
_isMinute ? _fillDateAttribute("520", "520", "200", "200", "142", _date.hour) : "",
_isMinute ? _fillDateAttribute("760", "520", "200", "200", "142", _date.minute) : "",
_isMinute ? _fillDateAttribute("520", "760", "200", "440", "138", _date.dayOfWeek) : "",
Expand Down

0 comments on commit 7af7fb3

Please sign in to comment.