Skip to content

Commit

Permalink
Add sunset text and readme update
Browse files Browse the repository at this point in the history
- add sunset dev and prod script
  • Loading branch information
chrisdel101 committed Aug 27, 2023
1 parent dec3c06 commit 71267a3
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const index = require('./routes/index')
const helmet = require("helmet");
const app = express()
const maintenance = process.env.MAINTENANCE
const sunset = process.env.SUNSET


app.use(helmet({
Expand All @@ -34,7 +35,8 @@ app.set('trust proxy', 'loopback')
app.locals = {
title: 'placepuppy',
ENV,
maintenance
maintenance,
sunset
}

app.use(morgan('dev'))
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"private": true,
"scripts": {
"start:m": "DEBUG=app:* NODE_ENV=development MAINTENANCE=true nodemon ./bin/www",
"start:s": "DEBUG=app:* NODE_ENV=development SUNSET=true nodemon ./bin/www",
"start": "DEBUG=app:* NODE_ENV=development nodemon ./bin/www",
"start:no-cache": "DEBUG=app:* NODE_ENV=development CACHE=OFF nodemon ./bin/www",
"start:nolog": "NODE_ENV=development nodemon ./bin/www",
"prod": "NODE_ENV=production DEBUG=app:* node ./bin/www",
"prod:m": "NODE_ENV=production MAINTENANCE=true DEBUG=app:* node ./bin/www",
"prod:s": "NODE_ENV=production SUNSET=true DEBUG=app:* node ./bin/www",
"test": "mocha",
"test:watch": "DEBUG=app:* mocha -w",
"test:watch:nolog": "mocha -w"
Expand Down
12 changes: 12 additions & 0 deletions public/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ footer .inpspiration ul li {
align-items: center;
justify-content: center;
}
#sunset {
border: #ADD8E6 5px solid;
width: 100%;
border-radius: 5px;
text-align: center;
padding: 0 10px;
margin-bottom: 10px;
}
#sunset p{
font-size: 1.2em;

}
.puppy-container {
display: grid;
/* min-max on each col is repsponsive */
Expand Down
17 changes: 16 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
# Placepuppy
## NOTICE: End of Life for Place-Puppy.com
### Place Puppy will shut down on September 27, 2023


Place Puppy will cease service on September 27, 2023 at 12:00am EST.


Place-Puppy came online in 2018 and has always been entirely self-funded. Sadly in today's market, this is just no longer feasible.

If you use place-puppy.com consistently in your work, please switch over to another service before the shutdown date, i.e. the OG [Place Kitten](https://placekitten.com/).

Thank you to everyone that used one of our puppies over the years. Hopefully we made your prototypes just a little bit cuter.


# Place Puppy

[place-puppy.com](https://place-puppy.com)


## **An Image Placeholder App**

### How it works
Expand Down
10 changes: 9 additions & 1 deletion views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ block content
.index-page
if maintenance
h3#maintenance Site undergoing maintenance. Outages may occur. Sorry for any disruption.
if sunset
div#sunset
h1 NOTICE: End of Life for Place-Puppy.com
h3 Place Puppy will shut down on September 27 2023
p Place-Puppy.com has always been entirely self-funded. Sadly, this is just no longer feasible.
p Thank you to everyone that used our puppies. Hopefully we made your prototypes just a little bit cuter.
div.index-container
div.puppy-container
div.puppy-box
Expand Down Expand Up @@ -39,6 +45,7 @@ block content
|
hr
footer.footer

div.inpspiration
| Delivered by
a(href='https://github.com/chrisdel101') Chris Del —
Expand All @@ -49,7 +56,8 @@ block content
| Inspired by
a(href='http://placekitten.com') placekitten
|
a(href="https://www.buymeacoffee.com/chrisdel101" target="_blank")
a(href="https://www.buymeacoffee.com/chrisdel101" target="_blank")
| | Est. 2018
div.donations
a(href="https://www.buymeacoffee.com/chrisdel101" target="_blank")
img(src="https://cdn.buymeacoffee.com/buttons/v2/default-blue.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;")

0 comments on commit 71267a3

Please sign in to comment.