Skip to content

Commit

Permalink
fix article UI
Browse files Browse the repository at this point in the history
  • Loading branch information
thecryptodiver committed Jan 20, 2022
1 parent 2e21738 commit 297d9eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion components/markdown-styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
@apply text-white;
}


.markdown p,
.markdown ul,
.markdown ol,
Expand Down
10 changes: 5 additions & 5 deletions lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ export async function getModifiedPage(page) {
finalPage = finalPage.replace(embeds[i].string, `<div class="mb-10">${html}</div>`);
} else {
const section = `
<div className="mb-14">
<div className="text-white bg-gray-900 px-6 py-3 rounded-md">
<a className="" href="${embeds[i].url}" target="_blank" rel="noreferrer">
<p className="text-white font-bold mb-1 mt-0">${result?.twitter_card?.title || result?.open_graph?.title || result?.title}</p>
<p className="text-white text-sm m-0">${result?.twitter_card?.description || result?.open_graph?.description}</p>
<div class="mb-10">
<div class="drop-shadow-xl text-white bg-gray-900 hover:bg-gray-800 px-6 py-3 rounded-md transition-transform hover:-translate-y-0.5">
<a class="" href="${embeds[i].url}" target="_blank" rel="noreferrer">
<p class="text-white font-bold !mb-1 !mt-0">${result?.twitter_card?.title || result?.open_graph?.title || result?.title}</p>
<p class="text-white text-sm !m-0">${result?.twitter_card?.description || result?.open_graph?.description}</p>
</a>
</div>
</div>`;
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
content: ['./components/**/*.js', './pages/**/*.js'],
safelist: ['mb-10', 'mb-14', 'text-white', 'bg-gray-900', 'px-6', 'py-3', 'rounded-md', 'font-bold', 'mb-1', 'mt-0', 'm-0', 'text-sm'],
safelist: ['drop-shadow-xl', 'mb-10', 'mb-14', 'transition-transform', 'hover:-translate-y-0.5', 'text-white', 'bg-gray-800', 'hover:bg-gray-800', 'bg-gray-900', 'px-6', 'py-3', 'rounded-md', 'font-bold', 'mb-1', 'mt-0', 'm-0', '!mb-1', '!mt-0', '!m-0', 'text-sm'],
theme: {
extend: {
fontFamily: {
Expand Down

1 comment on commit 297d9eb

@vercel
Copy link

@vercel vercel bot commented on 297d9eb Jan 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.