Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Horribly rough draft of header. #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 105 additions & 9 deletions src/components/AppHeader.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,51 @@
<template>
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">

<div>
<img v-show="darkMode" alt="JTCC logo" src="../assets/logoDark.png">
<img v-show="!darkMode" alt="JTCC logo" src="../assets/logoLight.png">
<br />
<div>
<h1>Welcome to the JTCC Programming Club</h1>
<p>This website was one of the projects developed in our club.</p>
<p>We are currently working on a custom <a href="https://weather.codingcorner.club/">weather station</a> as our main project.</p>
<br>
</div>

<!--There is a gap above the header. Profoundly unaesthetic, must fix!-->

<header>
<div class="container">
<div class="content">

<div class="logo-outer">
<div class="codi-logo"></div>
</div>

<h1>Codi Hacks</h1>
<hr>
<p></p>
<hr style="opacity: 0;">

<!--Dark mode toggle should go here-->

<hr>

<!--Icon spacing needs fixing-->
<p>
<a href="https://github.com/codi-hacks">
<i class="fa-brands fa-github fa-xl" alt="github"></i>
</a>
</p>
<p>
<a href="https://discord.gg/TufC6eRTS7">
<i class="fa-brands fa-discord fa-xl" alt="discord"></i>
</a>
</p>
</div>
</div>
<br />
</header>

<!--A variation of the Codi logo must go above h2,
along with "making it reality" slogan, of course.-->

<h2>Codi Hacks</h2>
<br>
</div>

</template>

<script>
Expand Down Expand Up @@ -40,4 +76,64 @@ export default {
width: 50%;
}
}

header {
backdrop-filter: grayscale(0.25) blur(10px);
position: sticky;
top: 0;
}

hr{
opacity: .25;
}

h2{
font-size: 3em;
background-image:
linear-gradient(90deg, #0008ff, #ffa600);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}

.container{
height: 80%;
padding-right: 16px;
padding-left: 16px;
}
.content{
display: flex;
}

.codi-logo {
background: #3b2c6e;
width: 50px;
height: 50px;
border-radius: 2px;
position: relative;
overflow: hidden;
border: 7px solid #c3c4c4;
margin: 4px;
}
.codi-logo:before {
content: "";
position: absolute;
background-color: #92c5da;
width: 10px;
height: 25px;
border-radius: 4px;
top: 10px;
right: 10px;
}
.codi-logo:after {
content: "";
position: absolute;
background-color: #92c5da;
width: 10px;
height: 25px;
border-radius: 4px;
top: 10px;
left: 10px;
}

</style>