fix: replace ampersand + (landing page): fix image preview

This commit is contained in:
Conrad
2021-06-20 16:51:54 -04:00
parent 5e2e082eaa
commit ba91b8cb3a
2 changed files with 2 additions and 9 deletions

View File

@@ -38,14 +38,7 @@ export default function Home() {
<Example>
<p style={{fontSize: "1rem", fontWeight: "bold", marginTop: "1rem"}}>Preview</p>
{
userId.length < 17
?
<p>Please provide a valid user ID!</p>
:
<img src={`https://lanyard-profile-readme.vercel.app/api/${userId}`} alt="Discord Presence Preview" />
}
<img src={`https://lanyard-profile-readme.vercel.app/api/${userId}`} alt="[Please provide a valid user ID!]" />
</Example>
</Container>

View File

@@ -295,7 +295,7 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise<
white-space: nowrap;
text-overflow: ellipsis;
color: ${theme === 'dark' ? '#ccc' : '#777'};
">By ${body.data.spotify.artist.replace(/\;/g, ",")}</p>
">By ${body.data.spotify.artist.replace(/\;/g, ",").replace(/\&/g, "and")}</p>
</div>
</div>
`