Skip to content

Commit

Permalink
feat: add links to the section 1 buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-vm committed Mar 12, 2024
1 parent 2c11a28 commit f1f7a4f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/components/Home/Session1/TitleGroup/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
import React from 'react'
import React, { useCallback } from 'react'
import "./index.css"

export const TitleGroup = () => {

const handleClickCloud = useCallback(() => {
window.open("https://domino-workflows.cloud/sign-in", "_blank")
}, [])

const handleClickDocs = useCallback(() => {
window.location.href = "/docs/intro"
}, [])

return (
<div id="text-container">
<div id="title-container">
Expand All @@ -17,8 +26,8 @@ export const TitleGroup = () => {
</div>

<div id="button-container">
<button id="primary">Discover now</button>
<button id="tertiary">Learn more</button>
<button id="primary" onClick={handleClickCloud}>Try for free</button>
<button id="tertiary" onClick={handleClickDocs}>Learn more</button>
</div>
</div>
)
Expand Down

0 comments on commit f1f7a4f

Please sign in to comment.