Skip to content

Commit

Permalink
devfolio btn
Browse files Browse the repository at this point in the history
  • Loading branch information
virajchandra51 committed Sep 28, 2023
1 parent b3a6ce5 commit d76a571
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r78/three.min.js"
crossorigin="anonymous"
></script>
<!-- <script defer async src="https://apply.devfolio.co/v2/sdk.js"></script> -->
<script defer async src="https://apply.devfolio.co/v2/sdk.js"></script>
<script type="module" src="/mouse.js"></script>
<!-- <script type="module" src="/preloader.js"></script> -->
</body>
Expand Down
2 changes: 1 addition & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const baseUrl = "https://16.171.64.245/server/";
export const baseUrl = "https://codeutsava.nitrr.ac.in/server/";
export const currentYear = "2023";
export const previousYear = "2022";
22 changes: 11 additions & 11 deletions src/pages/home/sections/section1/Section1.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,16 @@ const Section1 = () => {
setscrollisPlaying(false);
setnotPlaying(!notPlaying);
};
// React.useEffect(() => {
// const script = document.createElement("script");
// script.src = "https://apply.devfolio.co/v2/sdk.js";
// script.async = true;
// script.defer = true;
// document.body.appendChild(script);
// return () => {
// document.body.removeChild(script);
// };
// }, []);
React.useEffect(() => {
const script = document.createElement("script");
script.src = "https://apply.devfolio.co/v2/sdk.js";
script.async = true;
script.defer = true;
document.body.appendChild(script);
return () => {
document.body.removeChild(script);
};
}, []);
const canvasRef = useRef(null);
useEffect(() => {
// Draw canvas here...
Expand Down Expand Up @@ -225,7 +225,7 @@ const Section1 = () => {
>
<div
className="apply-button"
data-hackathon-slug="codeutsava-3"
data-hackathon-slug="codeutsava-7"
data-button-theme="dark-inverted"
style={{ height: "44px", width: "312px" }}
></div>
Expand Down

0 comments on commit d76a571

Please sign in to comment.