Skip to content

Commit ae1f876

Browse files
committed
Create and style redesign About Us page
1 parent 4da22b6 commit ae1f876

6 files changed

Lines changed: 67 additions & 12 deletions

File tree

1.4 MB
Loading

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ main {
77
margin: auto;
88
max-width: var(--container--medium);
99
}
10+
11+
.grid-full {
12+
grid-column: 1 / -1;
13+
}

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: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
section.section {
1+
:where(section.section) {
22
align-items: center;
33
display: grid;
44
gap: var(--space--base);
55
grid-template-columns: repeat(12, [col-start] 1fr);
66
justify-content: center;
7+
justify-content: center;
78
padding: var(--space--large) 0;
89
}
910

@@ -38,9 +39,44 @@ section.section {
3839
}
3940

4041
.section-cta {
41-
margin: var(--space--base);
42+
margin-block: var(--space--base);
43+
}
44+
45+
.about-us {
46+
gap: var(--space--base) var(--space--large);
47+
grid-template-columns: 1fr;
48+
49+
.image-crop {
50+
border-radius: var(--border-radius--large);
51+
height: 100%;
52+
overflow: hidden;
53+
width: 100%;
54+
55+
img {
56+
height: 100%;
57+
object-fit: cover;
58+
object-position: 65% 25%;
59+
width: 100%;
60+
}
61+
}
4262
}
4363

44-
.test {
45-
grid-column: col-start 3 / span 3;
64+
@media screen and (min-width: 600px) {
65+
.about-us .image-crop img {
66+
height: 20rem;
67+
}
68+
}
69+
70+
@media screen and (min-width: 998px) {
71+
.about-us {
72+
grid-template-columns: 3fr 2fr;
73+
74+
.image-crop {
75+
order: 2;
76+
77+
img {
78+
height: 100%;
79+
}
80+
}
81+
}
4682
}
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: "Man wearing a blue cap and green jacket sits at a table and uses a laptop, with a red mug in front of him 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>

config/locales/en.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,14 @@ en:
283283
patrick_cushing_quote_html:
284284
thoughtbot is a best-in-class organization for development and DevOps.
285285
<strong>They can level up your team and transform your technical culture for the better.</strong>
286-
287286
about:
288287
show:
289288
page_title: About Us
289+
section_title: About Upcase
290+
classic_cta: View Upcase Classic
291+
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.
292+
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.
293+
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.
290294
opportunities:
291295
new:
292296
page_title: Contact Us

0 commit comments

Comments
 (0)