diff --git a/.env.example b/.env.example deleted file mode 100644 index cf011e232..000000000 --- a/.env.example +++ /dev/null @@ -1,7 +0,0 @@ -REACT_APP_CANDY_MACHINE_CONFIG=__PLACEHOLDER__ -REACT_APP_CANDY_MACHINE_ID=__PLACEHOLDER__ -REACT_APP_TREASURY_ADDRESS=__PLACEHOLDER__ -REACT_APP_CANDY_START_DATE=__PLACEHOLDER__ - -REACT_APP_SOLANA_NETWORK=devnet -REACT_APP_SOLANA_RPC_HOST=https://explorer-api.devnet.solana.com diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 000000000..ab81c1dd0 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,76 @@ +name: Deploy Images→PDF tool to Pages + +on: + push: + branches: ["main", "master", "claude/images-to-pdf-tool-SSHIS"] + paths: + - "public/images-to-pdf.html" + - ".github/workflows/pages.yml" + workflow_dispatch: + +permissions: + contents: write + pages: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Assemble site + run: | + mkdir -p _site + cp public/images-to-pdf.html _site/index.html + # Make the page discoverable at the repo root path + touch _site/.nojekyll + + - name: Publish to gh-pages branch + uses: peaceiris/actions-gh-pages@v4 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./_site + publish_branch: gh-pages + force_orphan: true + commit_message: "Deploy Images→PDF tool" + + - name: Enable GitHub Pages (gh-pages branch source) + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + run: | + # Create the Pages site with gh-pages as source; ignore 409 if already configured. + code=$(curl -s -o /tmp/pages_create.json -w "%{http_code}" \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${GH_TOKEN}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "https://api.github.com/repos/${REPO}/pages" \ + -d '{"source":{"branch":"gh-pages","path":"/"}}' || true) + echo "create status: $code" + cat /tmp/pages_create.json || true + if [ "$code" != "201" ] && [ "$code" != "409" ]; then + # Try to update (PUT) in case Pages is already enabled from a different source + code2=$(curl -s -o /tmp/pages_update.json -w "%{http_code}" \ + -X PUT \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${GH_TOKEN}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "https://api.github.com/repos/${REPO}/pages" \ + -d '{"source":{"branch":"gh-pages","path":"/"}}' || true) + echo "update status: $code2" + cat /tmp/pages_update.json || true + fi + + - name: Print site URL + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} + run: | + curl -s \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${GH_TOKEN}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + "https://api.github.com/repos/${REPO}/pages" | tee /tmp/pages.json + url=$(grep -o '"html_url":[[:space:]]*"[^"]*"' /tmp/pages.json | head -1 | sed 's/.*"html_url":[[:space:]]*"\([^"]*\)".*/\1/') + echo "Pages URL: $url" diff --git a/IMPORTANT.txt b/IMPORTANT.txt new file mode 100644 index 000000000..963e7b46b --- /dev/null +++ b/IMPORTANT.txt @@ -0,0 +1,19 @@ +pubkey: rrtHDnD9XTeAceT6z34vJm5uLiQbuJ3MDye8xjAYP5A + +devote lion melody erode camp boss length seek hungry sleep fence coconut + + +candy machine with publickey: DgNrs5oaPWJdRLrR1511AK18UPa9rHBstchJyuUfXsbx + +{"program":{"uuid":"DgNrs5","config":"DgNrs5oaPWJdRLrR1511AK18UPa9rHBstchJyuUfXsbx"},"items":{"0":{"link":"https://arweave.net/XUq2M_D13Dj0ovffeHs54PVxO0VsJZzWiQjE_TxnUn4","name":"NFT 0","onChain":true},"1":{"link":"https://arweave.net/QXO6BWR8t91P9qTQG2zyiRL2hasSR7PuPmA3dSPbUZ4","name":"NFT 1","onChain":true}},"env":"devnet","cacheName":"temp","authority":"rrtHDnD9XTeAceT6z34vJm5uLiQbuJ3MDye8xjAYP5A"} + + +candy machine pubkey: Emt7aNgcuKwtAtyhctAyxAsH7PjaXpSPDy9kTnbwsu8z + +timestamp: 983401200 + + +must lens beach armed judge typical outside brain start beef discover will + + http://localhost:3000 + On Your Network: http://192.168.56.1:3000 \ No newline at end of file diff --git a/public/images-to-pdf.html b/public/images-to-pdf.html new file mode 100644 index 000000000..63b7d98e3 --- /dev/null +++ b/public/images-to-pdf.html @@ -0,0 +1,350 @@ + + + + + +Images → PDF + + + + +
+

