Skip to content

Commit

Permalink
Fix scroll arrow, remove jquery and bootstrap.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hudson-newey committed Feb 7, 2024
1 parent c7151bd commit 3f2aa78
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 266 deletions.
7 changes: 0 additions & 7 deletions public/lib/bootstrap.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions public/lib/jquery.min.js

This file was deleted.

34 changes: 3 additions & 31 deletions public/static/css/dist/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300&display=swap");
html {
background-color: #1a1a1a;
overflow-x: hidden;
Expand Down Expand Up @@ -42,11 +41,11 @@ html {
-webkit-transform: translate3d(-50%, -50%, 0);
transform: translate3d(-50%, -50%, 0);
}
.main-title p {
.main-title .title-description {
font-size: 1.5em;
font-family: "Inter", sans-serif;
}
.main-title p a {
.main-title .title-description a {
font-size: inherit;
color: white;
text-decoration: none;
}
Expand Down Expand Up @@ -141,33 +140,6 @@ iframe {
overflow: auto;
}

#back2Top {
width: 40px;
line-height: 40px;
overflow: hidden;
z-index: 999;
display: none;
cursor: pointer;
-moz-transform: rotate(270deg);
-webkit-transform: rotate(270deg);
-o-transform: rotate(270deg);
-ms-transform: rotate(270deg);
transform: rotate(270deg);
position: fixed;
bottom: 50px;
right: 0;
background-color: #fafafa;
color: #555;
text-align: center;
font-size: 30px;
text-decoration: none;
}

#back2Top:hover {
background-color: #ddf;
color: #1a1a1a;
}

div.arrow {
width: 6vmin;
height: 6vmin;
Expand Down
32 changes: 2 additions & 30 deletions public/static/css/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// font imports
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300&display=swap");

$background-color: #1a1a1a;
$secondary-color: #fafafa;
Expand Down Expand Up @@ -49,11 +48,11 @@ html {
-webkit-transform: translate3d(-50%, -50%, 0);
transform: translate3d(-50%, -50%, 0);

p {
.title-description {
font-size: 1.5em;
font-family: "Inter", sans-serif;

a {
font-size: inherit;
color: white;
text-decoration: none;
}
Expand Down Expand Up @@ -156,33 +155,6 @@ iframe {
overflow: auto;
}

#back2Top {
width: 40px;
line-height: 40px;
overflow: hidden;
z-index: 999;
display: none;
cursor: pointer;
-moz-transform: rotate(270deg);
-webkit-transform: rotate(270deg);
-o-transform: rotate(270deg);
-ms-transform: rotate(270deg);
transform: rotate(270deg);
position: fixed;
bottom: 50px;
right: 0;
background-color: $secondary-color;
color: #555;
text-align: center;
font-size: 30px;
text-decoration: none;
}

#back2Top:hover {
background-color: #ddf;
color: $background-color;
}

div.arrow {
width: 6vmin;
height: 6vmin;
Expand Down
File renamed without changes.
File renamed without changes.
79 changes: 0 additions & 79 deletions public/static/js/dist/script.js

This file was deleted.

102 changes: 0 additions & 102 deletions public/static/js/script.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/CookieConsent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
gtag("config", "G-R245NSN3MZ");
</script>

<script is:inline src="/static/js/dist/global.js"></script>
<script is:inline src="/static/js/dist/cookies.js"></script>
</div>
</footer>
10 changes: 0 additions & 10 deletions src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ import CookieConsent from "../components/CookieConsent.astro"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="/static/css/dist/global.css" />
<script
is:inline
is:inline
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V"
crossorigin="anonymous"></script>
<script
is:inline
is:inline
src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<meta name="generator" content={Astro.generator} />
<title>Grathium Industries</title>
</head>
Expand Down
6 changes: 2 additions & 4 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,18 @@ import Layout from "../layouts/Layout.astro";
<h1 id="title">
<span class="thin">Grathium</span> [Industries]
</h1>
<p>
<p class="title-description">
<a href="https://github.com/hudson-newey">Hudson Newey's</a>
Internet showcase.
</p>
</div>
</div>
</div>
<a href="#content" onclick="scrollToContent();">
<div class="arrow"></div>
<div class="arrow" onclick="document.getElementsByClassName('websiteScroll')[0]?.scrollIntoView()"></div>
</a>
</body>

<a id="back2Top" title="Back to top" href="#">&#10148;</a>

<div class="websiteScroll">
<div class="black-background">
<div class="d-flex flex-row justify-content-start m-5">
Expand Down

0 comments on commit 3f2aa78

Please sign in to comment.