Skip to content

Commit

Permalink
#3 Defined footer layout
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-glushko committed Apr 23, 2024
1 parent 028fec5 commit aec3694
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 10 deletions.
Binary file added public/images/logo/einstack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
37 changes: 37 additions & 0 deletions src/components/Footer.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.content {
display: flex;
flex-direction: column;
justify-content: space-between;
width: 100%;
}

.sections {
display: flex;
flex-direction: row;
justify-content: space-between;
align-content: center;
align-items: center;
width: 100%;
row-gap: 1rem;
}

.company {

}

.companyLogo img {
width: 5rem;
}

.socials {
display: flex;
}

.socials .social {
height: 2rem;
width: 2rem;
}

.copyright {
@apply text-center;
}
47 changes: 41 additions & 6 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,47 @@
import React from "react";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faDiscord, faLinkedin, faGithub } from '@fortawesome/free-brands-svg-icons'

import styles from "./Footer.module.css"

const EinStackLogo = () => {
return (
<div className={styles.companyLogo}>
<img
src={"/images/logo/einstack.png"}
alt="EinStack Logo"
/>
</div>
)
}

export const Footer = () => {
return (
<span>
Apache 2.0 {new Date().getFullYear()} ©{' '}
<a href="https://nextra.site" target="_blank">
EinStack
</a>
</span>
<div className={styles.content}>
<div className={styles.sections}>
<div className={styles.company}>
<EinStackLogo/>
<span>Reliable infrastructure <br/> for GenAI revolution</span>
</div>
<div>
Links
</div>
<div className={styles.socials}>
<FontAwesomeIcon className={styles.social} icon={faGithub}/>
<FontAwesomeIcon className={styles.social} icon={faDiscord}/>
<FontAwesomeIcon className={styles.social} icon={faLinkedin}/>
<div>
<a href="https://www.netlify.com">
{/*<img src="https://www.netlify.com/v3/img/components/netlify-light.svg" alt="Deploys by Netlify"/>*/}
<img src="https://www.netlify.com/v3/img/components/netlify-dark.svg"
alt="Deploys by Netlify"/>
</a>
</div>
</div>
</div>
<div className={styles.copyright}>
© 2023–Present, EinStack Community. <br/> Documentation distributed under <a href="">CC-BY-4.0</a>.
</div>
</div>
)
}
9 changes: 9 additions & 0 deletions src/components/Logo.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.logo {
display: flex;
align-items: center;
}

.logo img {
width: 40px;
margin-right: 5px;
}
9 changes: 5 additions & 4 deletions src/components/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import LogoImg from '../../images/glide_bird_in_circle.png';
import React from "react";

import styles from "./Logo.module.css"

export function Logo() {
return (
<div style={{display: 'flex', alignItems: 'center'}}>
<div className={styles.logo}>
<img
src={LogoImg.src}
src={"/images/logo/glide.png"}
alt="Glide Logo"
style={{width: '40px', marginRight: '5px'}}
/>
<span>Glide</span>
</div>
Expand Down

0 comments on commit aec3694

Please sign in to comment.