Compare commits

...

2 Commits

3 changed files with 116 additions and 47 deletions

View File

@ -46,7 +46,8 @@ a:hover {
padding: 1em;
max-width: 50em;
/* width: 40em; */
max-width: 90%;
background-color: rgba(255, 255, 255, 0.2);
border-style: solid;
border-width: 2px;
@ -55,17 +56,17 @@ a:hover {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
position: absolute;
top: 50%;
top: 20%;
left: 50%;
transform: translate(-50%, -50%);
transform: translate(-50%, 0);
z-index: 10;
}
#logo {
margin: auto;
margin-top: -10em;
max-width: 50%;
min-width: 30%;
margin-top: -5em;
max-width: 60%;
width: 50%;
display: block;
border-style: solid;
border-color: rgba(255, 255, 255, 0);
@ -127,6 +128,17 @@ ul.buttons li {
0px 0px 7px #f77737;
}
#background-info {
text-align: right;
font-size: 0.85em;
padding: 0.75em;
position: fixed;
bottom: 0;
right: 0;
z-index: 5;
}
.footer {
font-size: 0.9em;
}

View File

@ -29,35 +29,24 @@
<h1>AllAroundHere</h1>
<p>
<span class="tape-over">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</span>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis
nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</p>
<ul class="buttons">
<li>
<a class="button-youtube" href="https://www.youtube.com/channel/UCnJum8qCKlz36SzSsSeZy1w">
<i class="fab fa-youtube"></i>
Youtube
</a>
</li>
<li>
<a class="button-instagram" href="https://www.instagram.com/allaroundhere/">
<i class="fab fa-instagram"></i>
Instagram
</a>
</li>
<li>
<a class="button-twitter" href="https://twitter.com/AllAroundHere1">
<i class="fab fa-twitter"></i>
Twitter
</a>
</li>
<li><a class="button-youtube" href="https://www.youtube.com/channel/UCnJum8qCKlz36SzSsSeZy1w">
<i class="fab fa-youtube"></i>&nbsp;Youtube
</li></a>
<li><a class="button-instagram" href="https://www.instagram.com/allaroundhere/">
<i class="fab fa-instagram"></i>&nbsp;Instagram
</li></a>
<li><a class="button-twitter" href="https://twitter.com/enpaul_">
<i class="fab fa-twitter"></i>&nbsp;Twitter
</li></a>
</ul>
<div class="footer">
@ -65,6 +54,12 @@
<a href="https://enpaul.net/" target="_blank">E.N.Paul</a>
</div>
</div>
<div id="background-info">
<a href="" target="_blank" id="background-info-link">
Allis Engine #4, Metropolitan Waterworks Museum
</a>
</div>
</body>
</html>

View File

@ -1,19 +1,71 @@
// Some quick scripting to select a random background on page load
const BACKGROUND_IMAGES = [
"https://cdn.enp.one/img/backgrounds/cl-photo-allis.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-boston.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-denver.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-geese.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-hotel.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-lawrencedam.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-letchworth.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-library.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-lighthouse.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-mbta.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-rockyshore.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-rt112.jpg",
"https://cdn.enp.one/img/backgrounds/cl-photo-startrek.jpg",
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-allis.jpg",
description: "Allis Engine #4, Metropolitan Waterworks Museum",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-boston.jpg",
description: "Charles River Basin and Skyline",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-denver.jpg",
description: "Mile-High City Skyline",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-geese.jpg",
description: "Geese and Goslings on the banks of the Charles River",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-hotel.jpg",
description: "Bay Point Hotel, Lake Winnipesaukee",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-lawrencedam.jpg",
description: "Hydroelectric Dam on the St. Lawrence River",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-letchworth.jpg",
description: "The Middle Falls in Letchworth State Park",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-library.jpg",
description: "Robert W. Woodruff Library at Emory University",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-lighthouse.jpg",
description: "Nubble Lighthouse",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-mbta.jpg",
description: "Old vs New MBTA Green Line",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-rockyshore.jpg",
description: "Icy Stormy Shoreline at Brenton Point",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-rt112.jpg",
description: "Northern end of the Route 112 Scenic Byway",
source: ""
},
{
url: "https://cdn.enp.one/img/backgrounds/cl-photo-startrek.jpg",
description: "Enterprise Engineering Systems at the Star Trek Set Museum",
source: ""
}
];
@ -21,13 +73,23 @@ function selectBackground() {
let max = BACKGROUND_IMAGES.length - 1
let min = 0;
index = Math.round(Math.random() * (max - min) + min);
console.log("Loading background #" + index + ": " + BACKGROUND_IMAGES[index]);
console.log("Loading background #" + index + ": " + BACKGROUND_IMAGES[index].url);
return BACKGROUND_IMAGES[index];
}
function setBackground() {
let selected = selectBackground()
document.getElementById(
"background-image"
).style.backgroundImage = "url(" + selectBackground() + ")";
).style.backgroundImage = "url(" + selected.url + ")";
document.getElementById(
"background-info-link"
).innerHTML = selected.description;
document.getElementById(
"background-info-link"
).href = selected.source;
}