Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Fix blog styling

Luke Vella6d7413bbef3b
diff --git a/apps/landing/src/app/[locale]/globals.css b/apps/landing/src/app/[locale]/globals.css
index 09eca6d0a..105bf3702 100644
--- a/apps/landing/src/app/[locale]/globals.css
+++ b/apps/landing/src/app/[locale]/globals.css
@@ -6,3 +6,58 @@
body {
@apply bg-gray-100;
}
+
+/* Blog post content styles */
+.blog-content {
+ h2,
+ h3,
+ h4 {
+ @apply mb-4 mt-12;
+ }
+ h2 {
+ @apply text-2xl font-bold;
+ }
+ h3 {
+ @apply text-xl font-semibold;
+ }
+ h4 {
+ @apply text-lg font-semibold;
+ }
+ p {
+ @apply mb-6 leading-relaxed;
+ }
+ p:has(> img) {
+ @apply flex items-center justify-center overflow-hidden rounded-xl border bg-gray-50 p-2;
+ }
+ img {
+ @apply mx-auto rounded-lg border;
+ }
+ ul,
+ ol {
+ @apply mb-6 ml-6;
+ }
+ ul {
+ @apply list-disc;
+ }
+ ol {
+ @apply list-decimal;
+ }
+ li {
+ @apply mb-2;
+ }
+ hr {
+ @apply my-12;
+ }
+ a {
+ @apply text-primary-600 hover:underline;
+ }
+ blockquote {
+ @apply my-6 border-l-4 border-gray-300 pl-4 italic text-gray-700;
+ }
+ pre {
+ @apply my-6 overflow-x-auto rounded-lg bg-gray-100 p-4;
+ }
+ code {
+ @apply rounded bg-gray-100 px-1 py-0.5 text-sm;
+ }
+}
diff --git a/apps/landing/src/components/blog/post-body.tsx b/apps/landing/src/components/blog/post-body.tsx
deleted file mode 100644
index 4c4d43339..000000000
--- a/apps/landing/src/components/blog/post-body.tsx
+++ /dev/null
@@ -1,17 +0,0 @@
-import markdownStyles from "./markdown-styles.module.css";
-
-type Props = {
- content: string;
-};
-
-const PostBody = ({ content }: Props) => {
- return (
- <div
- className={markdownStyles.markdown}
- // biome-ignore lint/security/noDangerouslySetInnerHtml: Fix this later
- dangerouslySetInnerHTML={{ __html: content }}
- />
- );
-};
-
-export default PostBody;