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

Some redesigning with Eddie #64

Draft
wants to merge 16 commits into
base: master
Choose a base branch
from
Draft
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
3 changes: 0 additions & 3 deletions config.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# bootstrap or bootstrap-red
set :theme, 'bootstrap-red'

# Assets
set :css_dir, 'assets/stylesheets'
set :js_dir, 'assets/javascripts'
Expand Down
10 changes: 5 additions & 5 deletions data/sponsors.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- name: 3M
url: https://www.3m.com
image: assets/images/brands/3MLogo.png
image: assets/images/brands/3M.png
about: >
The 3M Company, is a United States multinational conglomerate corporation based in
Maplewood, Minnesota, United States. 3M has operations in more than 65 countries –
Expand Down Expand Up @@ -34,7 +34,7 @@

- name: Partnership Plan
url: https://www.partnershipplan.org/
image: assets/images/brands/PartnershipPlanLogo.png
image: assets/images/brands/partnershipPlan.png
about: >
The Partnership Plan is a non-profit organization dedicated to enhancing learning opportunities through grants given to teachers and organizations.

Expand Down Expand Up @@ -64,7 +64,7 @@
#
# - name: Polaris
# url: https://www.polaris.com/en-us/home.aspx
# image: assets/images/brands/polaris_logo.jpg
# image: assets/images/brands/polaris.jpg
# about: >
# Polaris is an American manufacturer of snowmobiles, ATVs, and neighborhood electric vehicles,
# with a firm belief in the ethics and value of their employees. Polaris endeavors to manufacture
Expand All @@ -73,14 +73,14 @@

# - name: United Hardware
# url: https://unitedhardware.com/Default.aspx
# image: assets/images/brands/hardware_logo.jpg
# image: assets/images/brands/hardwareHank.jpg
# about: >
# United Hardware is a distributing company located in Plymoth, MN. They supply hardware items to about
# 610 businesses. Most of their supplies goes Hardware Hank stores, which is owned by United Hardware.

# - name: Vistatek
# url: https://www.vistatek.com/
# image: assets/images/brands/VistaTek_logo.jpg
# image: assets/images/brands/vistaTek.jpg
# about: >
# VistaTek is a family-owned manufacturing company located in Stillwater, MN. The company’s state-of-the-art
# software and in-house technologies allow it to efficiently assist customers with small to large projects.
Expand Down
3 changes: 3 additions & 0 deletions data/teams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
image: assets/images/teams/2022.jpg
leadership: >
Captain - Addie Foote<br>
Machining Lead - Vincent Ramirez<br>
Programming Lead - Addie Foote<br>
Business Lead - Claire Abbott<br>
Electronics Lead - Eddie Roots<br>
challenge: Rapid React
about:
Expand Down
7 changes: 3 additions & 4 deletions source/404.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
<div class="col-lg-12">
<div class="page-header">
<div class="text-center">
<h2>
Page not found
</h2>
<h2>Page not found</h2>
</div>
</div>
</div>
Expand All @@ -15,7 +13,8 @@
<div class="col-lg-12">
<div class="text-center">
<p>
The page you have request cannot be found. You can navigate to another page using the navigation bar above, or return to our <a href="./">homepage</a>.
The page you have request cannot be found.
You can navigate to another page using the navigation bar above, or return to our <a href="./">homepage</a>.
</p>
</div>
</div>
Expand Down
Binary file added source/assets/images/brands/armada.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/assets/images/brands/armadaWhite.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed source/assets/images/brands/first-logo.png
Binary file not shown.
46 changes: 17 additions & 29 deletions source/assets/javascripts/main.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
$("body").scrollspy({
target: "#nav",
offset: 40,
});

$(".carousel").each(function () {
var speed = 5000;
if ($(this).data("rel-speed") != null) {
speed = $(this).data("rel-speed");
}
$(this).carousel({
interval: speed,
});
});

$("a").click(function () {
let href = $.attr(this, "href");
// Fix animation for anchors to IDs on the same page, need this because of base tag
if (href.includes("#")) {
href = href.substring(href.indexOf("#"));
}
$("html, body").animate(
{
scrollTop: $(href).offset().top,
},
500,
);
return false;
});
// Fix scrolling for anchors to IDs on the same page, need this because the base tag causes the page to be reloaded
document.querySelectorAll("a").forEach((a) =>
a.addEventListener("click", function (e) {
let href = this.href;
let currentPath = document.location.href;
// Paths end with slashes in prod but not locally
if (currentPath.endsWith("/")) {
currentPath = currentPath.substring(0, currentPath.length - 1);
}
// Check if it points to the same page we're on
if (href.includes("#") && href.startsWith(currentPath)) {
href = href.substring(href.indexOf("#") + 1);
document.getElementById(href).scrollIntoView({ behavior: "smooth" });
e.preventDefault(); // Don't reload page
}
}),
);
Loading