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

Hidotmatrix/feat/new design #2

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React</title>
<title>DC DAO</title>
</head>
<body>
<div id="root"></div>
Expand Down
13,277 changes: 11,067 additions & 2,210 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-spring": "^9.7.3"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitejs/plugin-react": "^4.2.1",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.4",
"vite": "^5.2.0"
}
}
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
Binary file added public/code.mp4
Binary file not shown.
4 changes: 4 additions & 0 deletions public/icons/Github.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/icons/Rectangle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/icons/Telegram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/icons/X.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/icons/arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/icons/hamburger.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/DCDAO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/NFT/NFT_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/NFT/NFT_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/NFT/NFT_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/NFT/NFT_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/NFT/NFT_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/NFT/NFT_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/NFT/NFT_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/NFT/NFT_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/NFT/NFT_8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/NFT/NFT_9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/hero.webp
Binary file not shown.
Binary file added public/images/star.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion public/vite.svg

This file was deleted.

42 changes: 0 additions & 42 deletions src/App.css

This file was deleted.

61 changes: 35 additions & 26 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,44 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
import Header from "./components/Header";
import Hero from "./components/Hero";
import CompanySection from "./components/CompanySection";
import SafePal from "./components/SafePal";
import OurClients from "./components/OurClients";
// import Friends from "./components/Friends";
import InfiniteSlider from "./components/InfiniteSlider";
// import Subscription from "./components/Subscription";
// import Beyond from "./components/Beyond";
import CuttingEdge from "./components/CuttingEdge";
import InfiniteText from "./components/InfiniteText";
import CollectiveBunch from "./components/CollectiveBunch";
import LetsChat from "./components/LetsChat";
// import Online from "./components/Online";
import BigText from "./components/BigText";

function App() {
const [count, setCount] = useState(0)

return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
<div className="bg-[#f0efef] px-[10px] lg:px-[50px] pb-[50px] lg:rounded-b-[100px]">
<Header />
<Hero />
<InfiniteText />
{/* <CompanySection /> */}
<SafePal />
<OurClients />
{/* <Friends /> */}
<InfiniteSlider />
{/* <Subscription /> */}
{/* <Beyond /> */}
<CuttingEdge />
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.jsx</code> and save to test HMR
</p>
<div>
<CollectiveBunch />
<div className="px-[50px]">
<LetsChat />
</div>
<BigText />
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</>
)
);
}

export default App
export default App;
1 change: 0 additions & 1 deletion src/assets/react.svg

This file was deleted.

19 changes: 19 additions & 0 deletions src/components/Beyond.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import React from "react";

const Beyond = () => {
return (
<div className="flex items-center justify-between my-[100px]">
<p className="text-[20px] w-[423px]">
Your brand isn’t an aesthetic. It’s a living organism. We help it thrive
by bringing a dynamic perspective and collaborative expertise to
everything we build.
</p>
<div>
<h3 className="text-[120px]">Beyond </h3>
<h3 className="text-[120px]"> Design</h3>
</div>
</div>
);
};

export default Beyond;
12 changes: 12 additions & 0 deletions src/components/BigText.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const BigText = () => {
return (
<div className="flex items-center justify-center py-[5vh] mt-[-30px] lg:mt-[40px]">
<img
src="/images/DCDAO.png"
className="w-[50vw] h-[40vh] object-contain"
/>
</div>
);
};

export default BigText;
36 changes: 36 additions & 0 deletions src/components/CollectiveBunch.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
const CollectiveBunch = () => {
return (
<div className="flex items-center justify-between flex-col lg:flex-row px-[10px] lg:px-[100px] lg:py-[80px] text-white">
<div className="lg:w-[716px]">
<p className="text-[20px] lg:text-[40px] text-center lg:text-left">
We’re Darwinia Community DAO. A Crypto based service with brilliant
offers for making the CRYPTO experience fun deliverable.
</p>
<p className="text-[20px] lg:text-[40px] mt-[40px] text-center lg:text-left">
Join Us and enjoy your Crypto journey
</p>
</div>
<div className="flex items-center justify-center gap-[40px] my-[30px] sm:my-[40px] w-[40vw]">
<a href="https://twitter.com/DarwiniaNetwork" target="_blank">
<img src="/icons/X.svg" alt="X" className="sm:w-[80px] sm:h-[80px]" />
</a>
<a href="https://t.me/DarwiniaNetwork" target="_blank">
<img
src="/icons/Telegram.svg"
alt="Telegram"
className="sm:w-[80px] sm:h-[80px]"
/>
</a>
<a href="https://github.com/darwinia-network" target="_blank">
<img
src="/icons/Github.svg"
alt="Github"
className="sm:w-[80px] sm:h-[80px]"
/>
</a>
</div>
</div>
);
};

export default CollectiveBunch;
47 changes: 47 additions & 0 deletions src/components/CompanySection.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
const CompanySection = () => {
// const [rotation, setRotation] = useState(0);
// useEffect(() => {
// let lastScrollTop = 0;

// const handleScroll = () => {
// const st = window.pageYOffset || document.documentElement.scrollTop;
// if (st > lastScrollTop) {
// // Downscroll
// setRotation((prevRotation) => prevRotation + 10);
// } else {
// // Upscroll
// setRotation((prevRotation) => prevRotation - 10);
// }
// lastScrollTop = st <= 0 ? 0 : st;
// };

// window.addEventListener("scroll", handleScroll);

// return () => {
// window.removeEventListener("scroll", handleScroll);
// };
// }, []);
return (
<div className="flex items-center justify-center lg:justify-between flex-col lg:flex-row my-[100px] gap-[40px] lg:gap-[200px]">
<div className="text-[20px] lg:text-[40px] font-[500] relative text-center lg:text-left flex items-center justify-center lg:block flex-col gap-[20px] lg:gap-0">
Mint, keep, share and transfer your favorite NFTs with our new community
{/* <img
src="/images/NFT/NFT_1.png"
className="lg:absolute lg:text-[0] lg:top-[0] bottom-0 lg:my-auto lg:right-[-40%] transition-all w-[150px] h-[150px] rounded-[50%]"
style={{ transform: `rotateZ(${rotation}deg)` }}
/> */}
</div>
<div className="flex flex-col items-center justify-center w-[40vw] flex-shrink-0 gap-[10px] ">
<button className="w-[240px] h-[40px] rounded-[20px] text-[#FB3B94] bg-[#fff] font-[600] hover:scale-[1.05] duration-300">
More
</button>

<button className="w-[240px] h-[40px] rounded-[20px] text-[#fff] bg-[#FB3B94] font-[600] hover:scale-[1.05] duration-300">
Join
</button>
</div>
</div>
);
};

export default CompanySection;
Loading
Loading