Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fellow and project page links on home page #462

Merged
merged 3 commits into from
Apr 26, 2024
Merged
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
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
Loading