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

feat: add footer banner #57

Merged
merged 3 commits into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
14 changes: 14 additions & 0 deletions components/UI/FooterBanner/FooterBanner.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.wrapper {
left: 0;
right: 0;
bottom: 0;
display: flex;
z-index: 1000;
position: absolute;
justify-content: center;
background-color: #ffffff;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<span className={styles.footer}>
  6 Şubat 2023 depreminde sosyal medyada paylaşılan deprem ile ilgili
  paylaşımları anlamlandırarak yardım kuruluşlarına destek verilmesi
  amaçlanmıştır.
</span>

.footer {
text-align: center;
font-size: 0.7rem;
font-weight: 500;
background-color: #f2f2f2;
position: absolute;
bottom: 24px;
z-index: 999;
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bu kadarı yeterli olur gibi

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

düzenliyorum..

.text {
padding: 8px;
font-size: 14px;
}
11 changes: 11 additions & 0 deletions components/UI/FooterBanner/FooterBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styles from "./FooterBanner.module.css";

export default function FooterBanner() {
return (
<div className={styles.wrapper}>
<span className={styles.text}>
<b>Duyuru:</b> 6 Şubat 2023 depreminde sosyal medyada paylaşılan deprem ile ilgili paylaşımları anlamlandırarak yardım kuruluşlarına destek verilmesi amaçlanmıştır.
</span>
</div>
)
}
2 changes: 2 additions & 0 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Container from "@mui/material/Container";
import LeafletMap from "@/components/UI/Map";
import { useState, useCallback } from "react";
import Drawer from "@/components/UI/Drawer/Drawer";
import FooterBanner from "@/components/UI/FooterBanner/FooterBanner";

export default function Home() {
const [isOpen, setisOpen] = useState(false);
Expand Down Expand Up @@ -42,6 +43,7 @@ export default function Home() {
<LeafletMap onClickMarker={toggleDrawer()} />
</Container>
<Drawer data={drawerData} isOpen={isOpen} toggler={toggleDrawer} />
<FooterBanner/>
</main>
</>
);
Expand Down