#!/bin/bash

mkdir network-notes
cd network-notes

mkdir team
mkdir team/nigel #Nigel Ticknor	NTicknor19@cornellcollege.edu
mkdir team/tyler #Tyler Langtimm	TLangtimm19@cornellcollege.edu
mkdir team/nobuki #Nobuki Harata	NHarata17@cornellcollege.edu
mkdir team/angela #Angela Aley	AAley18@cornellcollege.edu
mkdir team/nam #Nam Phan	NPhan17@cornellcollege.edu
mkdir team/jeremy #Jeremy Novak	JNovak17@cornellcollege.edu
mkdir team/akash #Akash Surti	ASurti17@cornellcollege.edu
mkdir team/joe #Joe Sterchele	JSterchele17@cornellcollege.edu
mkdir team/kyle #Kyle Drum	KDrum18@cornellcollege.edu
mkdir team/ryan #Ryan Conrardy	RConrardy17@cornellcollege.edu
mkdir team/henry #Henry Weeks	HWeeks18@cornellcollege.edu
mkdir team/dot #Dot Carmichael	DCarmichael18@cornellcollege.edu
mkdir team/paul #Paul DeMange	PDeMange19@cornellcollege.edu
mkdir team/salem #Salem Ozaki  SOzaki19@cornellcollege.edu

touch index.html
echo "<!DOCTYPE html>" >> index.html
echo "<html>" >> index.html
echo "<head>" >> index.html
echo "<title>" >> index.html
echo "    CSC317 Computer Networks" >> index.html
echo "</title>" >> index.html
echo "<style>" >> index.html
echo "    .when {" >> index.html
echo "        margin-left: 24px;" >> index.html
echo "        margin-right: 24px;" >> index.html
echo "        margin-top: 24px;" >> index.html
echo "        margin-bottom: 24px;" >> index.html
echo "        padding-left: 8px;" >> index.html
echo "        padding-right: 8px;" >> index.html
echo "        padding-top: 8px;" >> index.html
echo "        padding-bottom: 8px;" >> index.html
echo "        background: #AACC88;" >> index.html
echo "        color: #446688;" >> index.html
echo "    }" >> index.html
echo "</style>" >> index.html
echo "</head>" >> index.html
echo "<body>" >> index.html
echo "    <h1>" >> index.html
echo "        CSC317 Computer Networks" >> index.html
echo "    </h1>" >> index.html
echo "    <h2 class=\"when\">" >> index.html
echo "        Term 2 2016" >> index.html
echo "    </h2>" >> index.html
echo "    <ul>" >> index.html
echo "        <li><a href=\"team/nigel/hello.html\">nigel</a></li>" >> index.html
echo "        <li><a href=\"team/tyler/hello.html\">tyler</a></li>" >> index.html
echo "        <li><a href=\"team/nobuki/hello.html\">nobuki</a></li>" >> index.html
echo "        <li><a href=\"team/angela/hello.html\">angela</a></li>" >> index.html
echo "        <li><a href=\"team/nam/hello.html\">nam</a></li>" >> index.html
echo "        <li><a href=\"team/jeremy/hello.html\">jeremy</a></li>" >> index.html
echo "        <li><a href=\"team/akash/hello.html\">akash</a></li>" >> index.html
echo "        <li><a href=\"team/joe/hello.html\">joe</a></li>" >> index.html
echo "        <li><a href=\"team/kyle/hello.html\">kyle</a></li>" >> index.html
echo "        <li><a href=\"team/ryan/hello.html\">ryan</a></li>" >> index.html
echo "        <li><a href=\"team/henry/hello.html\">henry</a></li>" >> index.html
echo "        <li><a href=\"team/dot/hello.html\">dot</a></li>" >> index.html
echo "        <li><a href=\"team/paul/hello.html\">paul</a></li>" >> index.html
echo "        <li><a href=\"team/salem/hello.html\">salem</a></li>" >> index.html
echo "    </ul>" >> index.html
echo "</body>" >> index.html
echo "</html>" >> index.html

touch hello.html
echo "<!DOCTYPE html>" >> hello.html
echo "<html>" >> hello.html
echo "<head>" >> hello.html
echo "<title>" >> hello.html
echo "    Hello" >> hello.html
echo "</title>" >> hello.html
echo "</head>" >> hello.html
echo "<body>" >> hello.html
echo "    <h1>" >> hello.html
echo "        Your Name" >> hello.html
echo "    </h1>" >> hello.html
echo "    <p>" >> hello.html
echo "        Write a sentence or two to introduce yourself." >> hello.html
echo "    </p>" >> hello.html
echo "</body>" >> hello.html
echo "</html>" >> hello.html

cp hello.html team/nigel
cp hello.html team/tyler
cp hello.html team/nobuki
cp hello.html team/angela
cp hello.html team/nam
cp hello.html team/jeremy
cp hello.html team/akash
cp hello.html team/joe
cp hello.html team/kyle
cp hello.html team/ryan
cp hello.html team/henry
cp hello.html team/dot
cp hello.html team/paul
cp hello.html team/salem

rm hello.html

git init
git add index.html
git add team/nigel/hello.html
git add team/tyler/hello.html
git add team/nobuki/hello.html
git add team/angela/hello.html
git add team/nam/hello.html
git add team/jeremy/hello.html
git add team/akash/hello.html
git add team/joe/hello.html
git add team/kyle/hello.html
git add team/ryan/hello.html
git add team/henry/hello.html
git add team/dot/hello.html
git add team/paul/hello.html
git add team/salem/hello.html
git commit -m "begin new project"
