Skip to content

Commit

Permalink
Dark mode (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwabed authored May 13, 2023
1 parent e72d9d6 commit 2fb3841
Show file tree
Hide file tree
Showing 35 changed files with 1,417 additions and 1,309 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"useTabs": false,
"singleQuote": true,
"trailingComma": "none",
"trailingComma": "es5",
"arrowParens": "avoid",
"svelteAllowShorthand": true,
"svelteSortOrder": "scripts-markup-options-styles",
Expand Down
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
# Pena

Website coordinates Kalwabed's abstract writings

## Demo

[https://pena.kalwabed.xyz](https://pena.kalwabed.xyz)

## Tech Stack
- Svelte Kit

- SvelteKit
- TypeScript
- Uno CSS + Tailwind CSS
- Uno CSS
- Prisma + Planetscale

## Getting Started
Expand All @@ -28,6 +31,7 @@ pnpm install
```

Generate Prisma Client.

```bash
pnpx prisma generate
```
Expand All @@ -39,6 +43,7 @@ pnpm dev
```

Open [http://127.0.0.1:5173](http://127.0.0.1:5173) with your browser to see the result.

## Environment Variables

To run this project, you will need to add the following environment variables to your `.env` file.
Expand All @@ -50,6 +55,7 @@ To run this project, you will need to add the following environment variables to
`BOT_GROUP_ID`: (optional) Telegram bot group id.

## Deployment

You can easily deploy to Vercel, or you can learn more from https://kit.svelte.dev/docs/adapters.

## Learn More
Expand All @@ -64,4 +70,5 @@ To learn more about Next.js, take a look at the following resources:
- [@kalwabed](https://www.github.com/kalwabed)

## License

[MIT](https://choosealicense.com/licenses/mit/)
16 changes: 8 additions & 8 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1678660218364" clover="3.2.0">
<project timestamp="1678660218364" name="All files">
<coverage generated="1683988030391" clover="3.2.0">
<project timestamp="1683988030391" name="All files">
<metrics statements="17" coveredstatements="17" conditionals="2" coveredconditionals="2" methods="8" coveredmethods="8" elements="27" coveredelements="27" complexity="0" loc="17" ncloc="17" packages="1" files="3" classes="3"/>
<file name="date.ts" path="/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/date.ts">
<metrics statements="3" coveredstatements="3" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
Expand All @@ -11,15 +11,15 @@
<file name="fetch-data.ts" path="/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/fetch-data.ts">
<metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="5"/>
<line num="13" count="1" type="stmt"/>
<line num="18" count="44" type="stmt"/>
<line num="18" count="48" type="stmt"/>
<line num="22" count="2" type="stmt"/>
<line num="23" count="22" type="stmt"/>
<line num="25" count="22" type="stmt"/>
<line num="26" count="22" type="stmt"/>
<line num="28" count="22" type="stmt"/>
<line num="23" count="24" type="stmt"/>
<line num="25" count="24" type="stmt"/>
<line num="26" count="24" type="stmt"/>
<line num="28" count="24" type="stmt"/>
<line num="36" count="1" type="stmt"/>
<line num="37" count="1" type="stmt"/>
<line num="39" count="24" type="stmt"/>
<line num="39" count="29" type="stmt"/>
</file>
<file name="slug.ts" path="/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/slug.ts">
<metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
Expand Down
2 changes: 1 addition & 1 deletion coverage/coverage-final.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/date.ts": {"path":"/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/date.ts","statementMap":{"0":{"start":{"line":1,"column":29},"end":{"line":5,"column":null}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":null}},"2":{"start":{"line":2,"column":13},"end":{"line":2,"column":null}},"3":{"start":{"line":4,"column":2},"end":{"line":4,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":29},"end":{"line":1,"column":30}},"loc":{"start":{"line":1,"column":100},"end":{"line":5,"column":null}}}},"branchMap":{"0":{"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":null}},"type":"if","locations":[{"start":{"line":2,"column":2},"end":{"line":2,"column":null}},{"start":{"line":2,"column":2},"end":{"line":2,"column":null}}]}},"s":{"0":1,"1":2,"2":1,"3":1},"f":{"0":2},"b":{"0":[1,1]}}
,"/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/fetch-data.ts": {"path":"/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/fetch-data.ts","statementMap":{"0":{"start":{"line":13,"column":21},"end":{"line":15,"column":null}},"1":{"start":{"line":18,"column":2},"end":{"line":18,"column":null}},"2":{"start":{"line":22,"column":2},"end":{"line":32,"column":null}},"3":{"start":{"line":23,"column":25},"end":{"line":23,"column":null}},"4":{"start":{"line":25,"column":21},"end":{"line":25,"column":null}},"5":{"start":{"line":26,"column":17},"end":{"line":26,"column":null}},"6":{"start":{"line":28,"column":4},"end":{"line":31,"column":null}},"7":{"start":{"line":36,"column":23},"end":{"line":36,"column":null}},"8":{"start":{"line":37,"column":17},"end":{"line":37,"column":null}},"9":{"start":{"line":39,"column":2},"end":{"line":39,"column":null}},"10":{"start":{"line":39,"column":31},"end":{"line":39,"column":100}}},"fnMap":{"0":{"name":"slugTransformer","decl":{"start":{"line":17,"column":16},"end":{"line":17,"column":32}},"loc":{"start":{"line":17,"column":60},"end":{"line":19,"column":null}}},"1":{"name":"generateFileMetadata","decl":{"start":{"line":21,"column":16},"end":{"line":21,"column":37}},"loc":{"start":{"line":21,"column":108},"end":{"line":33,"column":null}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":22,"column":32},"end":{"line":22,"column":39}},"loc":{"start":{"line":22,"column":69},"end":{"line":32,"column":3}}},"3":{"name":"getResourcesAsync","decl":{"start":{"line":35,"column":22},"end":{"line":35,"column":59}},"loc":{"start":{"line":35,"column":59},"end":{"line":40,"column":null}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":39,"column":21},"end":{"line":39,"column":22}},"loc":{"start":{"line":39,"column":31},"end":{"line":39,"column":100}}}},"branchMap":{},"s":{"0":1,"1":44,"2":2,"3":22,"4":22,"5":22,"6":22,"7":1,"8":1,"9":1,"10":24},"f":{"0":44,"1":2,"2":22,"3":1,"4":24},"b":{}}
,"/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/fetch-data.ts": {"path":"/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/fetch-data.ts","statementMap":{"0":{"start":{"line":13,"column":21},"end":{"line":15,"column":null}},"1":{"start":{"line":18,"column":2},"end":{"line":18,"column":null}},"2":{"start":{"line":22,"column":2},"end":{"line":32,"column":null}},"3":{"start":{"line":23,"column":25},"end":{"line":23,"column":null}},"4":{"start":{"line":25,"column":21},"end":{"line":25,"column":null}},"5":{"start":{"line":26,"column":17},"end":{"line":26,"column":null}},"6":{"start":{"line":28,"column":4},"end":{"line":31,"column":null}},"7":{"start":{"line":36,"column":23},"end":{"line":36,"column":null}},"8":{"start":{"line":37,"column":17},"end":{"line":37,"column":null}},"9":{"start":{"line":39,"column":2},"end":{"line":39,"column":null}},"10":{"start":{"line":39,"column":31},"end":{"line":39,"column":100}}},"fnMap":{"0":{"name":"slugTransformer","decl":{"start":{"line":17,"column":16},"end":{"line":17,"column":32}},"loc":{"start":{"line":17,"column":60},"end":{"line":19,"column":null}}},"1":{"name":"generateFileMetadata","decl":{"start":{"line":21,"column":16},"end":{"line":21,"column":37}},"loc":{"start":{"line":21,"column":108},"end":{"line":33,"column":null}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":22,"column":32},"end":{"line":22,"column":39}},"loc":{"start":{"line":22,"column":69},"end":{"line":32,"column":3}}},"3":{"name":"getResourcesAsync","decl":{"start":{"line":35,"column":22},"end":{"line":35,"column":59}},"loc":{"start":{"line":35,"column":59},"end":{"line":40,"column":null}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":39,"column":21},"end":{"line":39,"column":22}},"loc":{"start":{"line":39,"column":31},"end":{"line":39,"column":100}}}},"branchMap":{},"s":{"0":1,"1":48,"2":2,"3":24,"4":24,"5":24,"6":24,"7":1,"8":1,"9":1,"10":29},"f":{"0":48,"1":2,"2":24,"3":1,"4":29},"b":{}}
,"/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/slug.ts": {"path":"/home/kalwabed/Workspaces/personal/pena.kalwabed.xyz/src/lib/utils/slug.ts","statementMap":{"0":{"start":{"line":1,"column":23},"end":{"line":3,"column":null}},"1":{"start":{"line":2,"column":2},"end":{"line":2,"column":null}},"2":{"start":{"line":5,"column":25},"end":{"line":7,"column":null}},"3":{"start":{"line":6,"column":2},"end":{"line":6,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":23},"end":{"line":1,"column":24}},"loc":{"start":{"line":1,"column":48},"end":{"line":3,"column":null}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":5,"column":25},"end":{"line":5,"column":26}},"loc":{"start":{"line":5,"column":50},"end":{"line":7,"column":null}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1},"f":{"0":1,"1":1},"b":{}}
}
2 changes: 1 addition & 1 deletion coverage/date.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h1><a href="index.html">All files</a> date.ts</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-03-12T22:30:18.348Z
at 2023-05-13T14:27:10.376Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
14 changes: 7 additions & 7 deletions coverage/fetch-data.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,17 @@ <h1><a href="index.html">All files</a> fetch-data.ts</h1>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">44x</span>
<span class="cline-any cline-yes">48x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">2x</span>
<span class="cline-any cline-yes">22x</span>
<span class="cline-any cline-yes">24x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">22x</span>
<span class="cline-any cline-yes">22x</span>
<span class="cline-any cline-yes">24x</span>
<span class="cline-any cline-yes">24x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">22x</span>
<span class="cline-any cline-yes">24x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
Expand All @@ -141,7 +141,7 @@ <h1><a href="index.html">All files</a> fetch-data.ts</h1>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">24x</span>
<span class="cline-any cline-yes">29x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">import matter from 'gray-matter';
&nbsp;
Expand Down Expand Up @@ -190,7 +190,7 @@ <h1><a href="index.html">All files</a> fetch-data.ts</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-03-12T22:30:18.348Z
at 2023-05-13T14:27:10.376Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ <h1>All files</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-03-12T22:30:18.348Z
at 2023-05-13T14:27:10.376Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion coverage/slug.ts.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ <h1><a href="index.html">All files</a> slug.ts</h1>
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-03-12T22:30:18.348Z
at 2023-05-13T14:27:10.376Z
</div>
<script src="prettify.js"></script>
<script>
Expand Down
47 changes: 25 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,42 +9,45 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"vercel-build": "prisma generate && yarn build",
"coverage": "vitest run --coverage",
"test": "vitest run",
"lint": "prettier --plugin-search-dir . --check . && eslint ."
},
"devDependencies": {
"@sveltejs/adapter-vercel": "2.3.1",
"@sveltejs/kit": "1.11.0",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"@unocss/preset-rem-to-px": "^0.50.4",
"@unocss/preset-typography": "^0.50.4",
"@unocss/reset": "^0.50.4",
"@unocss/transformer-variant-group": "^0.50.4",
"@vitest/coverage-istanbul": "^0.29.2",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"@iconify-json/radix-icons": "^1.1.10",
"@sveltejs/adapter-vercel": "2.4.3",
"@sveltejs/kit": "1.16.3",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"@unocss/preset-icons": "^0.51.12",
"@unocss/preset-rem-to-px": "^0.51.12",
"@unocss/preset-typography": "^0.51.12",
"@unocss/reset": "^0.51.12",
"@unocss/transformer-variant-group": "^0.51.12",
"@vitest/coverage-istanbul": "^0.31.0",
"eslint": "^8.40.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-svelte3": "^4.0.0",
"gray-matter": "^4.0.3",
"mdsvex": "^0.10.6",
"prettier": "^2.8.4",
"prettier-plugin-svelte": "^2.9.0",
"prisma": "^4.11.0",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.0",
"prisma": "^4.14.0",
"rehype-autolink-headings": "^6.1.1",
"rehype-slug": "^5.1.0",
"svelte": "^3.56.0",
"svelte-check": "^3.1.2",
"svelte-preprocess": "^5.0.1",
"svelte": "^3.59.1",
"svelte-check": "^3.3.2",
"svelte-preprocess": "^5.0.3",
"tslib": "^2.5.0",
"typescript": "~4.9.5",
"unocss": "^0.50.4",
"vite": "^4.1.4",
"vitest": "^0.29.2"
"typescript": "~5.0.4",
"unocss": "^0.51.12",
"vite": "^4.3.5",
"vitest": "^0.31.0"
},
"type": "module",
"dependencies": {
"@fontsource/montserrat": "^4.5.14",
"@fontsource/open-sans": "^4.5.14",
"@prisma/client": "^4.11.0",
"@prisma/client": "^4.14.0",
"notie": "^4.3.1"
}
}
Loading

1 comment on commit 2fb3841

@vercel
Copy link

@vercel vercel bot commented on 2fb3841 May 13, 2023

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.