-
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.
- Loading branch information
0 parents
commit 4b5504f
Showing
18 changed files
with
9,996 additions
and
0 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,16 @@ | ||
description: Prepares the repo for a typical CI job | ||
|
||
name: Prepare | ||
|
||
runs: | ||
steps: | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 9 | ||
- uses: actions/[email protected] | ||
with: | ||
node-version: '20.x' | ||
cache: pnpm | ||
- run: pnpm install | ||
shell: bash | ||
using: composite |
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,16 @@ | ||
name: build-test | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: ./.github/actions/prepare | ||
- name: Use pnpm to build site | ||
run: | | ||
pnpm build |
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,21 @@ | ||
name: cloudflare-pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: ./.github/actions/prepare | ||
- name: Use pnpm to build site | ||
run: pnpm build | ||
- name: Deploy to CF Pages | ||
uses: cloudflare/[email protected] | ||
with: | ||
apiToken: ${{ secrets.CF_API_TOKEN }} | ||
accountId: ${{ secrets.CF_ACCOUNT_ID }} | ||
command: pages deploy quotes --project-name=kadhal --commit-dirty=true |
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,26 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
dist | ||
dist-ssr | ||
quotes | ||
quotes-ssr | ||
*.local | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
.DS_Store | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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,21 @@ | ||
# MIT License | ||
|
||
Copyright (c) 2025 sanweb.info | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,54 @@ | ||
# காதல் கவிதைகள் 💚 | ||
|
||
![build-test](https://github.com/sanwebinfo/preact-kadhal-kavithai/workflows/build-test/badge.svg) [![cloudflare-pages](https://github.com/sanwebinfo/preact-kadhal-kavithai/actions/workflows/deploy.yml/badge.svg)](https://github.com/sanwebinfo/preact-kadhal-kavithai/actions/workflows/deploy.yml) | ||
|
||
A static site for sharing Tamil Kadhal kavithai and Tamil Love Quotes. | ||
|
||
> Built using: Typescript, Bulma css and Vite | ||
## Setup | ||
|
||
- Clone or Download the repo or Use this as Template While creating a New Repo on Github | ||
- install modules via npm or yarn or pnpm | ||
|
||
```sh | ||
pnpm install | ||
``` | ||
|
||
- Development | ||
|
||
```sh | ||
pnpm dev | ||
``` | ||
|
||
- Build the site | ||
|
||
```pnpm | ||
pnpm build | ||
``` | ||
|
||
- Preview | ||
|
||
```sh | ||
pnpm preview | ||
``` | ||
|
||
- Add Quotes to JSON database `/src/data/quotes.json` | ||
|
||
```json | ||
[ | ||
{ "id": 1, "content": "Quotes1..." }, | ||
{ "id": 2, "content": "Quotes2...." }, | ||
] | ||
``` | ||
|
||
- Modifications: `src/app.ts` and `src/index.html` | ||
- UI: `/src/styles/main.css` | ||
|
||
## Credits | ||
|
||
Collect Tamil Kadhal kavithai and Tamil Love Quotes from Blogs, Website's and Social Profile - Credits to All Respective Owners and Author of the Content. | ||
|
||
## LICENSE | ||
|
||
MIT |
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,20 @@ | ||
{ | ||
"name": "preact-kadhal-kavithai", | ||
"version": "0.0.1", | ||
"description": "A static site for sharing Tamil kavithai and Tamil Quotes.", | ||
"type": "module", | ||
"main": "index.js", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview" | ||
}, | ||
"keywords": ["kavithai", "quotes", "pagination", "Bulma", "TypeScript", "vite"], | ||
"author": "Santhosh Veer", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"bulma": "^1.0.3", | ||
"typescript": "^5.7.3", | ||
"vite": "^6.0.9" | ||
} | ||
} |
Oops, something went wrong.