Skip to content

Commit

Permalink
feat: Add Viber, Spacehey, Neocities, Dreamwidth, Pillowfort (#716)
Browse files Browse the repository at this point in the history
* Add buttons
    - Add dreamwidth
    - Add neocities
    - Add spacehey
    - Add viber

* Add Pillowfort

* fix docker image
  • Loading branch information
Ki-er authored Jan 29, 2025
1 parent 3761689 commit dad46d8
Show file tree
Hide file tree
Showing 9 changed files with 257 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ services:
- TIDAL=https://tidal.com/
- THESTORYGRAPH=https://www.thestorygraph.com/
- GEOCACHING=https://www.geocaching.com/play
- NEOCITIES=https://neocities.org/
- VIBER=https://www.viber.com/en/
- SPACEHEY=https://spacehey.com/
- DREAMWIDTH=https://www.dreamwidth.org/login
- PILLOWFORT=https://www.pillowfort.social/log_in
ports:
- 8080:3000
restart: unless-stopped
Expand Down
30 changes: 30 additions & 0 deletions public/css/brands.css
Original file line number Diff line number Diff line change
Expand Up @@ -735,5 +735,35 @@ button {
background-color: #ffff;
}

/* Neocities */
.button.button-neocities {
color: #ffff;
background-color: #65a0ad;
}

/* Dreamwidth */
.button.button-dreamwidth {
color: #C1272D;
background-color: #ffff;
}

/* Spacehey */
.button.button-spacehey {
color: #204cdc;
background-color: #ffff;
}

/* Viber */
.button.button-viber {
color: #583cbc;
background-color: #ffff;
}

/* Pillowfort */
.button.button-pillowfort {
color: #000000;
background-color: #ffff;
}



50 changes: 50 additions & 0 deletions src/components/Home/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ import googlemapsLogo from '../../icons/googlemaps.svg';
import tidalLogo from '../../icons/tidal.svg';
import thestorygraphLogo from '../../icons/storygraph.svg';
import geocachingLogo from '../../icons/geocaching.svg';
import neocitiesLogo from '../../icons/neocities.svg';
import dreamwidthLogo from '../../icons/dreamwidth.svg';
import spaceheyLogo from '../../icons/spacehey.svg';
import viberLogo from '../../icons/viber.svg';
import pillowfortLogo from '../../icons/pillowfort.svg';

function Home(props) {
let order = [];
Expand Down Expand Up @@ -1148,6 +1153,51 @@ function Home(props) {
order={buttonOrder('GEOCACHING')}
/>
)}
{runtimeConfig.NEOCITIES && (
<Button
name="neocities"
href={runtimeConfig.NEOCITIES}
displayName="neocities"
logo={neocitiesLogo}
order={buttonOrder('NEOCITIES')}
/>
)}
{runtimeConfig.DREAMWIDTH && (
<Button
name="dreamwidth"
href={runtimeConfig.DREAMWIDTH}
displayName="dreamWIDTH"
logo={dreamwidthLogo}
order={buttonOrder('DREAMWIDTH')}
/>
)}
{runtimeConfig.SPACEHEY && (
<Button
name="spacehey"
href={runtimeConfig.SPACEHEY}
displayName="spacehey"
logo={spaceheyLogo}
order={buttonOrder('SPACEHEY')}
/>
)}
{runtimeConfig.VIBER && (
<Button
name="viber"
href={runtimeConfig.VIBER}
displayName="Viber"
logo={viberLogo}
order={buttonOrder('VIBER')}
/>
)}
{runtimeConfig.PILLOWFORT && (
<Button
name="pillowfort"
href={runtimeConfig.PILLOWFORT}
displayName="Pillowfort"
logo={pillowfortLogo}
order={buttonOrder('PILLOWFORT')}
/>
)}
</Sort>
<div>
<p className="footer">
Expand Down
18 changes: 18 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,11 @@ export const runtimeConfig =
TIDAL: window?.env?.TIDAL,
THESTORYGRAPH: window?.env?.THESTORYGRAPH,
GEOCACHING: window?.env?.GEOCACHING,
NEOCITIES: window?.env?.NEOCITIES,
DREAMWIDTH: window?.env?.DREAMWIDTH,
SPACEHEY: window?.env?.SPACEHEY,
VIBER: window?.env?.VIBER,
PILLOWFORT: window?.env?.PILLOWFORT,
}
: {
// server
Expand Down Expand Up @@ -589,4 +594,17 @@ export const runtimeConfig =
GEOCACHING: nodeIsProduction
? process.env.GEOCACHING
: process.env.RAZZLE_GEOCACHING,
NEOCITIES: nodeIsProduction
? process.env.NEOCITIES
: process.env.RAZZLE_NEOCITIES,
DREAMWIDTH: nodeIsProduction
? process.env.DREAMWIDTH
: process.env.RAZZLE_DREAMWIDTH,
SPACEHEY: nodeIsProduction
? process.env.SPACEHEY
: process.env.RAZZLE_SPACEHEY,
VIBER: nodeIsProduction ? process.env.VIBER : process.env.RAZZLE_VIBER,
PILLOWFORT: nodeIsProduction
? process.env.PILLOWFORT
: process.env.RAZZLE_PILLOWFORT,
};
12 changes: 12 additions & 0 deletions src/icons/dreamwidth.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icons/neocities.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/icons/pillowfort.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions src/icons/spacehey.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit dad46d8

Please sign in to comment.