Skip to content

Commit

Permalink
fix: fixed apply as a speaker button in Paris Conference page (#197)
Browse files Browse the repository at this point in the history
* fix: Apply as a speaker button

* Make changes as suggested

* Remove console.log

* Adds target tag

* fix build error
  • Loading branch information
ankur0904 authored Sep 25, 2023
1 parent 64eed0b commit fa25c2d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
8 changes: 5 additions & 3 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,11 @@ export default function Home() {
us on stage and share your valuable insights with our
enthusiastic audience!
</Paragraph>
<Button className='mt-[80px] w-[244px] border border-gray card-bg'>
Apply as a Speaker
</Button>
<a href='https://apidays.typeform.com/to/ILJeAaV8#event_name=xxxxx' target="_blank" rel="noopener noreferrer">
<Button className='mt-[80px] w-[244px] border border-gray card-bg'>
Apply as a Speaker
</Button>
</a>
</div>
</div>
)}
Expand Down
9 changes: 6 additions & 3 deletions pages/venue/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export async function getStaticPaths() {
function Venue({ city }) {
const router = useRouter();
const [active, setActive] = useState(tabs[0].title);
console.log(city.name);
return (
<div>
<div className='w-full h-[500px] sm:h-[auto] bg-madrid bg-cover bg-center'>
Expand Down Expand Up @@ -133,9 +134,11 @@ function Venue({ city }) {
stage and share your valuable insights with our enthusiastic
audience!
</Paragraph>
<Button className='mt-[80px] w-[244px] border border-gray card-bg'>
Apply as a Speaker
</Button>
<a href={city.name === 'Paris' ? 'https://apidays.typeform.com/to/ILJeAaV8#event_name=xxxxx' : null} target="_blank" rel="noopener noreferrer">
<Button className='mt-[80px] w-[244px] border border-gray card-bg'>
Apply as a Speaker
</Button>
</a>
</div>
)}
</div>
Expand Down

0 comments on commit fa25c2d

Please sign in to comment.