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

BrickHack 8 Site - Initial Release #1251

Merged
merged 44 commits into from
Jan 2, 2022
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
c0393c8
swapping files and start gutting bh7 copy
sjmiller7 Oct 29, 2021
cc8f2ba
more gutting of css
sjmiller7 Oct 30, 2021
a2d5ec5
style refactor
sjmiller7 Nov 6, 2021
db7a49e
logo update
sjmiller7 Nov 6, 2021
3137a45
design fixes
sjmiller7 Nov 13, 2021
0edded3
mobile navbar
sjmiller7 Nov 15, 2021
1566c96
design fixes
sjmiller7 Nov 16, 2021
41be40f
social cards being funky
sjmiller7 Nov 16, 2021
7598852
editing social card resolution
sjmiller7 Nov 16, 2021
e96e526
adjusting social card
sjmiller7 Nov 16, 2021
6048211
favicon swap
sjmiller7 Nov 18, 2021
1498c75
nav underline
sjmiller7 Nov 22, 2021
f9cd699
outline color fix
sjmiller7 Nov 22, 2021
4243544
remove login
sjmiller7 Nov 22, 2021
ea5b842
fixes
sjmiller7 Nov 27, 2021
75f57c6
comment fixes
sjmiller7 Nov 27, 2021
d980e9a
contact first attempt
sjmiller7 Dec 3, 2021
fef9a7b
changing social links
sjmiller7 Dec 3, 2021
6c75a58
Revert "comment fixes"
sjmiller7 Dec 3, 2021
e148d11
Revert "Revert "comment fixes""
sjmiller7 Dec 3, 2021
cd1afe6
Revert "changing social links"
sjmiller7 Dec 3, 2021
6c697af
Revert "contact first attempt"
sjmiller7 Dec 3, 2021
bd5b7a9
BrickHack 8 Site - Hero Section (#1253)
sjmiller7 Dec 20, 2021
de567c3
BrickHack 8 Site - About Section (#1254)
sjmiller7 Dec 20, 2021
9ca2f56
BrickHack 8 Site - FAQ Section (#1252)
sjmiller7 Dec 20, 2021
9afb42f
BrickHack 8 Site - Contact & Footer (#1256)
sjmiller7 Dec 20, 2021
adc3a88
design + js fixes
sjmiller7 Dec 23, 2021
703dd85
design fixes
sjmiller7 Dec 24, 2021
657346b
trying to hide play button
sjmiller7 Dec 24, 2021
8626537
trying to hide play button 2
sjmiller7 Dec 24, 2021
3d81acd
trying to hide play button 3
sjmiller7 Dec 24, 2021
9b590fc
fixing faq ricky
sjmiller7 Dec 25, 2021
18d688a
fixing mobile grayout opacity
sjmiller7 Dec 27, 2021
9bf593e
hiding mlh banner
sjmiller7 Dec 28, 2021
c848e97
copyright date
sjmiller7 Dec 28, 2021
8774a65
updating stats
sjmiller7 Dec 30, 2021
4b95b5b
prepping for open applications
sjmiller7 Dec 30, 2021
d8a2349
content fixes for chris
sjmiller7 Jan 1, 2022
0ab9235
spelling error
sjmiller7 Jan 1, 2022
2999df4
fixing spelling error
sjmiller7 Jan 1, 2022
63b07f1
fixing faq padding
sjmiller7 Jan 2, 2022
7bf1873
hero content adjustments
sjmiller7 Jan 2, 2022
b05284a
hero content addition
sjmiller7 Jan 2, 2022
7d455d3
centering hero on mobile
sjmiller7 Jan 2, 2022
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
Binary file removed assets/bh8/adobesvg.gif
Binary file not shown.
Binary file removed assets/bh8/bh8_social_cards.png
Binary file not shown.
Binary file removed assets/bh8/hackerpowered.gif
Binary file not shown.
50 changes: 50 additions & 0 deletions assets/bh8/logo.svg
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 assets/bh8/macmade-blkwtbrdrspin.gif
Binary file not shown.
Binary file modified assets/social_cards.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
240 changes: 197 additions & 43 deletions index.html

Large diffs are not rendered by default.

151 changes: 67 additions & 84 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,102 +1,85 @@
import './sass/index.scss'

import { AniX } from 'anix'

const $ = require('jquery')
window.$ = window.jQuery = $
require("jquery-ui-bundle")
import '@fortawesome/fontawesome-free/css/all.css'
import $ from 'jquery'

// Hiring message
const hiringMessage = `Hey, you.
You’re finally awake.
You were trying to see the code, right?
Walked right into that hiring message, same as us.
If you’d like to work on this website and other cool projects with hackathons, send an email over to [email protected]!`
If you’d like to work on hackathon-related projects, check out https://brickhack.io/club!`
sjmiller7 marked this conversation as resolved.
Show resolved Hide resolved

console.log(hiringMessage)
console.log(hiringMessage);

// Comment generated via js instead of directly in HTML so the hiring message text is only in one place
const comment = document.createComment("\n"+hiringMessage.toString()+"\n")
document.insertBefore(comment, document.firstChild)

// Secret messages
const revertDuration = 300
var messageIndex = 0
const messages = [
"Like, really, nothing to see here.",
"Hey. Stop looking.",
"Hey. Stop looking.",
"...",
"I'm warning you...",
"There's really nothing.",
"There's really nothing.",
"There's really nothing.",
"...",
"Wow, you just don't want to believe me.",
"What have I ever done to you?!",
"...",
"Oh, right...",
"...the bricks...",
"...",
"Yeah, that was... my bad.",
"Life's hard as a rockstar, you know?",
"I'm really a brickstar, actually.",
"... leader of ThunderClan? I don't get the reference.",
"Have you heard my new song?",
"It goes like,",
"I'm bringin' Ricky Back! (yeah)",
"(barrrw) Them other boys don't know--",
"I'M BRINGIN' RICKY BACK (yeah)",
"It's a bop, if I do say so myself.",
"Oh, by the way Dave,",
"We're contacting you about your car's extended warrany...",
"Haha, just kidding.",
"I have some brick business to get back to.",
"You know how it is.",
"I do have a tip for you though.",
"When you sign up for BrickHack...",
"...make sure to ask if you need your own bricks.",
"Heh. Gets them every year.",
"Well, see ya!",
"(the wall is quiet.)",
"(it fills you with determination.)",
""
]
const comment = document.createComment("\n"+hiringMessage.toString()+"\n");
sjmiller7 marked this conversation as resolved.
Show resolved Hide resolved
document.insertBefore(comment, document.firstChild);

$(document).ready(function() {
$(".window").draggable({
cursor: "grab",
revert: true,
revertDuration: revertDuration,
handle: ".title-bar",
// Adjust scale factor of page to match mouse dragging position
drag: function(event, ui) {
ui.position.top = Math.round(ui.position.top / 1.5)
ui.position.left = Math.round(ui.position.left / 1.5)
}
})
})

$(".window-control").click(function() {
$(".window").css({"visibility":"hidden"})
})
// Nav highlighting on scroll
import ActiveMenuLink from "active-menu-link";

$(".title-bar").mouseup(function() {
// Don't show the message before the window returns to its original position
setTimeout(function() {
const offset = $(".window").position()
updateSecretMessage(offset)
}, revertDuration)
})
let options = {
itemTag: "",
scrollOffset: -90, // nav height
scrollDuration: 1000,
ease: "out-quart",
showHash: false,
};

function updateSecretMessage(offset) {
// TODO: Make sure the window was dragged enough to see the message
// so the user has less chance of missing it before we refresh.
new ActiveMenuLink(".navbar-items", options);

if (messageIndex >= messages.length) {
return
// Navbar functionality
$(document).on('click', '#toggle', function() {
if ($('nav').hasClass('show-nav')) {
$('nav').removeClass('show-nav');
$('#toggle').removeClass('fa-times');
$('#toggle').addClass('fa-bars');
$('.mobile-grayout').removeClass("show-gray");
} else {
$('nav').addClass('show-nav');
$('#toggle').removeClass('fa-bars');
$('#toggle').addClass('fa-times');
$('.mobile-grayout').addClass("show-gray");
}
});

// Closing the navbar when a navigation link is clicked
$(document).on('click', '.link', function() {
$('nav').removeClass('show-nav');
$('#toggle').removeClass('fa-times');
$('#toggle').addClass('fa-bars');
$('.mobile-grayout').removeClass("show-gray");
});

// Closing the navbar when outside of the nav is clicked
$(document).on('click', '.mobile-grayout', function() {
$('nav').removeClass('show-nav');
$('#toggle').removeClass('fa-times');
$('#toggle').addClass('fa-bars');
$('.mobile-grayout').removeClass("show-gray");
});

// FAQ Cards hide/show
let card = document.getElementsByClassName("card");
for (let i = 0; i < card.length; i++) {
let accordion = card[i].getElementsByClassName("accordion-header")[0];
// Click should only work on accordion-header of each card
accordion.addEventListener("click", function() {

card[i].classList.toggle("active");

let panel = card[i].getElementsByClassName("panel")[0];
let fa = this.getElementsByTagName("i")[0];

// Toggle panel and plus/minus on click of header
if ($(card[i]).hasClass("active")) {
$(panel).slideDown(200);
} else {
$(panel).slideUp(200);
}

$("#secret-message").text(messages[messageIndex])
messageIndex++
$(fa).toggleClass("fa-plus");
$(fa).toggleClass("fa-minus");
});
}
Binary file modified resources/favicon/android-chrome-192x192.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 modified resources/favicon/android-chrome-512x512.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 modified resources/favicon/apple-touch-icon.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 modified resources/favicon/favicon-16x16.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 modified resources/favicon/favicon-32x32.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 modified resources/favicon/favicon.ico
Binary file not shown.
Loading