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

ISSUE #48 Fixed the Footer UI #121

Merged
merged 3 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
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
27 changes: 20 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenTekHub Blockchain Repo</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fredoka:[email protected]&family=Gowun+Batang:wght@400;700&family=Mate+SC&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fredoka:[email protected]&family=Gowun+Batang:wght@400;700&family=Mate+SC&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="styles.css">
</head>

Expand Down Expand Up @@ -168,12 +169,24 @@ <h1>Frequently Asked Questions</h1>
</div>
</section>

<section id="repo-info">
<footer id="repo-info">

<div class="left">
<h2>About the Repository</h2>
<p>This repository demonstrates blockchain prices using api and javascript.</p>
<a href="https://github.com/OpenTekHub/blockchain" target="_blank"><i class="fa-brands fa-github"></i>BlockChain Repository</a>
</div>

<div class="right">
<h2>Connect with us</h2>
<a class="s" href="/"><i class="fa-brands fa-discord"></i></a>
<a href="/"><i class="fa-brands fa-twitter"></i></i></a>
<a href="/"><i class="fa-brands fa-facebook"></i></a>
</div>

</footer>


<h2>About the Repository</h2>
<p>This repository demonstrates blockchain prices using api and javascript.</p>
<a href="https://github.com/OpenTekHub/blockchain" target="_blank"><img src="public/github.png" alt="" id="git">BlockChain Repository</a>
</section>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js" integrity="sha512-7eHRwcbYkK4d9g/6tD/mhkf++eoTHwpNM9woBxtPUBWm67zeAfFC+HrdoE2GanKeocly/VxeLvIqwvCdk7qScg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="script.js"></script>
</body>
Expand Down
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,6 @@ document.addEventListener('DOMContentLoaded', () => {
delay: 1.9
});
});
=======
// =======


69 changes: 68 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,61 @@ h1, h2, h3 {

#repo-info {
background-color: #fffefe10;
text-align: center;
padding: 1.5rem;
box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.2);
font-size: 1rem;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 5rem;
min-height: 12rem;
}

#repo-info .left a {
position: relative;
text-shadow: 0 4px 10px #fefe09;
}

#repo-info .left a::before {
content: '';
position: absolute;
top: 100%; /* Adjust this to align the underline at the bottom */
left: 0;
width: 0%;
height: 2px;
background-color: #FFEB55; /* The underline color */
transition: width .3s linear;
}

#repo-info .left a:hover::before {
width: 100%; /* The underline expands fully when hovering */
}


#repo-info .left a i{
font-size: 1.2rem;
margin-right: 0.5rem;
text-align: center;
}

#repo-info .right h2{
margin-bottom: 1.5rem;
}

#repo-info .right a{
font-size: 1rem;
margin: 2rem 0.5rem;
padding: 0.3rem 0.5rem;
border: 1px solid white;
color: white;
border-radius: 50%;
text-align: center;
transition: background-color 0.3s ease-in;
}

#repo-info .right a:hover{
background-color: white;
color: #c31432;
}

#repo-info p {
Expand Down Expand Up @@ -603,7 +654,23 @@ p.tagline.dark-mode{
flex: 1 1 100%;
}
}
@media (max-width: 895px) {
#repo-info {
position: relative;
display: flex;
flex-direction: column !important;
align-items: first baseline;
padding: 0 !important;

}
#repo-info .left{
margin-left: 1rem;
}
#repo-info .right{
margin-top: 3rem !important;
margin-left: 1rem;
}
}
/* Small devices (phones, 500px and below) */
@media (max-width: 500px) {
.logo {
Expand Down