Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions src/wp-admin/contribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
</nav>

<div class="about__section has-2-columns is-wider-right">
<div class="column">
<img src="<?php echo esc_url( admin_url( 'images/contribute-main.svg?ver=6.5' ) ); ?>" alt="" width="290" height="290" />
<div class="column is-left-padding-zero">
<div class="about__image">
<img src="<?php echo esc_url( admin_url( 'images/contribute-main.svg?ver=6.5' ) ); ?>" alt="" width="290" height="290" />
</div>
</div>
<div class="column is-vertically-aligned-center">
<div class="column is-vertically-aligned-center is-right-padding-zero">
<p><?php _e( 'Do you use WordPress for work, for personal projects, or even just for fun? You can help shape the long-term success of the open source project that powers millions of websites around the world.' ); ?></p>
<p><?php _e( 'Join the diverse WordPress contributor community and connect with other people who are passionate about maintaining a free and open web.' ); ?></p>

Expand All @@ -64,7 +66,7 @@
</div>

<div class="about__section has-2-columns is-wider-left">
<div class="column is-vertically-aligned-center">
<div class="column is-vertically-aligned-center is-left-padding-zero">
<h2 class="is-smaller-heading"><?php _e( 'No-code contribution' ); ?></h2>
<p><?php _e( 'WordPress may thrive on technical contributions, but you don&#8217;t have to code to contribute. Here are some of the ways you can make an impact without writing a single line of code:' ); ?></p>
<ul>
Expand All @@ -80,15 +82,19 @@
<li><?php _e( '<strong>Explore</strong> ways to reduce the environmental impact of websites.' ); ?></li>
</ul>
</div>
<div class="column">
<img src="<?php echo esc_url( admin_url( 'images/contribute-no-code.svg?ver=6.5' ) ); ?>" alt="" width="290" height="290" />
<div class="column is-right-padding-zero">
<div class="about__image">
<img src="<?php echo esc_url( admin_url( 'images/contribute-no-code.svg?ver=6.5' ) ); ?>" alt="" width="290" height="290" />
</div>
</div>
</div>
<div class="about__section has-2-columns is-wider-right">
<div class="column">
<img src="<?php echo esc_url( admin_url( 'images/contribute-code.svg?ver=6.5' ) ); ?>" alt="" width="290" height="290" />
<div class="column is-left-padding-zero">
<div class="about__image">
<img src="<?php echo esc_url( admin_url( 'images/contribute-code.svg?ver=6.5' ) ); ?>" alt="" width="290" height="290" />
</div>
</div>
<div class="column is-vertically-aligned-center">
<div class="column is-vertically-aligned-center is-right-padding-zero">
<h2 class="is-smaller-heading"><?php _e( 'Code-based contribution' ); ?></h2>
<p><?php _e( 'If you do code, or want to learn how, you can contribute technically in numerous ways:' ); ?></p>
<ul>
Expand Down
18 changes: 14 additions & 4 deletions src/wp-admin/css/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
.about__section.has-2-columns.is-wider-right,
.about__section.has-2-columns.is-wider-left,
.about__section.has-3-columns {
display: block;
display: flex;
margin-bottom: calc(var(--gap) / 2);
}

Expand Down Expand Up @@ -329,10 +329,22 @@

@media screen and (max-width: 600px) {
.about__section.has-2-columns {
display: block;
display: flex;
flex-direction: column;
margin-bottom: var(--gap);
}

/* Make image containers appear first */
.about__section.has-2-columns .column:has(.about__image) {
order: 2;
text-align: center;
}

/* Make text containers appear second */
.about__section.has-2-columns .column:not(:has(.about__image)) {
order: 1;
}

.about__section.has-2-columns:not(.has-gutters) .column:nth-of-type(n) {
padding-top: calc(var(--gap) / 2);
padding-bottom: calc(var(--gap) / 2);
Expand Down Expand Up @@ -504,7 +516,6 @@

.about__container .about__image img {
max-width: 100%;
width: 100%;
height: auto;
border-radius: var(--border-radius);
}
Expand Down Expand Up @@ -685,7 +696,6 @@
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding-top: 0;
margin-bottom: var(--gap);
background: var(--nav-background);
color: var(--nav-color);
Expand Down
Loading