This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
const isClicked = ref(false)
|
||||
const copyToClipBoard = () => {
|
||||
navigator.clipboard
|
||||
.writeText('curl -sL getdweb.valere.dev | sudo bash')
|
||||
.writeText('curl -sL https://raw.githubusercontent.com/docker-web/docker-web/master/install.sh | sudo bash')
|
||||
.then(() => {
|
||||
isClicked.value = true
|
||||
setTimeout(() => {
|
||||
@@ -15,8 +15,9 @@ const copyToClipBoard = () => {
|
||||
<template>
|
||||
<section class="py-4 sm:flex justify-center items-center">
|
||||
<div
|
||||
class="font-mono bg-neutral-900 text-neutral-50 rounded-xl flex justify-between items-center p-4 border border-transparent text-base shadow-primary-700 relative">
|
||||
<span class="select-all"> curl -L https://raw.githubusercontent.com/docker-web/docker-web/master/install.sh | sudo
|
||||
class="overflow-hidden font-mono bg-neutral-900 text-neutral-50 rounded-xl flex justify-between items-center p-4 border border-transparent text-base shadow-primary-700 relative">
|
||||
<span class="max-w-72 whitespace-nowrap overflow-hidden select-all"> curl -L
|
||||
https://raw.githubusercontent.com/docker-web/docker-web/master/install.sh | sudo
|
||||
bash </span>
|
||||
<SvgClipboard class="bg-red ml-4 cursor-pointer" :class="{ 'animate-ping': isClicked }"
|
||||
@click="copyToClipBoard" />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<svg class="MuiBox-root css-15p9n5u" fill="#ffffff" data-darkreader-inline-fill="" version="1.1"
|
||||
<svg class="MuiBox-root css-15p9n5u mt-4" fill="#ffffff" data-darkreader-inline-fill="" version="1.1"
|
||||
viewBox="0 0 195 194.57" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<g transform="translate(16.659 8.322)">
|
||||
|
||||
Reference in New Issue
Block a user