Skip to content
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
584 changes: 584 additions & 0 deletions media/pgus/css/navigation.css

Large diffs are not rendered by default.

727 changes: 164 additions & 563 deletions media/pgus/css/pgus.css

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions media/pgus/js/navigation.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Wait for DOM to be ready before running navigation code
document.addEventListener("DOMContentLoaded", function () {
// add classes for mobile navigation toggling
var CSbody = document.querySelector("body");
const CSnavbarMenu = document.querySelector("#cs-navigation");
const CShamburgerMenu = document.querySelector("#cs-navigation .cs-toggle");

// Check if navigation elements exist before adding event listeners
if (CShamburgerMenu && CSnavbarMenu && CSbody) {
CShamburgerMenu.addEventListener("click", function () {
CShamburgerMenu.classList.toggle("cs-active");
CSnavbarMenu.classList.toggle("cs-active");
CSbody.classList.toggle("cs-open");
// run the function to check the aria-expanded value
ariaExpanded();
});
}

// checks the value of aria expanded on the cs-ul and changes it accordingly whether it is expanded or not
function ariaExpanded() {
const csUL = document.querySelector("#cs-expanded");
if (csUL) {
const csExpanded = csUL.getAttribute("aria-expanded");

if (csExpanded === "false") {
csUL.setAttribute("aria-expanded", "true");
} else {
csUL.setAttribute("aria-expanded", "false");
}
}
}

// mobile nav toggle code
const dropDowns = Array.from(
document.querySelectorAll("#cs-navigation .cs-dropdown")
);
for (const item of dropDowns) {
const onClick = () => {
item.classList.toggle("cs-active");
};
item.addEventListener("click", onClick);
}
});
43 changes: 0 additions & 43 deletions media/pgus/js/pgus.js
Original file line number Diff line number Diff line change
@@ -1,43 +0,0 @@
// Wait for DOM to be ready before running navigation code
document.addEventListener("DOMContentLoaded", function() {
// add classes for mobile navigation toggling
var CSbody = document.querySelector("body");
const CSnavbarMenu = document.querySelector("#cs-navigation");
const CShamburgerMenu = document.querySelector("#cs-navigation .cs-toggle");

// Check if navigation elements exist before adding event listeners
if (CShamburgerMenu && CSnavbarMenu && CSbody) {
CShamburgerMenu.addEventListener("click", function () {
CShamburgerMenu.classList.toggle("cs-active");
CSnavbarMenu.classList.toggle("cs-active");
CSbody.classList.toggle("cs-open");
// run the function to check the aria-expanded value
ariaExpanded();
});
}

// checks the value of aria expanded on the cs-ul and changes it accordingly whether it is expanded or not
function ariaExpanded() {
const csUL = document.querySelector("#cs-expanded");
if (csUL) {
const csExpanded = csUL.getAttribute("aria-expanded");

if (csExpanded === "false") {
csUL.setAttribute("aria-expanded", "true");
} else {
csUL.setAttribute("aria-expanded", "false");
}
}
}

// mobile nav toggle code
const dropDowns = Array.from(
document.querySelectorAll("#cs-navigation .cs-dropdown")
);
for (const item of dropDowns) {
const onClick = () => {
item.classList.toggle("cs-active");
};
item.addEventListener("click", onClick);
}
});
27 changes: 27 additions & 0 deletions template/base_new.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE HTML>
<html lang="en">

<head>
<meta charset="utf-8">
<title>PgUS - {%block title%}{%endblock%}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- <link rel="stylesheet" href="/media/pgus/css/main.css" /> -->
<link rel="stylesheet" href="/media/pgus/css/pgus.css" />
<link rel="stylesheet" href="/media/pgus/css/navigation.css" />
<script defer src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script defer src="/media/pgus/js/pgus.js"></script>
<script defer src="/media/pgus/js/navigation.js"></script>
{%block extrahead%}{%endblock%}
</head>

<body>

<!-- Header -->
{%include "pieces/navigation.html"%}
{%block heroblock%}{%endblock%}
{%block layoutblock%}{%endblock%}
{%include 'pieces/footer.html'%}
</body>

