Skip to content

Commit

Permalink
Merge branch 'stack-ad-2020'
Browse files Browse the repository at this point in the history
  • Loading branch information
christianspecht committed Apr 6, 2020
2 parents 30f81c8 + 3ee3a27 commit 563b341
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions stack-ad/ad.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

# define fonts
font_logo = ImageFont.truetype('calibrib.ttf', 64)
font = ImageFont.truetype('calibri.ttf', 36)
font_cont = ImageFont.truetype('calibrib.ttf', 40)
font = ImageFont.truetype('calibri.ttf', 30)


# empty image
Expand All @@ -12,26 +13,30 @@


# logo
logo = Image.open('../img/logo200x200.png').convert("RGBA")
logo = Image.open('../img/logo128x128.png').convert("RGBA")
img.paste(logo, (35,35), logo)


# logo text
dr.text((250,100), 'SCM Backup', font=font_logo, fill='black')
dr.text((220,75), 'SCM Backup', font=font_logo, fill='black')


# blue box
dr.rectangle(((0, 250), (600, 350)), fill='#239FE6')
dr.text((50,260), 'Make offline backups of your cloud', font=font, fill='white')
dr.text((50,310), 'hosted source code repositories', font=font, fill='white')
dr.rectangle(((0, 190), (600, 270)), fill='#239FE6')
dr.text((75,200), 'Makes offline backups of your cloud', font=font, fill='white')
dr.text((75,230), 'hosted source code repositories', font=font, fill='white')


# "Contribute" text
dr.text((100,435), 'Contribute on GitHub', font=font, fill='black')
dr.text((75,300), 'Help us implement support for backing', font=font, fill='black')
dr.text((75,330), 'up from more hosting sites!', font=font, fill='black')
dr.text((75,360), '(in C#)', font=font, fill='black')
dr.text((50,430), 'Contribute on GitHub', font=font_cont, fill='black')


# GitHub logo (download from https://github.com/logos, put into this directory)
ghlogo = Image.open('GitHub-Mark-64px.png')
img.paste(ghlogo, (430,420), ghlogo)
img.paste(ghlogo, (450,420), ghlogo)



Expand Down

0 comments on commit 563b341

Please sign in to comment.