Skip to content

Commit

Permalink
Merge pull request #680 from input-output-hk/filip/feat/add-ga
Browse files Browse the repository at this point in the history
Filip/feat/add ga & adjust input fields
  • Loading branch information
fstoqnov-iohk authored Dec 27, 2024
2 parents 581dd49 + 5675fd0 commit bfdb066
Show file tree
Hide file tree
Showing 7 changed files with 2,654 additions and 23 deletions.
4 changes: 4 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ const config: Config = {
src: 'https://www.googletagmanager.com/gtag/js?id=G-C4Y892QLL8',
async: false,
},
{
src: '/custom-ga.js',
async: false,
},
],

clientModules: [require.resolve('./src/clientModules/gtag.js')],
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@ctrl/tinycolor": "^4.0.3",
"@docusaurus/core": "3.1.1",
"@docusaurus/plugin-client-redirects": "3.1.1",
"@docusaurus/plugin-google-analytics": "^3.6.3",
"@docusaurus/preset-classic": "3.1.1",
"@emotion/core": "^10.0.22",
"@emotion/react": "^11.9.3",
Expand All @@ -27,12 +28,15 @@
"@input-output-hk/front-end-core-components": "^1.0.9",
"@material-ui/core": "^4.12.4",
"@mdx-js/react": "^3.0.1",
"@rive-app/react-webgl": "^4.14.4",
"clsx": "^2.0.0",
"dayjs": "^1.11.9",
"docusaurus-node-polyfills": "^1.0.0",
"emotion": "^10.0.23",
"emotion-server": "^10.0.17",
"emotion-theming": "^10.0.19",
"file-loader": "^6.2.0",
"framer-motion": "^11.11.7",
"is-absolute-url": "^3.0.3",
"lodash.flatten": "^4.4.0",
"lodash.startcase": "^4.4.0",
Expand All @@ -46,15 +50,12 @@
"react-google-recaptcha": "^3.1.0",
"react-hook-form": "^7.51.0",
"react-icons": "^5.0.1",
"react-player": "^2.16.0",
"react-tooltip": "^4.2.21",
"styled-components": "^6.1.10",
"styled-icons": "^9.0.1",
"victory": "^36.5.3",
"swiper": "^11.1.14",
"framer-motion": "^11.11.7",
"@rive-app/react-webgl": "^4.14.4",
"file-loader": "^6.2.0",
"react-player": "^2.16.0"
"victory": "^36.5.3"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.1.1",
Expand Down
18 changes: 16 additions & 2 deletions src/components/Faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,14 @@ const FaucetInner = ({
}}
InputProps={{
endAdornment: (
<InputAdornment position="end">
<InputAdornment
position="end"
style={{
position: 'absolute',
right: 0,
zIndex: -1,
}}
>
<ChevronDown />
</InputAdornment>
),
Expand Down Expand Up @@ -324,7 +331,14 @@ const FaucetInner = ({
}}
InputProps={{
endAdornment: (
<InputAdornment position="end">
<InputAdornment
position="end"
style={{
position: 'absolute',
right: 0,
zIndex: -1,
}}
>
<ChevronDown />
</InputAdornment>
),
Expand Down
1 change: 1 addition & 0 deletions src/components/StakingCalculator/StakingCalculator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ export const AdvancedOptionsContainer = styled.div`
font-size: 1rem;
font-style: normal;
line-height: 1.5rem;
cursor: pointer;
svg {
margin-left: 1px;
Expand Down
5 changes: 4 additions & 1 deletion src/components/StakingCalculator/inputs/SelectCurrency.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ const SelectCurrency = ({ value, onChange, label, helperText, currencies }) => (
}}
InputProps={{
endAdornment: (
<InputAdornment position="end">
<InputAdornment
position="end"
style={{ position: 'absolute', right: 0, zIndex: -1 }}
>
<ChevronDown />
</InputAdornment>
),
Expand Down
6 changes: 6 additions & 0 deletions static/custom-ga.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', 'G-C4Y892QLL8')
Loading

1 comment on commit bfdb066

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for cardano-documentation ready!

✅ Preview
https://cardano-documentation-jzoxljgs0-iog.vercel.app
https://cardano-documentation.vercel.app

Built with commit bfdb066.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.