|
|
|
@ -7,12 +7,16 @@ interface Props {
|
|
|
|
|
description: string |
|
|
|
|
} |
|
|
|
|
const WebsiteCard = (props: Props) => { |
|
|
|
|
const urlObj = new URL(props.url) |
|
|
|
|
urlObj.searchParams.set("from", "Searching.ton") |
|
|
|
|
|
|
|
|
|
const url = urlObj.toString(); |
|
|
|
|
return ( |
|
|
|
|
<div className={s.root}> |
|
|
|
|
<a target="_blank" className={s.titleLink} href={props.url}> |
|
|
|
|
<a target="_blank" className={s.titleLink} href={url}> |
|
|
|
|
{props.title} |
|
|
|
|
</a> |
|
|
|
|
<a target="_blank" className={s.miniLink} href={props.url}> |
|
|
|
|
<a target="_blank" className={s.miniLink} href={url}> |
|
|
|
|
{cleanUrlForUi(props.url)} |
|
|
|
|
</a> |
|
|
|
|
<div className={s.description}>{props.description}</div> |
|
|
|
|