Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[providers] Add Discord #40

Merged
merged 4 commits into from
Mar 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added Discord Icon
  • Loading branch information
ATechAdventurer committed Mar 25, 2023
commit 4091497ad812e6acf9f08f6465952471c282126f
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {

provider: {
bitbucket: '#0052CC',
discord: '#5865F2',
facebook: '#1877F2',
github: '#181717',
gitlab: '#FC6D26',
Expand Down
35 changes: 35 additions & 0 deletions theme/keywind/login/assets/providers/discord.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<#-- https://discord.com/branding -->
<#macro kw name="Discord">
<svg
version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="0 0 150 150"
style="enable-background: new 0 0 150 150"
xml:space="preserve"
>
<style type="text/css">
.st0 {
fill: #5865f2;
}
</style>
<g id="图层_2">
<g id="Discord_Logos">
<g id="Discord_Logo_-_Large_-_White">
<path
class="st0"
d="M119.1,34.9c-8.4-3.8-17.2-6.5-26.2-8.1c-1.2,2.2-2.4,4.5-3.4,6.8c-9.6-1.5-19.5-1.5-29.1,0
c-1-2.3-2.1-4.6-3.4-6.8c-9.1,1.5-17.9,4.3-26.2,8.1C14.2,59.5,9.7,83.4,12,107l0,0c9.7,7.2,20.6,12.6,32.2,16.2
c2.6-3.5,4.9-7.2,6.9-11.1c-3.8-1.4-7.4-3.1-10.9-5.2c0.9-0.7,1.8-1.3,2.7-2c20.4,9.6,44,9.6,64.3,0c0.9,0.7,1.8,1.4,2.7,2
c-3.5,2-7.1,3.8-10.9,5.2c2,3.9,4.3,7.6,6.9,11.1c11.6-3.5,22.5-9,32.2-16.1l0,0C140.7,79.7,133.5,55.9,119.1,34.9z M53.9,92.5
c-6.3,0-11.5-5.7-11.5-12.7s5-12.7,11.4-12.7s11.6,5.7,11.5,12.7S60.3,92.5,53.9,92.5z M96.1,92.5c-6.3,0-11.4-5.7-11.4-12.7
s5-12.7,11.4-12.7s11.5,5.7,11.4,12.7S102.5,92.5,96.1,92.5z"
/>
</g>
</g>
</g>
</svg>
ATechAdventurer marked this conversation as resolved.
Show resolved Hide resolved
</#macro>
5 changes: 5 additions & 0 deletions theme/keywind/login/assets/providers/providers.ftl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<#import "./bitbucket.ftl" as bitbucketIcon>
<#import "./discord.ftl" as discordIcon>
<#import "./facebook.ftl" as facebookIcon>
<#import "./github.ftl" as githubIcon>
<#import "./gitlab.ftl" as gitlabIcon>
Expand All @@ -17,6 +18,10 @@
<@bitbucketIcon.kw />
</#macro>

<#macro discord>
<@discordIcon.kw />
</#macro>

<#macro facebook>
<@facebookIcon.kw />
</#macro>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<#case "bitbucket">
<#assign colorClass="hover:bg-provider-bitbucket/10">
<#break>
<#case "discord">
<#assign colorClass="hover:bg-provider-discord/10">
<#break>
<#case "facebook">
<#assign colorClass="hover:bg-provider-facebook/10">
<#break>
Expand Down
2 changes: 1 addition & 1 deletion theme/keywind/login/resources/dist/index.css

Large diffs are not rendered by default.