Skip to content

Commit

Permalink
Leaders page redo (#203)
Browse files Browse the repository at this point in the history
* fix: small debug code left behind

* feat: new leaders page

* fix: small cleanups

* fix: add gdocs as allowable content

* fix: fix tags and some placeholders

* fix: styles for the subscribe form
  • Loading branch information
ajfisher authored Jun 16, 2024
1 parent 8996b82 commit 7170927
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/handlers/security_cache_headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ exports.handler = (event, context, callback) => {
"default-src 'self' ; " +
"connect-src 'self' https://fonts.googleapis.com https://fonts.gstatic.com" +
" https://www.google-analytics.com https://www.googletagmanager.com" +
" https://www.github.com/ ; " +
" https://www.github.com/ https://docs.google.com/ ;" +
"script-src 'self' 'unsafe-inline' https://www.google-analytics.com" +
" https://www.googletagmanager.com ; " +
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://fonts.gstatic.com ; " +
Expand Down
6 changes: 4 additions & 2 deletions site/src/pages/leaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ const LeadersPage = ({data}) => {
below. Don't forget to sign up if you want to get more information about
additional content.
`;
const tags = ['thinking', 'business', 'innovation'];

const frontmatter = {
title,
date,
excerpt,
slug,
large_title: true,
large_title: false,
};

const submitURL = 'https://docs.google.com/forms/d/e/1FAIpQLSei22e0iBvHq5b3wrhOTetsVk_srB4a1pLzotYPKnGmi2dNYg/formResponse';
Expand Down Expand Up @@ -78,7 +79,7 @@ const LeadersPage = ({data}) => {
};

return (
<Layout frontmatter={frontmatter} tags={['leadership', 'resources']}
<Layout frontmatter={frontmatter} tags={tags}
path='/leaders' featuredimage={featuredImageSrc}
>
<PageHead title={title}/>
Expand Down Expand Up @@ -138,6 +139,7 @@ const LeadersPage = ({data}) => {
value={email}
onChange={(e) => setEmail(e.target.value)}
required
placeholder="email@example.com"
/>
</label>
<button type="submit">Submit</button>
Expand Down
28 changes: 28 additions & 0 deletions site/src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,34 @@ article p span.gatsby-resp-image-wrapper + em {
font-style: normal;
margin-top: calc(0.25 * var(--gutter));
}


/* Some definitions for the form */
article form label {
font-family: var(--main-font-family);
font-size: 2.2rem;
}

article form input {
padding: var(--margin-indent);
margin-left: var(--gutter-small);
border: 1px solid var(--base);
margin-right: var(--gutter-small);
height: 100%;
font-family: var(--main-font-family);
font-size: 2.2rem;
width: 60%;
}
article form button {
padding: var(--margin-indent);
background-color: var(--light-base);
color: var(--dark-base);
height: 100%;
border: none;
font-family: var(--main-font-family);
font-size: 2.2rem;
}

/* MEDIA QUERIES FOR Medium Size display */

/* MEDIA QUERIES FOR Large Size displau */
Expand Down

0 comments on commit 7170927

Please sign in to comment.