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

Footer #49

Merged
merged 2 commits into from
Dec 3, 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
16 changes: 16 additions & 0 deletions src/assets/images/simfony_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 0 additions & 48 deletions src/assets/images/simplicity_logo.svg

This file was deleted.

65 changes: 65 additions & 0 deletions src/assets/style/components/footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
.footer{
display: flex;
justify-content: space-around;
margin: 60px 0;
font-size: 14px;

@media screen and (max-width: 1300px) {
flex-direction: column;
gap: 40px;
margin: 40px 30px;
}

.footer-left{
.footer-logo{
height: 36px;
margin-bottom: 10px;
}
p{
margin-bottom: 10px;
text-wrap: nowrap;
}
}
.footer-right{
.footer-title{
margin: 0 0 10px 0;
}

.footer-links{
display: grid;
grid-template: 1fr 1fr / 1fr 1fr;
gap: 20px;

@media screen and (max-width: 800px) {
grid-template: 1fr / 1fr;
}

.footer-link{
display: flex;
flex-direction: column;
gap: 10px;

border: 1px solid #1d2127;
padding: 20px;
border-radius: 6px;
transition: border .5s;
text-decoration: none;

&:hover{
border: 1px solid #ea9606;
}

.footer-link-icon{
margin-right: 10px;
}

.footer-link-text{
color: white;
}
.footer-link-url{
color: #ea9606;
}
}
}
}
}
2 changes: 1 addition & 1 deletion src/assets/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@import 'components/string_box.scss';
@import 'components/tab_content.scss';
@import 'components/tooltip.scss';
@import 'components/footer.scss';

* {
box-sizing: border-box;
Expand All @@ -21,7 +22,6 @@ body {
background-color: $body-background;
color: $text-white;
font-family: 'inter', sans-serif;
padding-bottom: 400px;
}

h1, h2, h3, h4, h5, h6{
Expand Down
45 changes: 29 additions & 16 deletions src/components/footer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,36 @@ use leptos::{component, view, IntoView};
#[component]
pub fn Footer() -> impl IntoView {
view! {
<div class="center">
<h1 class="intro-title">Further Links</h1>
<div>
"🚀 "
<a href="https://simfony-lang.com/" target="blank">Simfony Lander</a>
<div class="footer">
<div class="footer-left">
<img class="footer-logo" src="images/simfony_logo.svg" />
<p>Developers write Simfony, full nodes execute Simplicity.</p>
<p>"©2024 Simfony. All rights reserved."</p>
</div>
<div>
"📜 "
<a href="https://docs.rs/simfony-as-rust/latest/simfony_as_rust/jet/index.html" target="blank">Jet documentation</a>
</div>
<div>
"🛠️ "
<a href="https://github.com/uncomputable/simfony-webide" target="blank">Simfony web IDE GitHub repository</a>
</div>
<div>
"🛠️ "
<a href="https://github.com/BlockstreamResearch/simfony" target="blank">Simfony compiler GitHub repository</a>
<div class="footer-right">
<h1 class="footer-title">Learn more</h1>
<div class="footer-links">
<a href="https://simfony-lang.com/" target="blank" class="footer-link">
<div class="footer-link-icon">"🚀"</div>
<div class="footer-link-text">Simfony Lander</div>
<div class="footer-link-url">"https://simfony-lang.com"</div>
</a>
<a href="https://docs.rs/simfony-as-rust/latest/simfony_as_rust/jet/index.html" target="blank" class="footer-link">
<div class="footer-link-icon">"📜"</div>
<div class="footer-link-text">Jet documentation</div>
<div class="footer-link-url">"https://docs.rs/simfony-as-rust"</div>
</a>
<a href="https://github.com/uncomputable/simfony-webide" target="blank" class="footer-link">
<div class="footer-link-icon">"🛠️"</div>
<div class="footer-link-text">Simfony web IDE GitHub repository</div>
<div class="footer-link-url">"https://github.com/uncomputable/simfony-webide"</div>
</a>
<a href="https://github.com/BlockstreamResearch/simfony" target="blank" class="footer-link">
<div class="footer-link-icon">"🛠️"</div>
<div class="footer-link-text">Simfony compiler GitHub repository</div>
<div class="footer-link-url">"https://github.com/BlockstreamResearch/simfony"</div>
</a>
</div>
</div>
</div>
}
Expand Down
Loading