add form json

This commit is contained in:
William Zhang 2018-01-31 15:36:55 -05:00
parent e199ec8894
commit 52f340f4a6
6 changed files with 42 additions and 17 deletions

10
_data/forms/events.json Normal file
View File

@ -0,0 +1,10 @@
{
"username": "events",
"name": "Events",
"items": [
{
"name": "February Frenzy Volleyball Tournament 2018",
"link": "https://docs.google.com/document/d/1rjzg8tW_NH52lUESdEZMJRsc2Bd-lntKaFYqZ1srmOQ/edit"
}
]
}

View File

@ -1,9 +0,0 @@
{
"name": "Freshman Elections",
"items": [
{
"name": "",
"link": ""
}
]
}

10
_data/forms/general.json Normal file
View File

@ -0,0 +1,10 @@
{
"username": "general",
"name": "General",
"items": [
{
"name": "Feedback and Suggestions",
"link": "https://docs.google.com/forms/d/18KRo3RritoN6RddNvI-l2zZs1h_1mmVWWgRQGOk2vvQ/viewform"
}
]
}

View File

@ -153,6 +153,7 @@ span>a:active {
#wrapper:before {
position: absolute;
z-index: -1;
width: 100%;
min-height: 100vh;
top: 0vh;

View File

@ -1,19 +1,37 @@
---
permalink: /forms
sections: ["general", "events", "elections"]
---
<!DOCTYPE html>
<html>
<head>
<link href="css/about.css" rel="stylesheet" />
{% include head.html %}
<title>Forms - TJSGA</title>
<title>About - TJSGA</title>
</head>
<body>
{% include header.html %}
<div id="wrapper" class="fluid">
<section id="links">
<section id="resources">
{% for form_name in site.data.forms %}
{% assign name = page.sections[forloop.index0] %}
{% assign form = site.data.forms[name] %}
<div class="list">
<h2>{{ form.name }}</h2>
<ul>
{% for item in form.items %}
<li>
<a href="{{ item.link }}">
{{ item.name }}
</a>
</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</section>
</div>
{% include footer.html %}

View File

@ -14,13 +14,8 @@ permalink: /resources
<div id="wrapper" class="fluid">
<section id="resources">
<div class="list">
<h2>General Resources</h2>
<h2>General</h2>
<ul>
<li>
<a href="https://docs.google.com/forms/d/18KRo3RritoN6RddNvI-l2zZs1h_1mmVWWgRQGOk2vvQ/viewform">
SGA Feedback and Suggestion Google Form
</a>
</li>
<li>
<a href="/uploads/3/8/0/7/38079437/wi-fi_faq_-_june_2015.pdf" target="_blank">
TJ Wi-Fi FAQs: FCPSonboard