-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddf8c78
commit b123bdc
Showing
107 changed files
with
615 additions
and
444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
73 changes: 73 additions & 0 deletions
73
src/components/AdSuggestion/AdSuggestionForms/SuggestAds.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import React, { useState } from "react"; | ||
import "./SuggestAds.css"; | ||
import arrowback from "../../../data/arrow-left.png"; | ||
import CryptoForm from "./CryptoForm"; | ||
import IcoForm from "./IcoForm"; | ||
import { NavLink } from "react-router-dom"; | ||
|
||
export default function SuggestAds() { | ||
const [suggestionForm, setSuggestionForm] = useState("cryptoform"); | ||
|
||
return ( | ||
<div className="suggestAd-container"> | ||
<span className="suggestAd-span"> | ||
<NavLink to='/ad-suggestion'> | ||
<img src={arrowback} alt="navigate back arrow" /> | ||
</NavLink> | ||
|
||
<h3>Suggest Ads</h3> | ||
</span> | ||
<p className="projectType">Project types</p> | ||
<div className="suggestAd-buttons"> | ||
<button | ||
onClick={() => { | ||
setSuggestionForm("cryptoform"); | ||
}} | ||
style={{ | ||
backgroundColor: | ||
suggestionForm === "cryptoform" ? "#2793ff" : "#4b5768", | ||
}} | ||
> | ||
Crypto Project | ||
</button> | ||
<button | ||
onClick={() => { | ||
setSuggestionForm("nftform"); | ||
}} | ||
style={{ | ||
backgroundColor: | ||
suggestionForm === "nftform" ? "#2793ff" : "#4b5768", | ||
}} | ||
> | ||
NFT Project | ||
</button> | ||
<button | ||
onClick={() => { | ||
setSuggestionForm("icoform"); | ||
}} | ||
style={{ | ||
backgroundColor: | ||
suggestionForm === "icoform" ? "#2793ff" : "#4b5768", | ||
}} | ||
> | ||
ICO Drop | ||
</button> | ||
<button | ||
onClick={() => { | ||
setSuggestionForm("metaverseform"); | ||
}} | ||
style={{ | ||
backgroundColor: | ||
suggestionForm === "metaverseform" ? "#2793ff" : "#4b5768", | ||
}} | ||
> | ||
Metaverse Project | ||
</button> | ||
</div> | ||
{suggestionForm === "cryptoform" && <CryptoForm />} | ||
{suggestionForm === "icoform" && <IcoForm />} | ||
{suggestionForm === "nftform" && <CryptoForm />} | ||
{suggestionForm === "metaverseform" && <CryptoForm />} | ||
</div> | ||
); | ||
} |
39 changes: 39 additions & 0 deletions
39
src/components/AdSuggestion/AdSuggestionStat/AdSuggestionStatus.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from "react"; | ||
import "./AddSuggestionStatus.css"; | ||
import arrowback from "../../../data/arrow-left.png"; | ||
import { suggestionStatus } from "../../../data/data"; | ||
import { NavLink } from "react-router-dom"; | ||
|
||
export default function AdSuggestionStatus() { | ||
const statusItems = (props) => { | ||
return ( | ||
<div className="statusItem"> | ||
<div className="status-details"> | ||
<img src={props.img} alt="ad suggestion" /> | ||
<div className="status-detail"> | ||
<p>{props.name}</p> | ||
<p>Collections</p> | ||
</div> | ||
</div> | ||
<span className="status"> | ||
<img src={props.statusImg} alt="Ad status" /> | ||
{props.status} | ||
</span> | ||
</div> | ||
); | ||
}; | ||
return ( | ||
<div className="SuggestionStatus-container"> | ||
<span className="suggestAd-span"> | ||
<NavLink to='/ad-suggestion'> | ||
<img src={arrowback} alt="navigate back arrow" /> | ||
</NavLink> | ||
|
||
<h3>Ad Suggestion Status</h3> | ||
</span> | ||
<div className="suggestion-status"> | ||
{suggestionStatus.map(statusItems)} | ||
</div> | ||
</div> | ||
); | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
import React from "react"; | ||
import "./AddSuggestions.css"; | ||
import { Link, NavLink } from "react-router-dom"; | ||
import watch from "../../data/watch.png"; | ||
import plus from "../../data/plus.png"; | ||
import bell from "../../data/bell.png"; | ||
import desk from "../../data/desk.png"; | ||
import NftProjectAd from "./NftProjectAd"; | ||
import CryptoProjectAd from "./CryptoProjectAd"; | ||
import MetaverseProjects from "./MetaverseProjects"; | ||
import IcoProjectAds from "./IcoProjectAds"; | ||
|
||
export default function AddSuggestions() { | ||
return ( | ||
<div className="add-suggestion-container"> | ||
<div className="add-suggestion-inner"> | ||
<div className="featured-ads"> | ||
<h3 className="featured-ads-h3">Featured Ads</h3> | ||
<div className="featured-ads-btns"> | ||
<NavLink to="/ad-status"> | ||
<button className="status-btn"> | ||
<img src={watch} alt="ad status" /> | ||
Ad Status | ||
</button> | ||
</NavLink> | ||
<NavLink to="/suggest-ads"> | ||
<button className="suggest-btn"> | ||
<img src={plus} alt="plus sign" /> | ||
Suggest Ads | ||
</button> | ||
</NavLink> | ||
</div> | ||
</div> | ||
<div className="ad-boxes"> | ||
<div | ||
className="ad-box-big" | ||
style={{ | ||
backgroundImage: `url(${bell})`, | ||
backgroundSize: "contain", | ||
backgroundPosition: "right", | ||
backgroundRepeat: "no-repeat", | ||
}} | ||
> | ||
<div className="big-box-content"> | ||
<h3>The Right NFT At the festival</h3> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sodales | ||
mollis quisque commodo facilisis adipiscing curabitur fringilla. | ||
Elit netus sed sit fermentum vel ornare sit feugiat felis. | ||
</p> | ||
<Link to="/" className="ad-readmore-link"> | ||
Read More | ||
</Link> | ||
</div> | ||
</div> | ||
<div | ||
className="ad-box-small" | ||
style={{ | ||
backgroundImage: `url(${desk})`, | ||
backgroundSize: "contain", | ||
backgroundPosition: "bottom", | ||
backgroundRepeat: "no-repeat", | ||
}} | ||
> | ||
<h3>The Right NFT At the festival</h3> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sodales | ||
mollis quisque commodo facilisis adipiscing curabitur fringilla. | ||
Elit netus sed sit fermentum vel ornare sit feugiat felis. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<NftProjectAd /> | ||
<CryptoProjectAd /> | ||
<MetaverseProjects /> | ||
<IcoProjectAds /> | ||
|
||
{/* <SuggestAds.jsx /> <AdSuggestionStatus /> Render this component */} | ||
</div> | ||
); | ||
} |
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
src/components/CryptoProjectAd.jsx → ...mponents/AdSuggestion/CryptoProjectAd.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
src/components/IcoProjectAds.jsx → ...components/AdSuggestion/IcoProjectAds.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
src/components/MetaverseProjects.jsx → ...onents/AdSuggestion/MetaverseProjects.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 4 additions & 6 deletions
10
src/components/NftProjectAd.jsx → src/components/AdSuggestion/NftProjectAd.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.