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

add MyButton version #22

Merged
merged 1 commit into from
Jun 28, 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
1 change: 1 addition & 0 deletions src/App/Config/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const BaseConfig = {
SERVER: '<SERVER_ADDRESS>',
APP_NAME: '<APP_NAME>',
APP_SHORT_NAME: '<APP_SHORT_NAME>',
VERSION: 0.1,
};

const LOCAL = {
Expand Down
51 changes: 29 additions & 22 deletions src/Views/Layout/Footer/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.footer-layout {
@apply bg-white bg-opacity-30 flex-center py-4 z-10 backdrop-filter backdrop-blur-md shadow-light md:fixed bottom-0 w-full;
@apply bg-white bg-opacity-30 flex-center flex-col pt-4 pb-2 z-10 backdrop-filter backdrop-blur-md shadow-light md:fixed bottom-0 w-full;

-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
Expand All @@ -9,34 +9,41 @@
width: contain;
}

.social-links {
@apply flex-center text-gray-700;
.about-mybutton {
@apply flex-center;
.social-links {
@apply flex;

a {
@apply transition-all;
&:hover {
scale: 1.05;
a {
@apply transition-all;
&:hover {
scale: 1.05;

.fa-icon {
@apply bg-gray-900;
.fa-icon {
@apply bg-gray-900;
}
}
&:not(:last-of-type) {
@apply mr-2;
}
}
&:not(:last-of-type) {
@apply mr-2;
}
}

.social-icon {
@apply p-1 rounded-full bg-gray-500 transition-colors;
width: 1.6rem;
height: 1.6rem;
padding: 0.3rem;
.social-icon {
@apply p-1 rounded-full bg-primary bg-opacity-80 transition-colors;
width: 1.6rem;
height: 1.6rem;
padding: 0.3rem;

fill: white;
fill: white;
}
}
.empowered {
font-size: 0.8rem;
@apply text-gray-600 hover:text-gray-900 font-medium transition-colors mr-2;
}
}

.empowered {
@apply mr-5 text-xs text-gray-500 hover:text-gray-900 transition-colors;
.version {
font-size: 0.6rem;
@apply text-xs text-gray-500 mt-1;
}
}
22 changes: 13 additions & 9 deletions src/Views/Layout/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
import './index.scss';
import { ReactComponent as Github } from '@assets/icons/github.svg';
import { ReactComponent as Discord } from '@assets/icons/discord.svg';
import { CONFIG } from '@src/App/Config/constants';

const Footer = () => {
return (
<div className='footer-layout'>
<a href='https://openscilab.com' target='_blank' rel='noreferrer' className='empowered'>
Empowered by OSL team
</a>
<div className='social-links'>
<a href='https://discord.gg/T2VzhzqU67' target='_blank' rel='noreferrer'>
<Discord className='social-icon' />
</a>
<a href='https://github.com/openscilab/mybutton' target='_blank' rel='noreferrer'>
<Github className='social-icon' />
<div className='about-mybutton'>
<a href='https://openscilab.com' target='_blank' rel='noreferrer' className='empowered'>
Empowered by OSL team
</a>
<div className='social-links'>
<a href='https://discord.gg/T2VzhzqU67' target='_blank' rel='noreferrer'>
<Discord className='social-icon' />
</a>
<a href='https://github.com/openscilab/mybutton' target='_blank' rel='noreferrer'>
<Github className='social-icon' />
</a>
</div>
</div>
<div className='version'>Version {CONFIG.VERSION}</div>
</div>
);
};
Expand Down
Loading