</html>
2 changes: 2 additions & 0 deletions template/base_pgus.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="/media/pgus/css/main.css" />
<link rel="stylesheet" href="/media/pgus/css/pgus.css" />
<link rel="stylesheet" href="/media/pgus/css/navigation.css" />
<script defer src="/media/pgus/js/jquery.min.js"></script>
<script defer src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- <script defer src="/media/pgus/js/jquery.matchHeight-min.js"></script> -->
<script defer src="/media/pgus/js/pgus.js"></script>
<script defer src="/media/pgus/js/navigation.js"></script>
{%block extrahead%}{%endblock%}
</head>

Expand Down
90 changes: 34 additions & 56 deletions template/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%extends "base_pgus.html" %}
{%extends "base_new.html" %}
{%load pgmarkdown%}
{%block title%}Welcome{%endblock%}

Expand All @@ -17,85 +17,63 @@ <h1>United States PostgreSQL Association</h1>

{%block layoutblock%}
<!-- One -->
<section id="one" class="wrapper">
<div class="row">
<div class="col-md-4">
<header>
<h3 class="top2">Who We Are</h3>
</header>
<main class="container">
<section id="introduction" class="pg-row">
<div>
<h2>Who We Are</h2>
<p>
The United States PostgreSQL Association, affectionately known as PgUS, is a IRS 501(c)(3) public charity. Our
purpose is
to support the growth and education of PostgreSQL, the world's most advanced open source database.
</p>
<footer>
<a href="/aboutus" class="button special">More</a>
</footer>
<a href="/aboutus">More</a>
</div>
<div class="col-md-4">
<header>
<h3 class="top1">Membership</h3>
</header>
<div>
<h2>Membership</h2>
<p>
Are you interested in PostgreSQL growth and education? Do you support
PostgreSQL and want to help? By becoming a member you will be helping to support our mission
and be able to influence what we do.
</p>
<footer>
<a href="/becomeamember" class="button special">More</a>
</footer>
<a href="/becomeamember">More</a>
</div>
<div class="col-md-4">
<header>
<h3 class="top3">Upcoming Events</h3>
</header>
<div>
<h2>Upcoming Events</h2>
<ul>
{%for event in events %}
<li><a href="/events/{{event.urlname}}">{{event.conferencename}}</a></li>
{%endfor%}
</ul>
<footer>
<a href="/events" class="button special">More</a>
</footer>
<a href="/events">More</a>
</div>
</div>
</div>
</section>
</section>

<!-- News -->
<section id="three" class="wrapper special style3">
<header class="text-center">
<h2>News</h2>
<p>
Latest PgUS News
</p>
</header>
<div class="row">
<div class="col-md-6">
<!-- News -->
<section id="news">
<!-- TODO: Check 'header' semantics -->
<header>
<h2>News</h2>
<h3>
Latest PgUS News
</h3>
</header>
<div class="pg-row">
<article>
<header>
<h3>{{news.0.title}}</h3>
</header>
<p>
{{news.0.summary|markdown}}
</p>
</article>
</div>
<div class="col-md-6">
<article>
<header>
<h3>Recent News Posts</h3>
</header>
<ul class="alt">
<ul>
{%for newsitem in news %}
<li>{{newsitem.summary|markdown}}</li>
<li>
<h3><a href="{{newsitem.itemlink}}">{{newsitem.title}}</a></h3>
<div class="content">
{{newsitem.summary|markdown}}
</div>
<a class="more-link" href="{{newsitem.itemlink}}">Read More</a>
</li>
{%endfor%}
</ul>
</article>
</div>
</div>
</div>
</section>
</section>

{%include "pieces/team_info.html"%}
{%include "pieces/team_info.html"%}
</main>
{%endblock%}
7 changes: 4 additions & 3 deletions template/pages/diversity.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,11 @@ <h3>Diversity Scholarship</h3>
<h3>Diversity Committee</h3>
<p>
Quan-ha Le<br>
Samay Sharma<br>
Stacey Haysler<br>
Sunita Inderjit<br>
Emma Saroyan<br>
Ezra Yendau<br>
Selenge Tulga<br>
Jay Miller<br>
Bob Pacheco<br>
</p>
</div>
<div class="col-md-6">
Expand Down
16 changes: 16 additions & 0 deletions template/pieces/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,22 @@
order: 1;
justify-content: start;
}

.fa-twitter {
color: #55acee;
}

.fa-bluesky {
color: #87CEEB;
}

.fa-mastodon {
color: #6364FF;
}

.fa-github {
color: #333;
}
}
}
</style>
Expand Down
Loading