Skip to content

Commit 4210eb2

Browse files
author
James Brundage
committed
fix: Putting logo source beneath site
1 parent 7db2141 commit 4210eb2

File tree

3 files changed

+79
-3
lines changed

3 files changed

+79
-3
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
*.html
21
archive.zip
3-
lastBuild.json
4-
*.svg
2+
lastBuild.json

CodersUnite/Assets/CodersUnite.svg

Lines changed: 15 additions & 0 deletions
Loading

CodersUnite/CodersUnite.PSSVG.ps1

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#requires -Module PSSVG
2+
$AssetsPath = Join-Path -Path $PSScriptRoot -ChildPath "Assets"
3+
4+
if (-not (Test-Path $AssetsPath)) {
5+
New-Item -ItemType Directory -Path $AssetsPath | Out-Null
6+
}
7+
8+
function ⇴ {
9+
param($radius, $angle)
10+
$radius * [math]::round([math]::cos($angle * [Math]::PI/180),15)
11+
$radius * [math]::round([math]::sin($angle * [Math]::PI/180),15)
12+
}
13+
14+
$fontName = 'Anta'
15+
$fontName = 'Heebo'
16+
$fontName = 'Noto Sans'
17+
18+
svg -content $(
19+
$commonParameters = [Ordered]@{
20+
Fill = '#4488FF'
21+
Class = 'foreground-fill'
22+
}
23+
24+
SVG.GoogleFont -FontName $fontName
25+
26+
svg.symbol -Id psChevron -Content @(
27+
svg.polygon -Points (@(
28+
"40,20"
29+
"45,20"
30+
"60,50"
31+
"35,80"
32+
"32.5,80"
33+
"55,50"
34+
) -join ' ')
35+
) -ViewBox 100, 100
36+
37+
$radius = 420
38+
39+
$circleTop = (1080/2), ((1080/2)-$radius)
40+
$circleMid = (1080/2), (1080/2)
41+
$circleRight = ((1080/2) + $radius),((1080/2))
42+
$circleBottom = (1080/2), ((1080/2)+$radius)
43+
$circleLeft = ((1080/2) - $radius),((1080/2))
44+
45+
svg.use -Href '#psChevron' -X 0% -Y 25% @commonParameters -Height 50% -Opacity .9
46+
47+
$arcStart =$radius 45 100
48+
$arcEnd =$radius 135 100
49+
50+
SVG.ArcPath -Start $circleLeft -End $circleBottom -Radius $radius -Stroke 'transparent' -Id 'arc2' -Fill 'transparent' |
51+
SVG.ArcPath -End $circleRight -Radius $radius -Stroke 'transparent' -Id 'arc2' -Fill 'transparent' |
52+
SVG.ArcPath -End $circleTop -Radius $radius -Stroke 'transparent' -Id 'arc2' -Fill 'transparent' |
53+
SVG.ArcPath -End $circleLeft -Radius $radius -Stroke 'transparent' -Id 'arc2' -Fill 'transparent'
54+
55+
SVG.Circle -Cx (1080/2) -Cy (1080/2) -R ($radius*1.2) -Fill transparent -Stroke '#4488FF' -StrokeWidth 2 -Class 'foreground-stroke'
56+
SVG.Circle -Cx (1080/2) -Cy (1080/2) -R ($radius*0.8) -Fill transparent -Stroke '#4488FF' -StrokeWidth 2 -Class 'foreground-stroke'
57+
58+
svg.text -X 25% -FontSize 4.2em -FontFamily sans-serif @commonParameters -DominantBaseline 'middle' -TextAnchor 'right' -Style "font-family:'$fontName'" @(
59+
SVG.textPath -Href '#arc2' -Content "CODERS UNITE !"
60+
) -LetterSpacing .3em
61+
) -ViewBox 0, 0, 1080, 1080 -OutputPath $(
62+
Join-Path $assetsPath CodersUnite.svg
63+
)

0 commit comments

Comments
 (0)