Skip to content

Commit

Permalink
chore: add explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
vladanpaunovic committed Sep 2, 2024
1 parent b397824 commit 73eed25
Show file tree
Hide file tree
Showing 6 changed files with 1,022 additions and 258 deletions.
30 changes: 15 additions & 15 deletions components/AffiliateLinks/AffiliateLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ const affiliatePartners = [
affiliateLink: "https://app.deltabadger.com/en/ref/DCACC",
value: "10% discount",
},
{
name: "Crypto.com",
icon: (
<Image
src="/images/cryptocom_icon_2.jpeg"
alt="Crypto.com"
width={40}
height={40}
/>
),
pitch:
"Use my referral link 6mn8gxz6tn to sign up for Crypto.com and we both get $25 USD",
affiliateLink: "https://crypto.com/app/6mn8gxz6tn",
value: "$25 USD",
},
// {
// name: "Crypto.com",
// icon: (
// <Image
// src="/images/cryptocom_icon_2.jpeg"
// alt="Crypto.com"
// width={40}
// height={40}
// />
// ),
// pitch:
// "Use my referral link 6mn8gxz6tn to sign up for Crypto.com and we both get $25 USD",
// affiliateLink: "https://crypto.com/app/6mn8gxz6tn",
// value: "$25 USD",
// },
];

const AffiliatePartner = (props) => {
Expand Down
11 changes: 10 additions & 1 deletion components/CoinPage/TopCards.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import {
Card,
Metric,
Expand Down Expand Up @@ -100,7 +101,6 @@ const CardValueInFIAT = () => {
</Text>
</Flex>
</Flex>

<CategoryBar
categoryPercentageValues={categoryPercentageValues}
colors={["orange", color]}
Expand All @@ -122,6 +122,10 @@ const CardValueInFIAT = () => {
colors={["orange", color]}
marginTop="mt-3"
/>
<div className="mt-2 text-sm italic bg-gray-100 text-gray-900 p-2 rounded">
Your earnings are {isEarning ? "positive" : "negative"} by{" "}
{percentageChange} over the dollar cost averaging period.
</div>
</Card>
</div>
);
Expand Down Expand Up @@ -176,6 +180,11 @@ const CardCurrentCoin = () => {
valueFormatter={valueFormatter}
marginTop="mt-4"
/>

<div className="mt-2 text-sm italic bg-gray-100 text-gray-900 p-2 rounded">
On the selected date, {coinSymbol} selling price is{" "}
{isEarning ? "higher" : "lower"} than the average price.
</div>
</Card>
</div>
);
Expand Down
8 changes: 4 additions & 4 deletions components/Footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ const Footer = ({ availableTokens }) => {
</li>
<li>
<Link
href="https://twitter.com/dca_cc"
href="https://x.com/dca_cc"
target="_blank"
rel="nofollow noreferrer"
className="text-gray-600 transition-colors duration-300 hover:underline"
>
DCA-CC on Twitter
DCA-CC on X
</Link>
</li>
<li>
Expand Down Expand Up @@ -171,8 +171,8 @@ const Footer = ({ availableTokens }) => {
<div className="flex items-center mt-4 space-x-4 sm:mt-0">
<a
target="_blank"
href="https://twitter.com/dca_cc"
aria-label="DCA-CC on Twitter"
href="https://x.com/dca_cc"
aria-label="DCA-CC on X"
rel="nofollow noreferrer"
className="text-gray-500 hover:opacity-50"
>
Expand Down
4 changes: 2 additions & 2 deletions components/ShareChart/ShareChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const SharingButtons = ({ currentCoin, currentUrl }) => {

const socialNetworks = [
{
label: "Twitter",
label: "X",
color: "#55acee",
href: `https://twitter.com/intent/tweet?text=${encodeURIComponent(
href: `https://x.com/intent/tweet?text=${encodeURIComponent(
priceChartMessage
)}&url=${encodeURIComponent(currentUrl)}&hashtags=${coinSymbol},${
currentCoin.name
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"autoprefixer": "^10.2.5",
"babel-jest": "^27.4.6",
"eslint": "8.6.0",
"eslint-config-next": "^13.1.6",
"eslint-config-next": "^14.2.7",
"frontmatter-markdown-loader": "^3.6.3",
"jest": "^27.4.7",
"jest-mock-extended": "^3.0.1",
Expand Down
Loading

0 comments on commit 73eed25

Please sign in to comment.