2021-05-21 11:30:59 +03:00
< div class = " rounded-md bg-yellow-50 dark:bg-transparent dark:border border-yellow-200 p-4 " >
< div class = " flex " >
< div class = " flex-shrink-0 " >
< svg class = " h-5 w-5 text-yellow-400 dark:text-yellow-300 " xmlns = " http://www.w3.org/2000/svg " viewBox = " 0 0 20 20 " fill = " currentColor " aria - hidden = " true " >
< path fill - rule = " evenodd " d = " M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z " clip - rule = " evenodd " / >
< / svg >
< / div >
< div class = " ml-3 " >
< h3 class = " text-sm font-medium text-yellow-800 dark:text-yellow-400 " >
Deprecated feature
< / h3 >
< div class = " mt-2 text-sm text-yellow-700 dark:text-yellow-300 " >
< p >
We are moving away from CNAME - based custom domains . If you ' re concerned about adblockers, we recommend
2021-10-26 11:26:43 +03:00
< % = link ( " setting up a proxy " , class : " underline text-yellow-800 dark:text-yellow-400 " , to : " https://plausible.io/docs/proxy/introduction " , target : " _blank " , rel : " noferrer " ) % > for your analytics script instead .
2021-05-21 11:30:59 +03:00
< / p >
< / div >
< / div >
< / div >
< / div >
2020-12-16 12:57:28 +03:00
< div class = " shadow bg-white dark:bg-gray-800 sm:rounded-md sm:overflow-hidden py-6 px-4 sm:p-6 " >
2020-11-19 16:56:03 +03:00
< header class = " relative " >
2020-12-16 12:57:28 +03:00
< h2 class = " text-lg leading-6 font-medium text-gray-900 dark:text-gray-100 " > Custom domain < / h2 >
< p class = " mt-1 text-sm leading-5 text-gray-500 dark:text-gray-200 " > Serve the tracking script from your domain name as a first - party resource instead of loading the script from our domain . < / p >
2020-11-19 16:56:03 +03:00
2022-08-15 04:20:40 +03:00
< % = link ( to : " https://plausible.io/docs/proxy/introduction " , target : " _blank " ) do % >
2020-11-19 16:56:03 +03:00
< svg class = " w-6 h-6 absolute top-0 right-0 text-gray-400 " fill = " currentColor " viewBox = " 0 0 20 20 " xmlns = " http://www.w3.org/2000/svg " > < path fill - rule = " evenodd " d = " M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z " clip - rule = " evenodd " > < / path > < / svg >
< % end % >
2020-11-16 16:38:44 +03:00
< / header >
2020-12-16 12:57:28 +03:00
< div class = " mt-6 dark:text-gray-100 flex justify-between items-center " >
2020-11-16 16:38:44 +03:00
< % = if @site . custom_domain do % >
2020-12-16 12:57:28 +03:00
< span >
Configured domain : < b > < % = @site . custom_domain . domain % > < / b >
< / span >
< % = link ( " Remove custom domain " , to : " /sites/ #{ URI . encode_www_form ( @site . domain ) } /custom-domains/ #{ @site . custom_domain . id } " , class : " inline-block mt-4 px-4 py-2 border border-gray-300 dark:border-gray-500 text-sm leading-5 font-medium rounded-md text-red-700 bg-white dark:bg-gray-800 hover:text-red-500 dark:hover:text-red-400 focus:outline-none focus:border-blue-300 focus:ring active:text-red-800 active:bg-gray-50 transition ease-in-out duration-150 " , method : " delete " ) % >
2020-11-16 16:38:44 +03:00
< % end % >
< / div >
< / div >