Skip to content

Commit

Permalink
update from cdn.mcalec.dev
Browse files Browse the repository at this point in the history
  • Loading branch information
McAlec1 committed Nov 18, 2024
1 parent 829748c commit 28e0d86
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 220 deletions.
2 changes: 2 additions & 0 deletions _headers
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*
Access-Control-Allow-Origin: *
86 changes: 0 additions & 86 deletions css/navbar.css

This file was deleted.

188 changes: 83 additions & 105 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,120 +1,98 @@
@import url("https://cdn.mcalec.dev/font/lato.min.css");
@import url("https://cdn.mcalec.dev/font/poppins.min.css");
@import url("https://cdn.mcalec.dev/font/roboto.min.css");
@import url(/web/css/font/lato.min.css);
@import url(/web/css/font/poppins.min.css);
@import url(/web/css/font/roboto.min.css);

*{
box-sizing: border-box;
}

body {
min-height: 100vh;
margin: 0;
position: relative;
background-image: url("https://cdn.mcalec.dev/image/jpeg/trees.jpeg");
background-repeat: repeat;
background-attachment: scroll;
background-position: center;
}

h1 {
position: static;
color: white;
text-align: center;
font-family: LatoBold;
font-size: 3em;
}

.main {
background-color: #000;
position: relative;
font-family: Lato;
padding-top: 45vh;
padding-bottom: 45vh;
text-align: center;
color: black;
}

body {
position: relative;
background-color: #000;
}
* {margin: 0;padding: 0;box-sizing: border-box;}
::selection {color: #000; background-color: #fff;}

body::after {
content: '';
display: block;
}
h1 {font-family: LatoBold;}
h1 b {font-family: LatoBold;}
h1 i {font-family: LatoBoldItalic;}
h2 {font-family: LatoRegular;}
h2 b {font-family: LatoBold;}
h2 i {font-family: LatoRegularItalic;}
h3 {font-family: LatoLight;}
h3 b {font-family: LatoRegular;}
h3 i {font-family: LatoLightItalic;}
p {font-family: LatoRegular;}
b {font-family: LatoBold;}
i {font-family: LatoRegularItalic;}

.footer {
background-color: #000;
position: relative;
text-align: center;
font-family: Lato;
display: block;
margin-bottom: 13px;
text-decoration: none;
font-size: medium;
color: #fff;

.navbar {
position: fixed;
top: 0;
width: 100%;
height: 60px;
display: flex;
justify-content: space-between;
align-items: center;
font-family: LatoRegular;
padding-top: 0;
margin-top: 0;
transition: background-color 0.4s ease-in-out;
z-index: 1000;
.site-name {
color: #ddd;
font-size: 1.5rem;
margin-left: 1.5rem;
}
.active {
font-family: LatoBold;
}
ul {
text-align: center;
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: transparent;
display: flex;
gap: 1.5rem;
margin-right: 2rem;
}

li a {
color: white;
text-align: center;
ul li a {
color: #ddd;
text-decoration: none;
font-size: 1.25rem;
transition: color 0.3s ease;
}

li {
display: inline;
ul li a:hover {
color: #999;
}

}

.transparent {background-color: rgba(0, 0, 0, 0);}
.scrolled {background-color: rgba(0, 0, 0, 1);}

button {
font-family: LatoBold;
text-align: center;
height: 50px;
width: 200px;
background-color: White;
border-radius: 150px;
border: 4px solid Black;
}

html, body {
margin: 0px;
margin-top: 0px;
padding-top: 0px;
}

button:hover {
font-family: LatoBold;
color: White;
background-color: Black;
cursor: pointer;
border-radius: 150px;
border: 4px solid White;
}

b {
font-family: LatoBold;
}

i {
font-family: LatoItalic;
.hero {
position: relative;
width: 100%;
height: 100vh;
overflow: hidden;
.bgimage {
height: 100%;
background-image: url('/image/jpeg/trees.jpeg');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
filter: blur(8px);
-webkit-filter: blur(8px);
transform: scale(1.1);
right: 0;
left: 0;
z-index: 1;
}
.bgtext {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #ddd;
font-size: 1.75rem;
font-weight: bold;
text-align: center;
z-index: 2;
}
}

.center {
display: flex;
.content {
padding: 1.5rem;
background-color: #000;
color: #ddd;
text-align: center;
justify-content: center;
align-items: center;
justify-content: center;
place-items: center;
}
}
69 changes: 40 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,39 +1,50 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="web.mcalec.dev" property="og:title" />
<meta content="testing embed description stuff" property="og:description" />
<meta content="https://web.mcalec.dev/" property="og:url" />
<meta content="/image/jpeg/trees.jpeg" property="og:image" />
<meta content="#000" data-react-helmet="true" name="theme-color" />
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>web.mcalec.dev</title>
<link rel="icon" type="image/x-icon" href="https://cdn.mcalec.dev/image/logo/mcalec/mcalec-new.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="/css/navbar.css">
<link rel="stylesheet" href="/css/style.css" />
</head>
<body>
<div>
<div style="position:sticky;top:0;">
<ul class="navbar">
<li><a href="//mcalec.dev">Main Site</a></li>
<li class="active"><a href="index.html"><b>Home</b></a></li>
</ul>
<ul class="navbar-left">
<li><a href="index.html">web.mcalec.dev</a></li>
</ul>
</div>
</div>
<div class="main">
<span><h1>mcalec</h1></span>
<!-- <embed width="620" height="340" wmode="transparent" src="https://www.youtube.com/embed/lgzCxqQUU5g?autoplay=1" frameborder="0" allowfullscreen></embed> -->
<!-- <embed src="sound.mp3" loop="true" autostart="true" width="0" height="0"> -->
</div>

<div class="footer">
<p>web.mcalec.dev © 2024 McAlec</p>
<nav class="navbar transparent" id="navbar">
<div class="site-name">mcalec.dev</div>
<ul>
<li><a href="https://mcalec.dev/license/"><u>License</u></a> | </li>
<li><a href="https://mcalec.dev/tos/"><u>Terms of Service</u></a> | </li>
<li><a href="https://mcalec.dev/privacy-policy/"><u>Privacy</u></a> | </li>
<li><a href="https://mcalec.dev/contact-us/"><u>Contact Me</u></a></li>
<li class="active"><a href="/">Home</a></li>
<li><a href="/about/">About</a></li>
<li><a href="/contact/">Contact</a></li>
<li><a href="/legal/">Legal</a></li>
</ul>
</nav>

<div class="hero" id="home">
<div class="bgimage"></div>
<div class="bgtext"><h1>mcalec</h1></div>
</div>

<div class="content">
<h1>Main Content Section</h1>
<p>This is the main content of the page.</p>
</div>

<script defer>
const navbar = document.getElementById('navbar');

window.addEventListener('scroll', () => {
if (window.scrollY > 0) {
navbar.classList.remove('transparent');
navbar.classList.add('scrolled');
} else {
navbar.classList.add('transparent');
navbar.classList.remove('scrolled');
}
});
</script>
</body>
</html>

0 comments on commit 28e0d86

Please sign in to comment.