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

Small updates/fixes in the UI #37

Merged
merged 5 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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
10 changes: 4 additions & 6 deletions _includes/effort.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<section id="effort" class="effort text-center bg-light">
<div class="container">
<h1 class="mt-5 mb-3">Efforts</h1>
<h1 class="mt-5 mb-5">Efforts</h1>
<div class="row">
{% for effort in site.efforts %}
<!-- <div class="effort"> -->
<div class="effort-name col-lg-6 col-sm-12">
<div class="name">{{ effort.name }}</div>
</div>
<div class="effort-info col-lg-6 cols-sm-12">
<div class="description">{{ effort.description }}</div>
<div class="link"><a href="{{ effort.link }}">{{ effort.link }}</a></div>
<div class="text">{{ effort.description }}</div>
<div class="text"><a href="{{ effort.link }}">{{ effort.link }}</a></div>
{% if effort.leader %}
<div class="leader-label">Leader</div><div class="leader">{{ effort.leader }}</div>
<div class="text">Leader: {{ effort.leader }}</div>
{% endif %}
</div>
<!-- </div> -->
{% endfor %}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions _includes/facilities.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<section id="facilities" class="facilities text-center bg-light">
<div class="container mb-3">
<h1 class="mt-5 mb-3">Facilities</h1>
<h1 class="mt-5 mb-5">Facilities</h1>
<div class="row">
{% for facility in site.facilities %}
<div class="col-lg-3 col-sm-6 facility mb-5 mb-lg-0">
<div class="col-lg-4 facility mb-5 mb-lg-0">
<a href="{{ facility.url }}">
<img class="img-fluid rounded-3 mb-3" src="{{ facility.image }}">
<h5>{{ facility.name }}</h5>
Expand Down
34 changes: 21 additions & 13 deletions _includes/intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,39 +43,47 @@ <h3>{{ site.pill_4.title }}</h3>
</section>
<section class="features">
<div class="container-fluid p-0">
<div class="row g-0">
<div class="features-row row g-0">
<div class="col-lg-6 order-lg-1 m-0 features-text features-item features-fair">
<div class="features-image" style="background-image: url('{{ site.feature_1.image }}');"></div>
<div class="features-content">
<h2>{{ site.feature_1.title }}</h2>
<p class="lead text-center mb-0">{{ site.feature_1.text }}</p>
<div class="features-content-text">
<h2>{{ site.feature_1.title }}</h2>
<p class="text-center">{{ site.feature_1.text }}</p>
</div>
<p class="attribution text-xs">{{ site.feature_1.attribution }}</p>
</div>
</div>
<div class="col-lg-6 order-lg-2 m-0 features-text features-item features-integration">
<div class="features-image" style="background-image: url('{{ site.feature_2.image }}');"></div>
<div class="features-content">
<h2>{{ site.feature_2.title }}</h2>
<p class="lead text-center mb-0">{{ site.feature_2.text }}</p>
<p class="attribution text-xs">{{ site.feature_2.attribution }}</p>
<div class="features-content-text">
<h2>{{ site.feature_2.title }}</h2>
<p class="text-center">{{ site.feature_2.text }}</p>
</div>
<p class="attribution text-xs">{{ site.feature_2.attribution }}</p>
</div>
</div>
</div>
<div class="row g-0">
<div class="features-row row g-0">
<div class="col-lg-6 order-lg-1 m-0 features-text features-item features-stack">
<div class="features-image" style="background-image: url('{{ site.feature_3.image }}');"></div>
<div class="features-content">
<h2>{{ site.feature_3.title }}</h2>
<p class="lead text-center mb-0">{{ site.feature_3.text }}</p>
<p class="attribution text-xs">{{ site.feature_3.attribution }}</p>
<div class="features-content-text">
<h2>{{ site.feature_3.title }}</h2>
<p class="text-center">{{ site.feature_3.text }}</p>
</div>
<p class="attribution text-xs">{{ site.feature_3.attribution }}</p>
</div>
</div>
<div class="col-lg-6 order-lg-2 m-0 features-text features-item features-open">
<div class="features-image" style="background-image: url('{{ site.feature_4.image }}');"></div>
<div class="features-content">
<h2>{{ site.feature_4.title }}</h2>
<p class="lead text-center mb-0">{{ site.feature_4.text }}</p>
<p class="attribution text-xs">{{ site.feature_4.attribution }}</p>
<div class="features-content-text">
<h2>{{ site.feature_4.title }}</h2>
<p class="text-center">{{ site.feature_4.text }}</p>
</div>
<p class="attribution text-xs">{{ site.feature_4.attribution }}</p>
</div>
</div>
</div>
Expand Down
23 changes: 16 additions & 7 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<script>
onClick = (event) => {
let navLinks = document.querySelectorAll(".nav-link");
for (let i = 0; i < navLinks.length; i++) {
navLinks[i].classList.remove("active");
}
event.target.classList.add("active");
}
</script>

