mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-08 13:38:47 +00:00
add folder structure
This commit is contained in:
parent
032806a5a9
commit
912b0a2b4c
8 changed files with 0 additions and 0 deletions
46
code/frontend/src/components/Footer.tsx
Normal file
46
code/frontend/src/components/Footer.tsx
Normal file
|
@ -0,0 +1,46 @@
|
|||
import "./footer.css";
|
||||
|
||||
function Footer() {
|
||||
return (
|
||||
<footer className="footer">
|
||||
<div className="footer-left">
|
||||
<a href="" className="footer-link feather">
|
||||
<img src="/assets/icons/feather_black.svg" alt="Feather icon" />
|
||||
<span className="small-title">Feather Feed</span>
|
||||
</a>
|
||||
<a
|
||||
href="https://github.com/bubblecup-12/VogelSocialMedia"
|
||||
target="_blank "
|
||||
className="footer-link github"
|
||||
>
|
||||
<img src="/assets/icons/github-mark.svg" alt="GitHub mark" />
|
||||
|
||||
<img src="/assets/icons/GitHub_Logo.png" alt="GitHub logo" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div className="footer-right">
|
||||
<a className="footer-link" href="#">
|
||||
Home
|
||||
</a>
|
||||
<a className="footer-link" href="#">
|
||||
About
|
||||
</a>
|
||||
<a className="footer-link" href="#">
|
||||
Login
|
||||
</a>
|
||||
<a className="footer-link" href="#">
|
||||
Sign up
|
||||
</a>
|
||||
<a className="footer-link" href="#">
|
||||
Create Post
|
||||
</a>
|
||||
<a className="footer-link" href="#">
|
||||
Feed
|
||||
</a>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
export default Footer;
|
93
code/frontend/src/components/footer.css
Normal file
93
code/frontend/src/components/footer.css
Normal file
|
@ -0,0 +1,93 @@
|
|||
|
||||
/*mobile style first*/
|
||||
.footer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
background-color: var(--Rotkehlchen-gray);
|
||||
padding: 1rem;
|
||||
gap: 2rem;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
|
||||
}
|
||||
|
||||
.footer-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.footer-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem; /*Gap between icon and logo */
|
||||
text-decoration: none; /*prevents constant underline*/
|
||||
color: black;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.footer-link.feather img {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
transform: scale(1.5);
|
||||
}
|
||||
|
||||
.footer-link img {
|
||||
height: 1.5rem;
|
||||
object-fit: unset;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.footer-link.feather span {
|
||||
color: var(--Rotkehlchen-orange-default);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.footer-right {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.4rem; /*gap between the links*/
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.footer-column a {
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.footer-link:hover, .footer-link:active {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.footer-link.feather:hover, .footer-link.feather:active {
|
||||
text-decoration-color: var(--Rotkehlchen-orange-default) ;
|
||||
}
|
||||
|
||||
/*@media adjusts styles for desktop */
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.footer {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
text-align: left;
|
||||
padding: 2rem 4rem;
|
||||
}
|
||||
|
||||
.footer-left {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.footer-right {
|
||||
flex-direction: row;
|
||||
gap: 4rem;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.footer-column {
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
38
code/frontend/src/components/header.css
Normal file
38
code/frontend/src/components/header.css
Normal file
|
@ -0,0 +1,38 @@
|
|||
.base-header {
|
||||
width: 100vw;
|
||||
display: flex;
|
||||
height: 50px;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
border-bottom: 3px solid var(--Rotkehlchen-brown-light);
|
||||
background: var(--Rotkehlchen-gray);
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
.header-title {
|
||||
display: flex;
|
||||
width: 162px;
|
||||
height: 63px;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
|
||||
color: var(--Rotkehlchen-orange-default);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.base-header-icon {
|
||||
margin: 40px;
|
||||
display: flex;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
}
|
17
code/frontend/src/components/header.tsx
Normal file
17
code/frontend/src/components/header.tsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
import "./header.css";
|
||||
|
||||
|
||||
function Header() {
|
||||
|
||||
return (
|
||||
<header className="base-header">
|
||||
<div className="base-header-icon"> <img src='/assets/icons/feather_black.svg' alt="featherIcon" /> </div>
|
||||
<p className="header-title small-title">
|
||||
Feather Feed
|
||||
</p>
|
||||
<div className="base-header-icon"> <img src="/assets/icons/three_menu_stripes_black.svg" alt="menuIcon" /> </div>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
|
||||
export default Header;
|
Loading…
Add table
Add a link
Reference in a new issue