Images → PDF

+

Glisse tes images, réordonne-les si besoin, génère un PDF avec une image par page.

+ +
+
+
+ + +
+
+ + +
+
+ + +
+
+ + + +
+ +
+
+
+ +
+
+ Clique ou glisse tes images ici +
JPEG, PNG, WebP — plusieurs à la fois
+ +
+ +
+ + + 0 image +
+ +
+
+
+
+ + + + diff --git a/public/index.html b/public/index.html index aa069f27c..8984a348d 100644 --- a/public/index.html +++ b/public/index.html @@ -39,5 +39,17 @@ To begin the development, run `npm start` or `yarn start`. To create a production bundle, use `npm run build` or `yarn build`. --> - - + +
+Follow @KakeDrop_NFT diff --git a/src/Home.tsx b/src/Home.tsx index 93bcf2b62..9805ecdb1 100644 --- a/src/Home.tsx +++ b/src/Home.tsx @@ -18,14 +18,18 @@ import { mintOneToken, shortenAddress, } from "./candy-machine"; +import { LaptopWindows } from "@material-ui/icons"; -const ConnectButton = styled(WalletDialogButton)``; - +const ConnectButton = styled(WalletDialogButton)`background-color: #4CAF50 !important; `; const CounterText = styled.span``; // add your styles here - const MintContainer = styled.div``; // add your styles here +const MintButton = styled(Button)` padding: 25px !important; +background-color:#4CAF50 !important; color:white !important`; // add your styles here + +const TestContainer = styled.div``; // add your styles here +const ConnectButton2 = styled(Button)``; + -const MintButton = styled(Button)``; // add your styles here export interface HomeProps { candyMachineId: anchor.web3.PublicKey; @@ -82,6 +86,12 @@ const Home = (props: HomeProps) => { setCandyMachine(candyMachine); })(); }; + const onKhra = async () => { + console.log('Le lien a été cliqué.'); + window.location.assign('https://www.twitter.com'); + + }; + const onMint = async () => { try { @@ -208,6 +218,14 @@ const Home = (props: HomeProps) => { )} + + + About + + + + + + + + + + + Document + + +

Bonsoir

+ + \ No newline at end of file diff --git a/src/img/Groupe 4.png b/src/img/Groupe 4.png new file mode 100644 index 000000000..b34471d03 Binary files /dev/null and b/src/img/Groupe 4.png differ diff --git a/src/index.css b/src/index.css index ed2b46898..01e038638 100644 --- a/src/index.css +++ b/src/index.css @@ -5,11 +5,72 @@ body { sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; - background-color: #303030; + background-image: url("/src/img/Groupe\ 4.png"); + background-repeat: no-repeat; + background-attachment: fixed; + background-position: center center; + background-repeat: no-repeat; + background-size: cover; + background-attachment: fixed; color: #FFFFFF; + background-color: black; } code { font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; } + +.sc-eCstlR { + position: absolute; + top: 50%; + left: 55%; + margin-top: -50px; + margin-left: -50px; + + + border-radius: 3px; + box-shadow: 0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12); + /* additional code */ + text-align: center; + vertical-align: middle; + padding: 18px; + background-color:#4CAF50; + justify-content: center; + + /* The same as your div height */ + } + + .sc-dlfnuX { + position: absolute; + top: 50%; + left: 45%; + margin-top: -50px; + margin-left: -50px; + width: 100px; + height: 100px; + /* additional code */ + } + + main p + + { + background-color: #4CAF50; + padding: 14px 16px; + margin: 0px 0px ; /* Pour l'écart*/ + border-style: solid; + border-color:#4CAF50; + display: inline-block; + + + } + + + main + + { + + + + } + \ No newline at end of file