Skip to content

Commit

Permalink
added gw start
Browse files Browse the repository at this point in the history
  • Loading branch information
gokulprathin8 committed Feb 13, 2024
1 parent 1ce3d68 commit 8afa440
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 192 deletions.
249 changes: 59 additions & 190 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);
});
3 changes: 3 additions & 0 deletions content/english/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ 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
label: "view on GitHub"
Expand Down
1 change: 1 addition & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ module.exports = {
primary: [fontPrimary, fontPrimaryType],
secondary: [fontSecondary, fontSecondaryType],
'heebo': ['heebo', 'ui-serif', 'Georgia'],
'roboto': ['roboto', 'ui-sans-serif', 'system-ui'],
},
},
},
Expand Down
1 change: 1 addition & 0 deletions themes/geoweaver/assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

@layer base {
@import "base";
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
}

@layer components {
Expand Down
Loading

0 comments on commit 8afa440

Please sign in to comment.