Skip to content

Commit

Permalink
Add fellow and project page links on home page (#462)
Browse files Browse the repository at this point in the history
* Add fellow and project page links on home page

* update images for fellows and projects link

* Update link text
  • Loading branch information
jaredbain authored Apr 26, 2024
1 parent 669d0f8 commit f8e8e94
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 38 deletions.
63 changes: 32 additions & 31 deletions _sass/pages/_home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,45 +77,27 @@
}
}

.home-apply {
@include u-padding(4);
@include column-overlay-vertical("center", 100%, "primary", 0.75);
background-color: color("primary");
background-image: url($baseurl + "/assets/images/home/TheUSgovernment.webp");
background-position: center;
background-size: auto 100%;
background-repeat: no-repeat;

height: 600px;
// mini boxes
// see boxes.scss for styling and sizes

.usa-link {
@include white-url();
}
.home-fellows {
@include u-margin-bottom(2);
background-image: url($baseurl + "/assets/images/home/Meet_The_Fellows.webp");
background-repeat: no-repeat;
background-size: auto 100%;
background-position: left;

// < desktop
// desktop
@include at-media-max("desktop") {
@include u-padding(2);
@include u-padding-bottom(4);
height: 464px;

.box-content p {
line-height: 1.2em;
}
background-position: -40px 0;
}

// < tablet
@include at-media-max("tablet") {
@include u-margin-bottom(2);
height: unset;

.box-content p {
line-height: 1.5em;
}
// mobile
@include at-media-max("mobile-lg") {
background-position: -55px 0;
}
}

// mini boxes
// see boxes.scss for styling and sizes
.home-opportunity {
@include u-margin-bottom(2);
background-image: url($baseurl + "/assets/images/home/Opportunity.webp");
Expand Down Expand Up @@ -145,6 +127,25 @@
background-position: -20px 0;
}

// mobile
@include at-media-max("mobile-lg") {
background-position: -30px 0;
}
}

.home-projects {
@include u-margin-bottom(2);
background-image: url($baseurl + "/assets/images/home/Home_Page_Projects_image.webp");
background-repeat: no-repeat;
background-size: auto 100%;
background-position: left;
object-fit: contain;

// desktop
@include at-media-max("desktop") {
background-position: -20px 0;
}

// mobile
@include at-media-max("mobile-lg") {
background-position: -30px 0;
Expand Down
Binary file added assets/images/home/Home_Page_Projects_image.webp
Binary file not shown.
Binary file added assets/images/home/Meet_The_Fellows.webp
Binary file not shown.
34 changes: 27 additions & 7 deletions pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,35 @@ <h3 class="twoline">Mentorship and <br class="display-none tablet:display-inline

<!-- tech talent -->
<div class="tablet:grid-col">
<div class="home-apply">
<div class="box-content text-white">
<!-- <h2 class="padding-top-2">APPLY NOW</h2> -->
<p>The U.S. government is in the midst of a digital transformation. We need skilled junior technologists with experiences and identities that reflect the diversity of America to join the public servants already at work modernizing and simplifying government services—reaching and improving the lives of all Americans.</p>
{% if site.apply_now %}
<p><strong>Applications for the U.S. Digital Corps are now open.</strong> <a class="usa-link" href="{{site.baseurl}}/apply/">Apply today</a>.</p>
{% endif %}

<!-- fellows -->
<div class="grid-row">
<div class="grid-col box-pane-button home-fellows">
<a class="usa-button" href="{{site.baseurl}}/fellows/">
<div class="box-pane">
<h2>Our Fellows</h2>
<p class="usa-link--alt usa-link--external">
Read more about our USDC Fellows
</p>
</div>
</a>
</div>
</div>

<!-- projects -->
<div class="grid-row">
<div class="grid-col box-pane-button home-projects">
<a class="usa-button" href="{{site.baseurl}}/projects/">
<div class="box-pane">
<h2>Agency Impact</h2>
<p class="usa-link--alt usa-link--external">
Make a difference for the American public
</p>
</div>
</a>
</div>
</div>

</div>

<div class="tablet:grid-col">
Expand Down

0 comments on commit f8e8e94

Please sign in to comment.