Add more everything

This commit is contained in:
Austen Adler 2022-04-11 00:30:58 -04:00
parent b9bd0eefc5
commit 0c4a243911
8 changed files with 286 additions and 180 deletions

View File

@ -11,3 +11,4 @@
* [ ] Figure out contact info
* [ ] Font?
* [ ] Make it so links are underlined when not hovered
* [ ] All images with `Hawk` should be attributed

View File

@ -21,17 +21,19 @@ cp -vr css/ images/ build/
render_image() {
local SIZE="${1}" FILENAME="${2}" EXTRA_OPTIONS=(-auto-orient)
EXTENSION="${FILENAME##*.}"
shift 2
if [[ "${1}" == "--square" ]]; then
if [[ "${1-}" == "--square" ]]; then
EXTRA_OPTIONS+=(-background none -gravity center -extent "${SIZE}")
fi
convert -resize "${SIZE}^" "${EXTRA_OPTIONS[@]}" "orig/${FILENAME}" "build/images/${FILENAME}"
convert -resize "${SIZE}^" "${EXTRA_OPTIONS[@]}" "orig/${FILENAME}" "build/images/${FILENAME%.*}-${SIZE}.${EXTENSION}"
}
render_image 200x200 "5._Elementary_GLOBE_Climate_Book_Cover.jpg" --square
render_image 200x200 "Diane_Student_Scammon_Bay.png" --square
render_image 200x200 "earth-small.png" --square
render_image 1000x1000 "earth-huge.png" --square
render_image 1000x1000 "Diane_Student_Scammon_Bay.png"
echo "Stripping metadata"
exiftool -overwrite_original -all= -- build/images/*.*

View File

@ -1,3 +1,13 @@
.left-align {
text-align: left;
}
img.thumbnail {
border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
}
img.big {
width: 100%;
}

View File

@ -1,22 +1,48 @@
@import url(http://fonts.googleapis.com/css?family=Abel);
/*@import url(http://fonts.googleapis.com/css?family=Abel);*/
body { background-color:#fefdfb; color: #555; font-family: 'Abel', sans-serif; font-size: 14px; font-weight:normal;margin: 0; }
a:link, a:visited, a:active{ color:inherit; text-decoration: none; }
a:hover {color: #FC436B; text-decoration:underline; }
img {padding:5px; border-radius: 50%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;}
body {
background-color: #fefdfb;
color: #555;
font-family: 'Abel', sans-serif;
font-size: 14px;
font-weight: normal;
margin: 0;
}
.icon, .hide {font-size:20px;}
.right {text-align:right; }
.hide {display: none;}
a:link, a:visited, a:active {
color: inherit;
/*text-decoration: none;*/
}
a:hover {
color: #FC436B;
text-decoration: underline;
}
img {
padding: 5px;
}
.icon, .hide {
font-size: 20px;
}
.right {
text-align: right;
}
.hide {
display: none;
}
#menu {
width: 100%;
min-height: 35px;
background-color: /*#01dddd #B61B82 #03D7CB*/ green;
background-color: /*#01dddd #B61B82 #03D7CB*/
green;
position: fixed;
top:0; left:0;
top: 0;
left: 0;
}
#menu a {
@ -52,7 +78,6 @@ ul#topnav li {
vertical-align: middle;
}
ul#topnav li a {
display: block;
padding: 4px 0px;
@ -69,7 +94,6 @@ ul#topnav li a {
margin: auto;
}
.section {
width: 62.5%;
border-top: 1px solid #eee;
@ -114,12 +138,10 @@ ul#topnav li a {
line-height: 200%;
}
.col {
display: table-cell;
}
.col ul#sub {
float: right;
padding: 0;
@ -189,53 +211,87 @@ ul#bottomnav li li {
line-height: 100%;
}
#show-menu {display: none;}
.responsive { background-color:inherit; color:#fff; text-align:left; font-weight:normal; font-size:1.5em; padding: 0; position:absolute; top:10%; left:5%; display:none; }
#show-menu {
display: none;
}
.responsive {
background-color: inherit;
color: #fff;
text-align: left;
font-weight: normal;
font-size: 1.5em;
padding: 0;
position: absolute;
top: 10%;
left: 5%;
display: none;
}
@media screen and (max-width: 700px) {
/* menu */
ul#topnav {display:none;}
.hide, .responsive { display:block;}
.icon { display:none;}
.logo { position:absolute; top:10%; right:50%;}
.search {position:absolute; top:10%; right:5%; }
#show-menu:checked ~ ul#topnav {display: block; position: absolute; top:100%; width:100%; margin:0; overflow:visible; }
ul#topnav li { display: block; text-align:left; margin:0 0 1px -15%; background-color:#FC436B;}
ul#topnav li a { padding-left:20px;}
ul#topnav {
display: none;
}
.hide, .responsive {
display: block;
}
.icon {
display: none;
}
.logo {
position: absolute;
top: 10%;
right: 50%;
}
.search {
position: absolute;
top: 10%;
right: 5%;
}
#show-menu:checked~ul#topnav {
display: block;
position: absolute;
top: 100%;
width: 100%;
margin: 0;
overflow: visible;
}
ul#topnav li {
display: block;
text-align: left;
margin: 0 0 1px -15%;
background-color: #FC436B;
}
ul#topnav li a {
padding-left: 20px;
}
.pageitem p {
padding: 0;
}
.col {
float: left;
margin: auto;
width: 100%;
text-align: center;
}
.col ul#sub {
clear: both;
float: none;
margin: auto;
}
.col ul#sub li {
text-align: center;
}
ul#bottomnav {
display: list-item;
list-style-type: none;
}
ul#bottomnav li {
display: block;
text-align: center;
}
#credits p {
text-align: center;
}
}

