Skip to content

Commit

Permalink
advertise update
Browse files Browse the repository at this point in the history
  • Loading branch information
geus-clan committed Oct 23, 2023
1 parent 9d65b28 commit 4273916
Show file tree
Hide file tree
Showing 24 changed files with 2,650 additions and 430 deletions.
35 changes: 35 additions & 0 deletions 404.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
.not-found-container {
width: 100%;
display: flex;
overflow: auto;
min-height: 100vh;
align-items: center;
flex-direction: column;
justify-content: center;
}
.not-found-container1 {
display: flex;
position: relative;
align-items: center;
flex-direction: column;
justify-content: center;
}
.not-found-text1 {
color: rgb(38, 38, 38);
font-size: 252px;
margin-top: -20px;
font-weight: 900;
margin-bottom: -20px;
letter-spacing: -20px;
}
.not-found-container2 {
width: 421px;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
.not-found-text2 {
text-align: center;
font-weight: 400;
}
158 changes: 158 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>404 - Not Found</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<meta property="twitter:card" content="summary_large_image" />

<style data-tag="reset-style-sheet">
html { line-height: 1.15;}body { margin: 0;}* { box-sizing: border-box; border-width: 0; border-style: solid;}p,li,ul,pre,div,h1,h2,h3,h4,h5,h6,figure,blockquote,figcaption { margin: 0; padding: 0;}button { background-color: transparent;}button,input,optgroup,select,textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0;}button,select { text-transform: none;}button,[type="button"],[type="reset"],[type="submit"] { -webkit-appearance: button;}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner { border-style: none; padding: 0;}button:-moz-focus,[type="button"]:-moz-focus,[type="reset"]:-moz-focus,[type="submit"]:-moz-focus { outline: 1px dotted ButtonText;}a { color: inherit; text-decoration: inherit;}input { padding: 2px 4px;}img { display: block;}html { scroll-behavior: smooth }
</style>
<style data-tag="default-style-sheet">
html {
font-family: Merriweather;
font-size: 16px;
}

body {
font-weight: 700;
font-style:normal;
text-decoration: none;
text-transform: uppercase;
letter-spacing: normal;
line-height: 1.3;
color: var(--dl-color-scheme-darkblue);
background-color: var(--dl-color-scheme-white);

}
</style>
<link
rel="shortcut icon"
href="public/ft_favicon.png"
type="icon/png"
sizes="32x32"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital,wght@0,400;1,400&amp;display=swap"
data-tag="font"
/>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&amp;display=swap"
data-tag="font"
/>
<style>
.services-card:hover > div{
background-color: #fff
}
</style>
</head>
<body>
<link rel="stylesheet" href="./style.css" />
<div>
<link href="./404.css" rel="stylesheet" />

<div class="not-found-container">
<h3>OOPS! PAGE NOT FOUND</h3>
<div class="not-found-container1">
<h1 class="not-found-text1">404</h1>
</div>
<div class="not-found-container2">
<h2 class="not-found-text2">
WE ARE SORRY, BUT THE PAGE YOU REQUESTED WAS NOT FOUND
</h2>
</div>
</div>
</div>
<script src="https://unpkg.com/@teleporthq/teleport-custom-scripts"></script>
<script>
window.onload = () => {
const runAllScripts = () => {
initializeAllSliders();
};

const listenForUrlChanges = () => {
let url = location.href;
document.body.addEventListener(
"click",
() => {
requestAnimationFrame(() => {
if (url !== location.href) {
runAllScripts();
url = location.href;
}
});
},
true
);
};

const initializeAllSliders = () => {
const allSliders = document.querySelectorAll('[data-type="slider"]');
allSliders.forEach((slider) => {
initializeSlider(slider);
});
};

const initializeSlider = (slider) => {
const slides = slider.querySelectorAll('[data-type="slide"]');
const middle = Math.ceil(slides.length / 2);
let currentSlide = middle;

const nextSlideBtns = document.querySelectorAll(
'[data-action="nextSlide"]'
);
const previousSlideBtns = document.querySelectorAll(
'[data-action="previousSlide"]'
);

const changeSlide = (slideIndex, action) => {
currentSlide = slideIndex;

switch (action) {
case "next":
slideIndex === slides.length
? (currentSlide = 1)
: currentSlide++;
break;
case "previous":
slideIndex === 1
? (currentSlide = slides.length)
: currentSlide--;
}

const slide = slides[0];
if (!slide) {
console.error("No slides present");
return;
}
const style = window.getComputedStyle(slide);
slideWidth =
parseInt(style.width) +
parseInt(style.marginLeft) +
parseInt(style.marginRight);
const transformValue = -slideWidth * (currentSlide - middle);

slider.style.transform = `translateX(${transformValue}px)`;
};

previousSlideBtns.forEach((btn) => {
btn.addEventListener("click", () =>
changeSlide(currentSlide, "previous")
);
});

nextSlideBtns.forEach((btn) => {
btn.addEventListener("click", () =>
changeSlide(currentSlide, "next")
);
});
};

runAllScripts();
};
</script>
</body>
</html>
Loading

0 comments on commit 4273916

Please sign in to comment.