Skip to content

Commit

Permalink
Add dev tools quiz (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
katjuell authored Apr 28, 2022
1 parent a31d4e7 commit fbc91ca
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 18 deletions.
27 changes: 15 additions & 12 deletions src/components/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ interface LayoutProps {

className?: string
hideFooter?: boolean
hideHeader?: boolean
hideGetStartedButton?: boolean
}

Expand Down Expand Up @@ -69,18 +70,20 @@ export const Layout: FunctionComponent<LayoutProps> = props => {
{meta.canonical ? <link rel="canonical" href={meta.canonical} /> : ''}
</Head>

<div className={props.heroAndHeaderClassName}>
<Header
isHome={isHome}
isBlog={isBlog}
isProductPage={isProductPage}
minimal={props.minimal}
className={props.className}
hideGetStartedButton={props.hideGetStartedButton}
/>

{props.hero}
</div>
{!props.hideHeader && (
<div className={props.heroAndHeaderClassName}>
<Header
isHome={isHome}
isBlog={isBlog}
isProductPage={isProductPage}
minimal={props.minimal}
className={props.className}
hideGetStartedButton={props.hideGetStartedButton}
/>

{props.hero}
</div>
)}

<section className="flex-1">{props.children}</section>

Expand Down
29 changes: 29 additions & 0 deletions src/pages/dev-tools-quiz.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// eslint-disable-next-line unicorn/prevent-abbreviations
import { FunctionComponent } from 'react'

import Script from 'next/script'

import { Layout } from '@components'

const DevelopmentToolsQuizPage: FunctionComponent = () => (
<Layout
meta={{
title: 'New Year, New Dev Tools - Take the Quiz - Sourcegraph',
description:
'Dev tools have made huge strides recently. This is a chance to think about your go-to tools for searching, reading, and understanding code and discover some new ones along the way.',
image: 'https://about.sourcegraph.com/sourcegraph-og.png',
}}
hideHeader={true}
hideFooter={true}
>
<div
className="vh-100"
data-tf-widget="bSiNOCmx"
data-tf-iframe-props="title=Dev Tools Quiz"
data-tf-hidden="utm_source=xxxxx,utm_medium=xxxxx,utm_campaign=xxxxx,utm_term=xxxxx,utm_content=xxxxx"
/>
<Script src="//embed.typeform.com/next/embed.js" />
</Layout>
)

export default DevelopmentToolsQuizPage
1 change: 0 additions & 1 deletion src/styles/globals.scss
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ table {
@import 'pages/sales';
@import 'pages/universal-code-search';
@import 'templates/PostTemplate';
@import 'pages/dev-tools-quiz';
@import 'pages/code-insights';
@import 'gradients';
@import 'spacing';
Expand Down
5 changes: 0 additions & 5 deletions src/styles/pages/_dev-tools-quiz.scss

This file was deleted.

0 comments on commit fbc91ca

Please sign in to comment.