Skip to content

Commit ad5afa8

Browse files
authored
Create and style redesign About Us page (#2830)
* Add marketing redesign landing content and styles * Nest CSS for readability and alphabetize * Create and style redesign About Us page * Fix issues based on comments
1 parent 13dd836 commit ad5afa8

8 files changed

Lines changed: 79 additions & 25 deletions

File tree

1.4 MB
Loading

app/assets/stylesheets/marketing_redesign/base/_layout.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@ body {
55

66
main {
77
margin: auto;
8-
max-width: var(--container--base);
8+
max-width: var(--container--medium);
9+
}
10+
11+
.grid-full {
12+
grid-column: 1 / -1;
913
}

app/assets/stylesheets/marketing_redesign/base/_media.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
:where(
2-
img,
3-
figure,
4-
picture,
5-
video
6-
) {
1+
:where(img, figure, picture, video) {
72
display: block;
83
height: auto;
94
margin: 0;

app/assets/stylesheets/marketing_redesign/components/_section.css

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,44 @@
3838
}
3939

4040
.section-cta {
41-
margin: var(--space--base);
41+
margin-block: var(--space--base);
4242
}
4343

44-
.test {
45-
grid-column: col-start 3 / span 3;
44+
.about-us {
45+
gap: var(--space--base) var(--space--large);
46+
grid-template-columns: 1fr;
47+
48+
.image-crop {
49+
border-radius: var(--border-radius--large);
50+
height: 100%;
51+
overflow: hidden;
52+
width: 100%;
53+
54+
img {
55+
height: 100%;
56+
object-fit: cover;
57+
object-position: 65% 25%;
58+
width: 100%;
59+
}
60+
}
61+
}
62+
63+
@media screen and (min-width: 600px) {
64+
.about-us .image-crop img {
65+
height: 20rem;
66+
}
67+
}
68+
69+
@media screen and (min-width: 998px) {
70+
.about-us {
71+
grid-template-columns: 3fr 2fr;
72+
73+
.image-crop {
74+
order: 2;
75+
76+
img {
77+
height: 100%;
78+
}
79+
}
80+
}
4681
}

app/assets/stylesheets/marketing_redesign/components/_testimonial.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@
1010
border-radius: var(--border-radius--base);
1111
}
1212

13-
.quote {
14-
grid-column: span 12;
15-
order: 0;
16-
text-indent: -0.65rem;
17-
}
18-
1913
.author {
2014
align-items: center;
2115
background-color: var(--color--background-dark);
@@ -41,6 +35,12 @@
4135
width: 4.5rem;
4236
}
4337

38+
.quote {
39+
grid-column: span 12;
40+
order: 0;
41+
text-indent: -0.65rem;
42+
}
43+
4444
.logo-container {
4545
display: flex;
4646
flex-direction: row;
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
11
<%= content_for(:page_title, t(".page_title")) %>
2+
<section class="section about-us">
3+
<div class="image-crop">
4+
<%= image_tag "marketing_redesign/man-learning-from-home.jpg", alt: "Person wearing a blue cap and green jacket sits at a table and uses a laptop, with a red mug in front of them in a well-lit room."%>
5+
</div>
6+
<div class="about-content">
7+
<h1><%= t(".section_title") %></h1>
28

3-
Hello world
9+
<p><%= t(".content_1") %></p>
10+
<p><%= t(".content_2") %></p>
11+
<p><%= t(".content_3") %></p>
12+
13+
<%= link_to(
14+
t(".classic_cta"),
15+
{controller: "/marketing", action: :show},
16+
class: "section-cta button button--primary"
17+
) %>
18+
</div>
19+
</section>

app/views/marketing_redesign/home/show.html.erb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@
2222
<%= t("marketing_redesign.home.show.testimonials.heading") %>
2323
</h2>
2424
</div>
25-
<div class="section-content full logo-container">
26-
<%= image_tag "marketing_redesign/brand-logos/moma.png", alt: "New York City Museum of Modern Art logo", class: "logo" %>
27-
<%= image_tag "marketing_redesign/brand-logos/hbr.png", alt: "Harvard Business Review logo", class: "logo" %>
28-
<%= image_tag "marketing_redesign/brand-logos/planned-parenthood.png", alt: "Planned Parenthood logo", class: "logo" %>
29-
<%= image_tag "marketing_redesign/brand-logos/merck.png", alt: "Merck logo", class: "logo" %>
30-
<%= image_tag "marketing_redesign/brand-logos/vimeo.png", alt: "Vimeo logo", class: "logo" %>
31-
</div>
3225
<div class="quote-container full">
3326
<q class="quote text-xl"><%= t("marketing_redesign.home.show.testimonials.quotes.patrick_cushing_quote_html") %></q>
3427
<div class="author">
@@ -41,6 +34,13 @@
4134
</div>
4235
</div>
4336
</div>
37+
<div class="section-content full logo-container">
38+
<%= image_tag "marketing_redesign/brand-logos/moma.png", alt: "New York City Museum of Modern Art logo", class: "logo" %>
39+
<%= image_tag "marketing_redesign/brand-logos/hbr.png", alt: "Harvard Business Review logo", class: "logo" %>
40+
<%= image_tag "marketing_redesign/brand-logos/planned-parenthood.png", alt: "Planned Parenthood logo", class: "logo" %>
41+
<%= image_tag "marketing_redesign/brand-logos/merck.png", alt: "Merck logo", class: "logo" %>
42+
<%= image_tag "marketing_redesign/brand-logos/vimeo.png", alt: "Vimeo logo", class: "logo" %>
43+
</div>
4444
</section>
4545

4646
<section class="section">

config/locales/en.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,14 @@ en:
286286
patrick_cushing_quote_html:
287287
thoughtbot is a best-in-class organization for development and DevOps.
288288
<strong>They can level up your team and transform your technical culture for the better.</strong>
289-
290289
about:
291290
show:
292291
page_title: About Us
292+
section_title: About Upcase
293+
classic_cta: View Upcase Classic
294+
content_1: Since 2012, one way we’ve shared thoughtbot expertise is through the learning platform you find yourself on today - Upcase. We’ve helped thousands of developers level up their skills through workshops, videos, flash cards, and coding exercises.
295+
content_2: In 2018, Upcase became completely free from a subscription model. Teaching and mentoring is core to our mission and a big part of what keeps us happy in our work here at thoughtbot. It felt right to make Upcase free and allow folks to share and reference it however they’d like.
296+
content_3: 2025 marks the archival of the outdated content. We’re calling this Upcase Classic. Moving forward, Upcase for Teams will focus on providing customized upskilling; our talented developers work directly with your team to provide the best learning experience.
293297
opportunities:
294298
new:
295299
page_title: Contact Us

0 commit comments

Comments
 (0)