-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(demos/narcissus-astro): 💫 update home page
- Loading branch information
Showing
3 changed files
with
108 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { themeVars } from '../styles/themes/theme.css'; | ||
import { fontSize2, fontSize3, fontSize4 } from '../styles/vars/font.css'; | ||
import { spacing0, spacing1, spacing12, spacingPx, spacingPx2 } from '../styles/vars/spacing.css'; | ||
import { maxWidthFull } from '../styles/vars/widths.css'; | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const cardContainer = style({ | ||
marginTop: [spacing12], | ||
marginBottom: [spacing12], | ||
}); | ||
|
||
export const cardContent = style({ | ||
borderStyle: 'solid', | ||
borderWidth: [spacingPx], | ||
borderColor: themeVars.colour.secondary, | ||
boxShadow: `${spacingPx2} ${spacing1} ${spacing1} ${themeVars.colour.shadow}`, | ||
backgroundColor: themeVars.colour.accent, | ||
width: [maxWidthFull], | ||
}); | ||
|
||
export const contactDetails = style({ | ||
listStyleType: 'none', | ||
}); | ||
|
||
export const summaryHeading = style({ | ||
fontSize: [fontSize4], | ||
marginTop: [spacing0], | ||
color: themeVars.colour.textSecondary, | ||
}); | ||
|
||
export const summaryText = style({ | ||
fontSize: [fontSize2], | ||
color: themeVars.colour.textSecondary, | ||
}); | ||
|
||
export const extraSummaryText = style({ | ||
color: themeVars.colour.textSecondary, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import type { FC } from 'react'; | ||
import { | ||
cardContainer, | ||
cardContent, | ||
extraSummaryText, | ||
summaryHeading, | ||
summaryText, | ||
} from './AboutCard.css'; | ||
import Card from './Card'; | ||
|
||
interface AboutCardProps {} | ||
|
||
const AboutCard: FC<AboutCardProps> = function AboutCard() { | ||
return ( | ||
<Card containerClass={cardContainer} contentClass={cardContent}> | ||
<h2 className={summaryHeading}> | ||
<span>About Narcissus</span> | ||
</h2> | ||
<p className={summaryText}> | ||
Narcissus is a proof of concept <strong>backend as a service</strong> app which lets you | ||
create a blog site quicker by managing important blog features like | ||
<strong>comment and message forms</strong> | ||
as well as post | ||
<strong>views and likes</strong>. | ||
</p> | ||
<p className={extraSummaryText}> | ||
This demo <strong>Astro</strong> site is static and uses Serverless | ||
<strong>Rust Cloudflare Workers</strong> | ||
to read and create comments as well as other interactive elements using REST requests, | ||
adding spam detection and Captchas without the added hassle of adding spam detection and | ||
Captchas. The app is backed by a <strong>Supabase</strong> PostgreSQL database. | ||
</p> | ||
</Card> | ||
); | ||
}; | ||
|
||
export default AboutCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters