import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import TextInput from '../TextInput'; import Button from '../Button'; import Error from '../Error'; import { fadeIn } from '../../helpers/animations'; const Form = styled.form` position: relative; display: flex; margin: 32px 0; animation: ${fadeIn} 0.8s ease; input { flex: 0 0 auto; margin-right: 16px; } @media only screen and (max-width: 768px) { margin: 16px 0; } `; const DomainWrapper = styled.div` display: flex; align-items: center; margin: 32px 0; animation: ${fadeIn} 0.8s ease; button { margin-right: 16px; } @media only screen and (max-width: 768px) { flex-direction: column; align-items: flex-start; > * { margin: 8px 0; } } `; const Domain = styled.span` margin-right: 16px; font-size: 20px; font-weight: bold; border-bottom: 2px dotted #999; `; const SettingsDomain = ({ settings, handleCustomDomain, loading, showDomainInput, showModal }) => (
You can set a custom domain for your short URLs, so instead of kutt.it/shorturl you can have example.com/shorturl.
Point your domain A record to 31.220.54.35 then add the domain via form below:
{settings.customDomain && !settings.domainInput ? (