<nav class="navbar fixed-top affix-top navbar-expand-lg navbar-light bg-light navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
Expand All @@ -9,23 +19,22 @@
<div class="navbar-menu collapse navbar-collapse justify-content-center" id="navbarSupportedContent">
<ul class="nav navbar-nav nav-pills mb-2 mb-lg-0">
<li class="nav-item mx-lg-3">
<a class="page-scroll nav-link active" aria-current="page" href="#">Home</a>
<a class="page-scroll nav-link active" aria-current="page" href="#" onclick="onClick(event);">Home</a>
</li>
<li class="nav-item mx-lg-3">
<a class="page-scroll nav-link" href="#intro">Intro</a>
<a class="page-scroll nav-link" href="#intro" onclick="onClick(event);">Intro</a>
</li>
<li class="nav-item mx-lg-3">
<a class="page-scroll nav-link" href="#facilities">Facilities</a>
<a class="page-scroll nav-link" href="#facilities" onclick="onClick(event);">Facilities</a>
</li>
<li class="nav-item mx-lg-3">
<a class="page-scroll nav-link" href="#team">Team</a>
<a class="page-scroll nav-link" href="#team" onclick="onClick(event);">Team</a>
</li>
<li class="nav-item mx-lg-3">
<a class="page-scroll nav-link" href="#effort">Effort</a>
<a class="page-scroll nav-link" href="#effort" onclick="onClick(event);">Effort</a>
</li>
<li class="nav-item mx-lg-3">
<a class="page-scroll nav-link" href="#resources">Resources</a>
<a class="page-scroll nav-link" href="#resources" onclick="onClick(event);">Resources</a>
</li>
</div>
</nav>

4 changes: 2 additions & 2 deletions _includes/resources.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<section id="resources" class="effort text-center bg-light">
<div class="container">
<h1 class="mt-5 mb-3">Resources</h1>
<h1 class="mt-5 mb-5">Resources</h1>
<div class="row">
{% for resource in site.resources %}
<div class="resource col-lg-6 col-sm-12">
<div class="resource">
<a href="{{ resource.url }}">{{ resource.name }}</a>
</div>
{% endfor %}
Expand Down
8 changes: 4 additions & 4 deletions _includes/team.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<section id="team" class="team text-center bg-light">
<div class="container mb-3">
<h1 class="mt-5 mb-3">Team</h1>
<h1 class="mt-5 mb-5">Team</h1>
<div class="row">
{% for leader in site.team.leaders %}
<div class="leader col-lg-4 col-sm-6 card">
<div class="leader team-col card">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct?
Please see my comment on the PR

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nitrosx "team-col" was a costum css class but I removed it and aligned the team div in center instead. It should now look like this:

Capture

<div class="leadership">{{ leader.role }}</div>
<div class="person">{{ leader.name }}</div>
{% if leader.company %}<div class="company">{{ leader.company }}</div> {% endif %}
{% if leader.email %}<div class="email">{{ leader.email }}</div> {% endif %}
</div>
{% endfor %}
</div>
<h2 class="my-3">Collaborators</h2>
<h2 class="mt-5 mb-5">Collaborators</h2>
<div class="row">
{% for collaborator in site.team.collaborators %}
<div class="collaborator col-lg-3 col-sm-6 card">
<div class="collaborator col-lg-4 card">
<div class="person">{{ collaborator.name }}</div>
{% if collaborator.company %}<div class="company">{{ collaborator.company }}</div> {% endif %}
{% if collaborator.email %}<div class="email">{{ collaborator.email }}</div> {% endif %}
Expand Down
88 changes: 68 additions & 20 deletions _sass/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ header.masthead {
background-size: cover;
padding-top: 2rem;
padding-bottom: 2rem;
height: 62vh;

.overlay {
position: absolute;
Expand All @@ -70,9 +71,16 @@ header.masthead {
}

.container {
position: relative;
width: 100%;
max-width: 100%;
margin: 0;
position: absolute;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);

img {
width: 70%;
width: 55%;
}
h1 {
margin-bottom: 0.5rem !important;
Expand Down Expand Up @@ -104,6 +112,14 @@ header.masthead {
}

.features {
.features-row {
height: 20vh !important;

@media (max-width: 985px) {
height: 30vh !important;
}
}

.features-item {
overflow: hidden;
position: relative;
Expand All @@ -123,17 +139,35 @@ header.masthead {
.features-content {
position: relative;
padding: 1rem;
height: 100%;

.features-content-text {
width: 95%;
margin: 0;
position: absolute;
top: 50%;
-ms-transform: translateY(-50%);
transform: translateY(-50%);

p {
font-size: 1.25rem;
}
}

.attribution {
position: absolute;
right: 1rem;
bottom: -0.9rem;
font-size: 0.7rem;
position: absolute;
right: 1rem;
bottom: -0.9rem;
font-size: 0.7rem;
}
}
}
}

.facility {
margin-bottom: 30px !important;
}

.facilities {
a {
text-decoration: none;
Expand All @@ -142,9 +176,24 @@ header.masthead {
}

.team {
.team-col {
flex: 0 0 auto;
width: 20%;
height: 150px;

@media (max-width: 1000px) {
width: 100%;
}
}

.leader {
.leadership {
font-size: 1.2rem;
padding: 5px 0;

@media (max-width: 1000px) {
padding: 5px 0 20px 0;
}
}
.person {
font-size: 1.5rem;
Expand All @@ -158,9 +207,17 @@ header.masthead {
font-size: 0.8rem;
}
}

.collaborator {
height: 150px;

.person {
font-size: 1.3rem;
margin-top: 12%;

@media (max-width: 992px) {
margin-top: 5%;
}
}
.company {
font-size: 0.9rem;
Expand Down Expand Up @@ -194,16 +251,11 @@ aside.section-breaker {
border-bottom: 1px lightgray solid;
margin-bottom: 1rem;


.description {
text-align: left;
}
.link {
.text {
text-align: left;
a {
text-decoration: none;
color: black;
font-style: italic;

@media (max-width: 1000px) {
text-align: center;
}
}
}
Expand All @@ -225,11 +277,7 @@ aside.section-breaker {

section#resources {
.resource {
a {
text-decoration: none;
color: black;
font-style: italic;
}
margin-bottom: 10px;
}
}

Expand Down