Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixed apply as a speaker button in Paris Conference page #197

Merged
merged 6 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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