Skip to content

Commit

Permalink
feat: mah god after 1 long hour i have finally figured out how to sti…
Browse files Browse the repository at this point in the history
…ck that flexbox footer where it belongs
  • Loading branch information
DereC4 committed Apr 20, 2024
1 parent 5b7a2b0 commit ec12a48
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 33 deletions.
35 changes: 21 additions & 14 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
</head>

<body>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Changelog</a></li>
</ul>
</nav>
<div class="wrapper">
<div class="about-text" value="">
<h1>About</h1>
Expand Down Expand Up @@ -89,21 +96,21 @@ <h1>About</h1>
<canvas id="gradeBar" style="width:100%;height:100%;"></canvas>
</div>
</div>
<div class="footy">Created by Derek Chen
<!-- because VAPA lecture was a bit boring that day -->
<div>
<input type="checkbox" class="checkbox" id="colorToggle">
<label for="colorToggle" class="checkbox-label">
<i class="fas fa-moon"></i>
<i class="fas fa-sun"></i>
<span class="ball"></span>
</label>
</div>
<iframe
src="https://ghbtns.com/github-btn.html?user=Derec4&repo=ut-grade-distribution-viewer&type=star&count=true&size=large"
frameborder="0" scrolling="0" width="100" height="30" title="GitHub">
</iframe>
</div>
<div class="footy">Created by Derek Chen
<!-- because VAPA lecture was a bit boring that day -->
<div>
<input type="checkbox" class="checkbox" id="colorToggle">
<label for="colorToggle" class="checkbox-label">
<i class="fas fa-moon"></i>
<i class="fas fa-sun"></i>
<span class="ball"></span>
</label>
</div>
<iframe
src="https://ghbtns.com/github-btn.html?user=Derec4&repo=ut-grade-distribution-viewer&type=star&count=true&size=large"
frameborder="0" scrolling="0" width="100" height="30" title="GitHub">
</iframe>
</div>
<script src='main.js'></script>
<script src='colorScheme.js'></script>
Expand Down
71 changes: 52 additions & 19 deletions docs/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ body {
background: var(--background-gradient); */
margin: 0;
transition: background 0.2s linear;
min-height: 100vh;
display: flex;
flex-direction: column;

}

body.dark {
Expand All @@ -43,34 +47,44 @@ main {
padding: 10%;
}

.footy {
background-color: #2e2d2d;
color: white;
padding: 1%;
position: relative;
bottom: 0;
left: 0;
width: 100%;
text-align: left;
font-size: var(--footer-size);
display: flex;
flex-direction: row;
justify-content: space-between;
align-self: flex-end;
nav ul {
font-size: var(--p-size);
list-style-type: none;
padding: 0;
text-align: center;
}

nav ul li {
display: inline;
margin-right: 20px;
}

nav ul li a {
text-decoration: none;
color: var(--font-color);
}

nav ul li a:hover {
text-decoration: underline;
}

* {
box-sizing: border-box;
}

.wrapper {
display: grid;
/* display: grid;
gap: 2vw;
grid-auto-rows: minmax(100px, auto);
grid-auto-rows: minmax(100px, auto); */
display: flex;
flex-direction: column;
align-items: center; /* Center items horizontally */
flex-grow: 1; /* Allow .wrapper to grow and occupy remaining space */
row-gap: 100px;
text-align: center;
color: var(--font-color);
margin-top: 30px;
min-height: 100vh;
/* min-height: 100vh; */
/* background-color: rgba(0, 0, 0, .4); */
}

Expand Down Expand Up @@ -101,8 +115,8 @@ main {

.bg-form {
background-color: var(--container-color);
grid-column: 1;
grid-row: 2;
/* grid-column: 1;
grid-row: 2; */
font-weight: 400;
width: auto;
margin: 0 auto;
Expand All @@ -120,6 +134,25 @@ main {
width: 80vw;
}


.footy {
background-color: #2e2d2d;
color: white;
padding: 1%;
position: relative;
bottom: 0;
left: 0;
width: 100%;
text-align: left;
font-size: var(--footer-size);
display: flex;
flex-direction: row;
justify-content: space-between;
/* margin-top: -200px; */
align-self: flex-end;
flex-shrink: 0;
}

p {
font-size: var(--p-size);
line-height: 1.5;
Expand Down

0 comments on commit ec12a48

Please sign in to comment.