Compare commits

..

No commits in common. "a867b605156f665c68df6153cc9ed7e47acf6bd4" and "cc2f53a1d10706323203d8c97b296afe2cf3f93f" have entirely different histories.

3 changed files with 47 additions and 116 deletions

View File

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

View File

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

View File

@ -1,71 +1,19 @@
// Some quick scripting to select a random background on page load // Some quick scripting to select a random background on page load
const BACKGROUND_IMAGES = [ const BACKGROUND_IMAGES = [
{ "https://cdn.enp.one/img/backgrounds/cl-photo-allis.jpg",
url: "https://cdn.enp.one/img/backgrounds/cl-photo-allis.jpg", "https://cdn.enp.one/img/backgrounds/cl-photo-boston.jpg",
description: "Allis Engine #4, Metropolitan Waterworks Museum", "https://cdn.enp.one/img/backgrounds/cl-photo-denver.jpg",
source: "" "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",
url: "https://cdn.enp.one/img/backgrounds/cl-photo-boston.jpg", "https://cdn.enp.one/img/backgrounds/cl-photo-letchworth.jpg",
description: "Charles River Basin and Skyline", "https://cdn.enp.one/img/backgrounds/cl-photo-library.jpg",
source: "" "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",
url: "https://cdn.enp.one/img/backgrounds/cl-photo-denver.jpg", "https://cdn.enp.one/img/backgrounds/cl-photo-rt112.jpg",
description: "Mile-High City Skyline", "https://cdn.enp.one/img/backgrounds/cl-photo-startrek.jpg",
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: ""
}
]; ];
@ -73,23 +21,13 @@ function selectBackground() {
let max = BACKGROUND_IMAGES.length - 1 let max = BACKGROUND_IMAGES.length - 1
let min = 0; let min = 0;
index = Math.round(Math.random() * (max - min) + min); index = Math.round(Math.random() * (max - min) + min);
console.log("Loading background #" + index + ": " + BACKGROUND_IMAGES[index].url); console.log("Loading background #" + index + ": " + BACKGROUND_IMAGES[index]);
return BACKGROUND_IMAGES[index]; return BACKGROUND_IMAGES[index];
} }
function setBackground() { function setBackground() {
let selected = selectBackground()
document.getElementById( document.getElementById(
"background-image" "background-image"
).style.backgroundImage = "url(" + selected.url + ")"; ).style.backgroundImage = "url(" + selectBackground() + ")";
document.getElementById(
"background-info-link"
).innerHTML = selected.description;
document.getElementById(
"background-info-link"
).href = selected.source;
} }