Skip to content

Commit

Permalink
Feature/terms and conditions (#76)
Browse files Browse the repository at this point in the history
* socials are part of the graph footer

* terms and conditions
  • Loading branch information
Rodriguespn authored Feb 20, 2024
1 parent f2fe470 commit 66375f0
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 3 deletions.
Binary file not shown.
16 changes: 16 additions & 0 deletions src/components/footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { FC } from "react";
import Socials from "./socials";
import TermsAndConditions from "./terms_and_conditions";

const Footer: FC = () => {
return (
<footer className="flex absolute bottom-0 z-10 h-fit w-full justify-between items-center transition-all duration-300 ease-in-out mb-3">
<Socials className="flex-none ml-3 items-center" />
<TermsAndConditions className="text-gray-500" />
{/* Keep this div to maintain the spacing */}
<div className="flex-none w-20"></div>
</footer>
)
}

export default Footer;
Empty file added src/components/footer/index.ts
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const SocialButton: FC<Social> = ({ name, Icon, link }) => {
<a href={link} target="_blank" rel="noreferrer">
<Icon
aria-label={`${name} Icon`}
className="h-8 w-8 p-1 opacity-50 backdrop-blur-sm transition-all duration-200 hover:opacity-70"
className="h-8 w-8 p-1 opacity-50 transition-all duration-200 hover:opacity-70"
/>
</a>
);
Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions src/components/footer/terms_and_conditions/TermsAndConditions.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { FC } from "react";
import termsAndConditionsPDF from "../../../assets/WardAnalytics-Terms-and-Conditions.pdf";

interface TermsAndConditionsProps {
className?: string;
}

const TermsAndConditions: FC<TermsAndConditionsProps> = ({
className
}) => {
return (
<div className={className}>
<a href={termsAndConditionsPDF} target="_blank">Terms & Conditions</a>
</div>
)
}

export default TermsAndConditions;
3 changes: 3 additions & 0 deletions src/components/footer/terms_and_conditions/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import TermsAndConditions from "./TermsAndConditions";

export default TermsAndConditions;
4 changes: 2 additions & 2 deletions src/components/graph/Graph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
} from "./graph_calculations";

import { PersonalGraphInfo } from "../../services/firestore/user/graph_saving";
import Socials from "../socials";
import Footer from "../footer/Footer";
import TransactionTooltip, { TransactionTooltipProps } from "./TransactionTooltip";
import DraggableWindow from "./analysis_window/AnalysisWindow";
import Hotbar from "./hotbar";
Expand Down Expand Up @@ -918,7 +918,6 @@ const GraphProvided: FC<GraphProvidedProps> = ({
analysisData={focusedAddressData}
onExit={onAddressFocusOff}
/>
<Socials className="absolute bottom-0 z-10 mb-3 ml-3 transition-all duration-300 ease-in-out" />
<ReactFlow
nodes={nodes}
onNodesChange={onNodesChange}
Expand Down Expand Up @@ -963,6 +962,7 @@ const GraphProvided: FC<GraphProvidedProps> = ({
<Hotbar />
</Panel>
</ReactFlow>
<Footer />
</div>
</GraphContext.Provider>
</>
Expand Down

0 comments on commit 66375f0

Please sign in to comment.