Skip to content

Commit

Permalink
Remove Spotify (#6)
Browse files Browse the repository at this point in the history
* feat: remove spotify

* docs: to swift
  • Loading branch information
CaptainHPY authored Aug 20, 2024
1 parent 1e0da8d commit b373109
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 86 deletions.
6 changes: 0 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ IP_ADDRESS_SALT=
# Dev.to Credentials for getting views
DEVTO_KEY=

# Spotify Credentials
# used for /api/spotify widget
SPOTIFY_CLIENT_ID=
SPOTIFY_CLIENT_SECRET=
SPOTIFY_REFRESH_TOKEN=

# Dev tools page hidden route
ADMIN_PASSWORD=admin

Expand Down
6 changes: 1 addition & 5 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,16 @@ import { trackEvent } from '@/lib/analytics';
import useCopyToClipboard from '@/hooks/useCopyToClipboard';

import Accent from '@/components/Accent';
import Spotify from '@/components/layout/Spotify';
import UnstyledLink from '@/components/links/UnstyledLink';
import Tooltip from '@/components/Tooltip';

import { feedbackFlag, spotifyFlag } from '@/constants/env';
import { feedbackFlag } from '@/constants/env';

export default function Footer() {
return (
<footer className='mt-4 pb-2'>
<main className='layout flex flex-col items-center border-t pt-6 dark:border-gray-600'>
<FooterLinks />

{spotifyFlag && <Spotify className='mt-8' />}

<p className='mt-12 font-medium text-gray-600 dark:text-gray-300'>
Reach me out
</p>
Expand Down
67 changes: 0 additions & 67 deletions src/components/layout/Spotify.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions src/constants/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ export const contentMetaFlag =
export const incrementMetaFlag =
isProd && getFromLocalStorage('incrementMetaFlag') !== 'false';

/**
* Show Spotify Now Playing on footer
* @see Footer.tsx
*/
export const spotifyFlag =
isProd || process.env.NEXT_PUBLIC_FLAG_SPOTIFY === 'true';

/**
* Open API access to newsletter provider (subscribe and view count)
* @see SubscribeCard.tsx
Expand Down
2 changes: 1 addition & 1 deletion src/pages/blog/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default function SingleBlogPage({
<p className='mt-2 text-sm text-gray-600 dark:text-gray-300'>
Written on{' '}
{format(new Date(frontmatter.publishedAt), 'MMMM dd, yyyy')} by
Theodorus Clarence.
BJUT Swift.
</p>
{frontmatter.lastUpdated && (
<div className='mt-2 flex flex-wrap gap-2 text-sm text-gray-700 dark:text-gray-200'>
Expand Down

0 comments on commit b373109

Please sign in to comment.