Skip to content

Commit

Permalink
chore: update to schroedinger-hat.org
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJoin95 committed Feb 11, 2025
1 parent e456f60 commit 943082e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Snack Jobs

Do you have already a snack job? Check out here: https://jobs.schrodinger-hat.it/
Do you have already a snack job? Check out here: https://jobs.schroedinger-hat.org/

# Website

Available at [jobs.schrodinger-hat.it](https://jobs.schrodinger-hat.it/)
Available at [jobs.schroedinger-hat.org](https://jobs.schroedinger-hat.org/)

# Backend API

Available at https://snackjob-api.schrodinger-hat.it
Available at https://snackjob-api.schroedinger-hat.org

You can test it out as follow:

`
curl -X POST https://snackjob-api.schrodinger-hat.it/api/v1/snackjob -d 'name=ciao'
curl https://snackjob-api.schroedinger-hat.org/api/v1/snackjob?name=ciao
`

# Credits
Expand Down
4 changes: 2 additions & 2 deletions snackjob-frontend/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export default function Layout({ children }) {
<meta name="description" content="Snackjob is a job title generator for any kind of business, positions and domains. Don't be afraid to be the one that is leading the trend" />
<meta property="og:title" content="Snackjob - The job title generator" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://jobs.schrodinger-hat.it/" />
<meta property="og:site_name" content="jobs.schrodinger-hat.it" />
<meta property="og:url" content="https://jobs.schroedinger-hat.org/" />
<meta property="og:site_name" content="jobs.schroedinger-hat.org" />
<meta property="og:description" content="Snackjob is a job title generator for any kind of business, positions and domains." />
<meta name="twitter:widgets:csp" content="on" />
<meta name="twitter:card" content="summary" />
Expand Down
2 changes: 1 addition & 1 deletion snackjob-frontend/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Home() {
const createSnackjob = (e) => {
e.preventDefault()
if (formValues.name !== '' && formValues.title !== '') {
fetch(`https://snackjob-api.schrodinger-hat.it/api/v1/snackjob?name=${encodeURIComponent(formValues.name)}&title=${encodeURIComponent(formValues.title)}`)
fetch(`https://snackjob-api.schroedinger-hat.org/api/v1/snackjob?name=${encodeURIComponent(formValues.name)}&title=${encodeURIComponent(formValues.title)}`)
.then((r) => r.json().then((j) => {
window.location.href = `/snackjob/${j.md5}`
}))
Expand Down
10 changes: 5 additions & 5 deletions snackjob-frontend/pages/snackjob/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function Snackjob() {
useEffect(() => {
document.querySelector('#bsvg').setAttribute('width', document.querySelector('#bsvg').parentNode.offsetWidth)
document.querySelector('#bsvg').setAttribute('height', document.querySelector('#bsvg').parentNode.offsetHeight)
fetch(`https://snackjob-api.schrodinger-hat.it/api/v1/snackjob?md5=${id}`)
fetch(`https://snackjob-api.schroedinger-hat.org/api/v1/snackjob?md5=${id}`)
.then((r) => r.json().then((j) => {
setJob({
name: j.name,
Expand All @@ -88,7 +88,7 @@ export default function Snackjob() {
<title>{job.name} | {job.title}</title>
<meta name="description" content="Snackjob is a job title generator for any kind of business, positions and domains. Don't be afraid to be the one that is leading the trend" />
<meta property="og:title" content="Snackjob - The job title generator" />
<meta property="og:url" content="https://jobs.schrodinger-hat.it/" />
<meta property="og:url" content="https://jobs.schroedinger-hat.org/" />
<meta property="og:description" content="Snackjob is a job title generator for any kind of business, positions and domains." />
<meta name="twitter:title" content="Snackjob - The job title generator" />
<meta name="twitter:description" content="Snackjob is a job title generator for any kind of business, positions and domains." />
Expand Down Expand Up @@ -145,7 +145,7 @@ export default function Snackjob() {
alignItems="center"
as="a"
w={1/3}
href={`https://www.linkedin.com/sharing/share-offsite/?url=https://jobs.schrodinger-hat.it/`}
href={`https://www.linkedin.com/sharing/share-offsite/?url=https://jobs.schroedinger-hat.org/`}
target="_blank"
rel="noopener noreferrer"
bg="gray.50"
Expand Down Expand Up @@ -181,7 +181,7 @@ export default function Snackjob() {
alignItems="center"
as="a"
w={1/3}
href={`http://twitter.com/share?text=I'm glad to share my new position: ${job.title}! Discover yours on snackjob by @schrodinger_hat and @thejoin95!&url=https://jobs.schrodinger-hat.it/`}
href={`http://twitter.com/share?text=I'm glad to share my new position: ${job.title}! Discover yours on snackjob by @schrodinger_hat and @thejoin95!&url=https://jobs.schroedinger-hat.org/`}
target="_blank"
rel="noopener noreferrer"
bg="gray.50"
Expand Down Expand Up @@ -217,7 +217,7 @@ export default function Snackjob() {
}}
alignItems="center"
as="a"
href={`https://www.facebook.com/sharer/sharer.php?u=https://jobs.schrodinger-hat.it/`}
href={`https://www.facebook.com/sharer/sharer.php?u=https://jobs.schroedinger-hat.org/`}
target="_blank"
rel="noopener noreferrer"
bg="gray.50"
Expand Down

0 comments on commit 943082e

Please sign in to comment.