Skip to content

Commit

Permalink
Updated homepage defiition functionality to daily definiton from random
Browse files Browse the repository at this point in the history
  • Loading branch information
madebygps committed Dec 15, 2023
1 parent 4c1e50b commit 36e2d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/HomepageApi/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import styles from './styles.module.css';
export default function HomepageApi() {
const [words, setWords] = useState();
const getData = () => {
fetch('https://clouddictionary.azurewebsites.net/api/GetRandomDefinition?code=JNocQdHuBHefY6S5szTVICOUrfXyavHQ9yi3Wm2zxL01AzFurEop6w=='
fetch('https://clouddictionary.azurewebsites.net/api/GetDefinitionOfTheDay?code=be7QaipGAxWEMBYN-rSXHcTNrOrIcwDbL3sgWvh5EG9pAzFuTW0wNg=='
, {
headers: {
'Content-Type': 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Home(): JSX.Element {
<Layout
description="An open-source guide to the fundamentals of Cloud Computing">
<HomepageHeader />
<p className={styles.gradientText}>Here's a random cloud definition:</p>
<p className={styles.gradientText}>Definition of the day:</p>
<HomepageApi />
<div className={styles.buttons}>
<Link
Expand Down

0 comments on commit 36e2d4b

Please sign in to comment.