Skip to content

Commit

Permalink
added gw start changes back
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulprathin8 committed Feb 13, 2024
1 parent 74676db commit 3bfeb71
Show file tree
Hide file tree
Showing 6 changed files with 280 additions and 209 deletions.
22 changes: 20 additions & 2 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/images/landing-page/cat_illu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,21 @@ installIcon.addEventListener('click', () => {
installIcon.querySelector('img').src = originalLogoSrc;
}, 3000);
});

const copyGetStarted = document.getElementById('copy-get-started-text');

copyGetStarted.addEventListener('click', () => {
"use strict";
const originalLogoSrc = installIcon.querySelector('img').src;
const tickIcon = installIcon.getAttribute('data-image-url');

copyGetStarted.querySelector('img').src = tickIcon;
navigator.clipboard.writeText('gw start').then(() => {
console.log('Text copied to clipboard');
}).catch(err => {
console.error('Failed to copy text: ', err);
});
setTimeout(() => {
copyGetStarted.querySelector('img').src = originalLogoSrc;
}, 3000);
});
5 changes: 4 additions & 1 deletion content/english/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ banner:
clipboardTickIcon: "/images/landing-page/clipboard-copy-done-tick.png"
noaaLogo: "/images/landing-page/noaa-logo.png"
pythonLogo: "/images/landing-page/python-logo.png"
catIllu: "/images/landing-page/cat_illu.png"
installUnderline: "/images/landing-page/underline_1_install.png"

button:
enable: false
enable: false
label: "view on GitHub"
link: "https://github.com/zeon-studio/hugoplate"

Expand Down
Loading

0 comments on commit 3bfeb71

Please sign in to comment.