View File

@ -5,28 +5,28 @@ div.section
div.pageitem
div.col
// a(href="#")
img(src="images/fa.png")
img(src="images/fa.png" alt="Facebook logo")
p Email.
| &#x64;&#x72;&#x2E;&#x64;&#x69;&#x61;&#x6E;&#x65;<span style="display: none"> well hello there &#x2603; :)</span>
| &#x40;
| geocation.com
div.col
a(href="#")
img(src="images/tw.png")
img(src="images/tw.png" alt="Twitter logo")
p Follow.
| We are on Twitter
br
| twitter.com/foo-template
div.col
a(href="#")
img(src="images/in.png")
img(src="images/in.png" alt="Instagram logo")
p Like.
| We are on Instagram
br
| instagram.com/foo-template
div.col
a(href="#")
img(src="images/go.png")
img(src="images/go.png" alt="Google Plus logo")
p +1.
| We are on Google+
br

3
includes/hawk.pug Normal file
View File

@ -0,0 +1,3 @@
br
| Photo courtesy:
a(href="https://ryanhawk.com/") RyanHawk.com

View File

@ -9,17 +9,17 @@ div.section
div.pageitem
div.col
a(href="education.html")
img(src="images/5._Elementary_GLOBE_Climate_Book_Cover.jpg")
img.thumbnail(src="images/5._Elementary_GLOBE_Climate_Book_Cover-200x200.jpg", alt="Book cover for 'What in the World is Happening to Our Climate?'")
br
| Education
div.col
a(href="outreach.html")
img(src="images/Diane_Student_Scammon_Bay.png")
img.thumbnail(src="images/Diane_Student_Scammon_Bay-200x200.png", alt="Diane instructing a student at Scammon Bay, AK")
br
| Outreach
div.col
a(href="community-involvement.html")
img(src="images/earth-small.png")
img.thumbnail(src="images/earth-small-200x200.png", alt="The Earth from space")
br
| Community Involvement

View File

@ -3,9 +3,43 @@ include ../includes/head.pug
div.section
div.pageitem
h2 Outreach
h2 NOAA Teacher at Sea - Scammon Bay, AK
figure
img.big(src="images/Diane_Student_Scammon_Bay-1000x1000.png", alt="Diane instructing a student at Scammon Bay, AK")
figcaption
NOAA Teacher at Sea, Mary Cook, invited Diane Stanitski and John Adler to Scammon Bay, AK in 2017 to teach and interact with her indigenous Yup'ik students. See the highlights of their trip at
a(href="https://ryanhawk.com/noaa-teacher-at-sea-mary") https://ryanhawk.com/noaa-teacher-at-sea-mary
include ../includes/hawk.pug
h2
a(href="https://jason.org/") JASON Learning
p
| Diane was a JASON Host Researcher for Expedition 2: Climate Connections — Drift and Flow in the JASON Learning Curriculum,
a(href="https://jason.org/portfolio_item/climate-seas-of-change/") Climate: Seas of Change
h3
// | JASON Learning (
a(href="https://jason.org/live/") JASON Live Events
// | )
p
| Diane presented
a(href="https://home.edweb.net/webinar/planet20200114/?_ga=2.130302027.510347060.1649016112-644777626.1649016112") Climate Change and Its Impact on the Ocean January 14, 2020
| (Co-hosted by
a(href="https://home.edweb.net/") edWeb.net
| and
a(href="https://jason.org/") JASON Learning
| )
h3 JASON Learning STEM Role Model Q&A
p
| Diane was featured as a STEM role model on February 20, 2014 and described her career and role as a climate scientist (
a(href="https://www.youtube.com/watch?v=lN-flOgkafk&list=PLwR00vai5XqrdNSj7qI3_FWJrFWicu1Vh&index=64") Watch on YouTube
| )
img(src="images/Diane_Student_Scammon_Bay.png")
h3.left-align University Level Courses Taught