Skip to content

Commit

Permalink
Merge pull request #702 from gagan-suie/dev
Browse files Browse the repository at this point in the history
Fix: added new twitter icon
  • Loading branch information
gagansuie authored Sep 13, 2023
2 parents bfc006b + 59eeb03 commit 4be6dab
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
29 changes: 29 additions & 0 deletions src/lib/assets/icons/social/IconSocialTwitter2.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<script>
import { current_theme } from '$lib/stores/helperStore'
import { onMount } from 'svelte'
export let customClass = 'w-5'
let color = '#fff'
onMount(() => {
current_theme.subscribe((theme) => {
switch (theme) {
case 'dark':
case 'synthwave':
color = '#fff'
break
case 'light':
case 'cyberpunk':
color = '#000'
break
}
})
})
</script>

<div class={customClass}>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 25 25" style="fill: {color};">
<path
d="M 14.878906 10.582031 L 24.183594 0 L 21.980469 0 L 13.898438 9.1875 L 7.445312 0 L 0 0 L 9.761719 13.890625 L 0 24.988281 L 2.207031 24.988281 L 10.738281 15.285156 L 17.554688 24.988281 L 25 24.988281 Z M 11.859375 14.015625 L 10.867188 12.632812 L 3 1.625 L 6.386719 1.625 L 12.738281 10.507812 L 13.726562 11.890625 L 21.980469 23.4375 L 18.59375 23.4375 Z M 11.859375 14.015625 " />
</svg>
</div>
5 changes: 2 additions & 3 deletions src/lib/components/Global/DrawerMain.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import IconDrawerHelpAndLegal from '$lib/assets/icons/drawer/IconDrawerHelpAndLegal.svelte'
import IconDrawerSettings from '$lib/assets/icons/drawer/IconDrawerSettings.svelte'
import IconDrawerLogOut from '$lib/assets/icons/drawer/IconDrawerLogOut.svelte'
import IconSocialTwitter from '$lib/assets/icons/social/IconSocialTwitter.svelte'
import IconSocialTwitter2 from '$lib/assets/icons/social/IconSocialTwitter2.svelte'
import IconSocialDiscord from '$lib/assets/icons/social/IconSocialDiscord.svg'
import IconSocialGitHub from '$lib/assets/icons/social/IconSocialGitHub.svelte'
import IconDrawerAdmin from '$lib/assets/icons/drawer/IconDrawerAdmin.svelte'
Expand All @@ -29,7 +29,6 @@
import IconMageLogo from '$lib/assets/icons/IconMageLogo.svelte'
import IconDrawerVerification from '$lib/assets/icons/drawer/IconDrawerVerification.svelte'
import IconDrawerGetApps from '$lib/assets/icons/drawer/IconDrawerGetApps.svelte'
import IconViews from '$lib/assets/icons/IconViews.svelte'
import IconFollowers from '$lib/assets/icons/IconFollowers.svelte'
export var nav_drawer: HTMLInputElement
Expand Down Expand Up @@ -282,7 +281,7 @@
<img src={IconSocialDiscord} alt="" />
</a>
<a href="https://twitter.com/CodeCrowCorp" target="_blank" rel="noreferrer">
<IconSocialTwitter />
<IconSocialTwitter2 />
</a>
</div>
<p>
Expand Down
7 changes: 2 additions & 5 deletions src/routes/affiliate/+page.server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import type { Actions, PageServerLoad } from './$types'
import { get, post } from '$lib/api'
import { redirect } from '@sveltejs/kit'
import { getSectionUrl } from '$lib/utils'
import type { PageServerLoad } from './$types'

export const load = (async ({ locals }) => {
export const load = (async () => {
return {}
}) satisfies PageServerLoad

0 comments on commit 4be6dab

Please sign in to comment.