Skip to content

Commit

Permalink
Merge pull request #6133 from NomicFoundation/solidity-survey-2024
Browse files Browse the repository at this point in the history
chore: restore the solidity survey message (2024)
  • Loading branch information
alcuadrado authored Jan 12, 2025
2 parents e4e2b86 + b1dfb90 commit dc749cf
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/sixty-fireants-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": patch
---

Restored the message linking to the 2024 solidity survey
6 changes: 6 additions & 0 deletions docs/redirects.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ const customRedirects = [
"https://cryptpad.fr/form/#/2/form/view/pV-DdryeJoYUWvW+gXsFaMNynEY7t5mUsgeD1urgwSE",
permanent: false,
},
{
source: "/solidity-survey-2024",
destination:
"https://cryptpad.fr/form/#/2/form/view/9xjPVmdv8z0Cyyh1ejseMQ0igmx-TedH5CPST3PhRUk",
permanent: false,
},
{
source: "/solc-viair",
destination:
Expand Down
14 changes: 9 additions & 5 deletions docs/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ export const SOCIALS_LINKS = {
[SocialsEnum.DISCORD]: "/discord",
};

export const BANNER_LINK = "https://nomic.foundation/hiring";

export const PRIVACY_POLICY_PATH = "/privacy-policy.html";

// export const bannerContent = {
// text: "Join the Hardhat team! Nomic Foundation is hiring",
// shortText: "Join the Hardhat team! We are hiring",
// href: "https://nomic.foundation/hiring",
// };

export const bannerContent = {
text: "Join the Hardhat team! Nomic Foundation is hiring",
shortText: "Join the Hardhat team! We are hiring",
href: BANNER_LINK,
text: "Please take a few minutes to complete the 2024 Solidity Survey",
shortText: "Complete the 2024 Solidity Survey here",
href: "https://hardhat.org/solidity-survey-2024",
};

export const DOCS_PATH = path.join(process.cwd(), "src/content/");
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-core/src/internal/cli/project-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,15 +372,15 @@ function showStarOnGitHubMessage() {
}

export function showSoliditySurveyMessage() {
if (new Date() > new Date("2024-01-07 23:39")) {
if (new Date() > new Date("2025-01-31 23:39")) {
// the survey has finished
return;
}

console.log();
console.log(
picocolors.cyan(
"Please take a moment to complete the 2023 Solidity Survey: https://hardhat.org/solidity-survey-2023"
"Please take a moment to complete the 2024 Solidity Survey: https://hardhat.org/solidity-survey-2024"
)
);
}
Expand Down

0 comments on commit dc749cf

Please sign in to comment.