- Notifications
You must be signed in to change notification settings - Fork328
Dan careers landing page#1327
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
5 commits Select commitHold shift + click to select a range
a033090
start of careers landing page, add descriptions to positions
chillenberger1979ffc
add background glow
chillenberger32d2327
rerout career url
chillenbergerc6c5c48
cleanup
chillenberger17f4349
remove placeholder content of product manager role
chillenbergerFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
NextNext commit
start of careers landing page, add descriptions to positions
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commita033090e4c27203897c5bec966c59fd38e776bdc
There are no files selected for viewing
6 changes: 6 additions & 0 deletionspgml-cms/careers/data-scientist.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletionspgml-cms/careers/full-stack-engineer.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletionspgml-cms/careers/machine-learning-engineer.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletionspgml-cms/careers/product-manager.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletionspgml-dashboard/src/api/cms.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletionspgml-dashboard/src/components/cards/mod.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletionspgml-dashboard/src/components/cards/newsletter_subscribe/mod.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use pgml_components::component; | ||
use sailfish::TemplateOnce; | ||
#[derive(TemplateOnce, Default)] | ||
#[template(path = "cards/newsletter_subscribe/template.html")] | ||
pub struct NewsletterSubscribe {} | ||
impl NewsletterSubscribe { | ||
pub fn new() -> NewsletterSubscribe { | ||
NewsletterSubscribe {} | ||
} | ||
} | ||
component!(NewsletterSubscribe); |
12 changes: 12 additions & 0 deletionspgml-dashboard/src/components/cards/newsletter_subscribe/newsletter_subscribe.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
div[data-controller="cards-newsletter-subscribe"] { | ||
.newsletter-subscribe-container { | ||
background-position: center; | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
@include media-breakpoint-up(md) { | ||
background-image: url("/dashboard/static/images/newsletter_subscribe_background_desktop.png"); | ||
} | ||
background-image: url("/dashboard/static/images/newsletter_subscribe_background_mobile.png"); | ||
background-color: #{$pink}; | ||
} | ||
} |
14 changes: 14 additions & 0 deletionspgml-dashboard/src/components/cards/newsletter_subscribe/newsletter_subscribe_controller.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Controller } from '@hotwired/stimulus' | ||
export default class extends Controller { | ||
static targets = [] | ||
static outlets = [] | ||
initialize() { | ||
console.log('Initialized cards-newsletter-subscribe') | ||
} | ||
connect() {} | ||
disconnect() {} | ||
} |
16 changes: 16 additions & 0 deletionspgml-dashboard/src/components/cards/newsletter_subscribe/template.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div data-controller="cards-newsletter-subscribe"> | ||
<div class="d-flex flex-column flex-lg-row gap-4 justify-content-center align-items-center newsletter-subscribe-container p-5 rounded-4"> | ||
<div class="d-flex flex-column gap-4 text-center text-md-start" style="flex: 4"> | ||
<h3>Subscribe to our newsletter. (It’s better than you think)</h3> | ||
<p>No spam. No sales pitches. Just product updates. Keep up with all our articles and news. Join our newsletter and stay up to date!</p> | ||
</div> | ||
<form action="/newsletter_subscribe" class="d-flex flex-column justify-content-center align-items-center gap-3 w-100" style="flex: 3" method="post"> | ||
<div class="input-group p-1 ps-3 subscribe-input"> | ||
<input type="email" class="form-control border-0" placeholder="hootareyou@email.com" name="email" autocomplete="off"> | ||
<button type="submit" class="btn btn-primary rounded-2 d-none d-md-block">Subscribe</button> | ||
</div> | ||
<button type="submit" class="btn btn-primary rounded-2 d-md-none">Subscribe</button> | ||
</form> | ||
</div> | ||
</div> |
2 changes: 1 addition & 1 deletionpgml-dashboard/src/components/cms/index_link/index_link.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletionspgml-dashboard/src/components/layouts/docs/docs.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionpgml-dashboard/src/components/layouts/docs/template.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletionpgml-dashboard/src/components/navigation/left_nav/docs/template.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletionspgml-dashboard/src/components/navigation/toc/template.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletionspgml-dashboard/src/components/navigation/toc/toc.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletionspgml-dashboard/src/components/notifications/marketing/feature_banner/feature_banner.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionpgml-dashboard/src/components/notifications/marketing/feature_banner/template.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletionspgml-dashboard/src/components/pages/blog/landing_page/template.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletionspgml-dashboard/src/components/pages/careers/landing_page/landing_page.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
div[data-controller="pages-careers-landing-page"] { | ||
.glow-1 { | ||
z-index: -1; | ||
top: -10rem; | ||
left: -5%; | ||
@include media-breakpoint-down(md) { | ||
top: -5rem; | ||
left: 0%; | ||
} | ||
} | ||
.glow-2 { | ||
z-index: -1; | ||
top: 50rem; | ||
left: 5%; | ||
@include media-breakpoint-down(md) { | ||
top: -5rem; | ||
left: 0%; | ||
} | ||
} | ||
.sky-1 { | ||
width: 752px; | ||
height: 619px; | ||
max-width: 50vw; | ||
position: absolute; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
border-radius: 752px; | ||
background: radial-gradient(46.38% 45.17% at 22.72% 36.90%, rgba(57, 210, 231, 0.60) 26.40%, rgba(174, 110, 255, 0.60) 100%); | ||
filter: blur(252.66856384277344px); | ||
} | ||
.card { | ||
background: #{$gray-800}; | ||
.card-eyebrow { | ||
color: #{$gray-100} | ||
} | ||
.goto-arrow { | ||
left: 0rem; | ||
} | ||
&:hover { | ||
background: #{$gray-700}; | ||
.card-eyebrow { | ||
@include text-gradient($gradient-green); | ||
} | ||
.goto-arrow { | ||
left: 0.5rem; | ||
} | ||
} | ||
} | ||
.card-generic-job-position { | ||
background: #{$gray-900}; | ||
border-radius: 20px; | ||
border: 1px solid #{$gray-300}; | ||
} | ||
li::marker { | ||
color: #{$purple}; | ||
} | ||
} |
14 changes: 14 additions & 0 deletionspgml-dashboard/src/components/pages/careers/landing_page/landing_page_controller.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Controller } from '@hotwired/stimulus' | ||
export default class extends Controller { | ||
static targets = [] | ||
static outlets = [] | ||
initialize() { | ||
console.log('Initialized pages-careers-landing-page') | ||
} | ||
connect() {} | ||
disconnect() {} | ||
} |
53 changes: 53 additions & 0 deletionspgml-dashboard/src/components/pages/careers/landing_page/mod.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
use crate::api::cms::Collection; | ||
use crate::components::notifications::marketing::FeatureBanner; | ||
use crate::guards::Cluster; | ||
use crate::Notification; | ||
use pgml_components::component; | ||
use sailfish::TemplateOnce; | ||
struct Position { | ||
title: String, | ||
description: Option<String>, | ||
tag: Option<String>, | ||
href: String, | ||
} | ||
#[derive(TemplateOnce, Default)] | ||
#[template(path = "pages/careers/landing_page/template.html")] | ||
pub struct LandingPage { | ||
feature_banner: FeatureBanner, | ||
positions: Vec<Position>, | ||
} | ||
impl LandingPage { | ||
pub fn new(context: &Cluster) -> LandingPage { | ||
LandingPage { | ||
feature_banner: FeatureBanner::from_notification(Notification::next_feature(Some(context))), | ||
positions: Vec::new(), | ||
} | ||
} | ||
pub async fn index(mut self, collection: &Collection) -> LandingPage { | ||
let urls = collection.get_all_urls(); | ||
for url in urls { | ||
let file = collection.url_to_path(url.as_ref()); | ||
let doc = crate::api::cms::Document::from_path(&file).await.unwrap(); | ||
let tag = match doc.tags.len() { | ||
0 => None, | ||
_ => Some(doc.tags[0].clone()), | ||
}; | ||
self.positions.push(Position { | ||
title: doc.title, | ||
description: doc.description, | ||
tag, | ||
href: url, | ||
}) | ||
} | ||
self | ||
} | ||
} | ||
component!(LandingPage); |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.