Skip to content

Commit

Permalink
Add simple landing page and poems page
Browse files Browse the repository at this point in the history
  • Loading branch information
p10ns11y committed Dec 5, 2021
1 parent ceb353a commit 53c0e0e
Show file tree
Hide file tree
Showing 27 changed files with 802 additions and 558 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
node_modules

.DS_Store
/.cache
build
/server/build
/public/build
24 changes: 24 additions & 0 deletions app/content/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import * as avanumAvalum from './poems/avanum-avalum';
import * as akalaVilakku from './poems/akala-vilakku';
import * as adadeAnbuMazhai from './poems/adade-anbu-mazhai';
import * as anbuSeiAnthi from './poems/anbu-sei-anthi';
import * as paniyidaiPaninadai from './poems/paniyidai-paninadai';
import * as neelaNeelaParavai from './poems/neela-neela-paravai';

export type Poem = {
slug: string;
title: string;
poem: string;
date: string;
};

export type Poems = Array<Poem>;

export const poems: Poems = [
avanumAvalum,
akalaVilakku,
adadeAnbuMazhai,
anbuSeiAnthi,
paniyidaiPaninadai,
neelaNeelaParavai,
];
37 changes: 37 additions & 0 deletions app/content/poems/adade-anbu-mazhai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const title = 'அடடே அன்பு மழை';
const slug = title.replaceAll(' ', '-');
const date = new Date('2021-03-05').toLocaleDateString('en-gb');

const poem = `
வெளியே போக முடியாதபடி
இடி மின்னலுடன்
கொட்டும் மழையை திட்டுகிறாய்!
வெளியே போக தோணாதபடி
மின்மினி கண்கள்
குழலின் குரலுடன் - அறைக்குள்
கொட்டும் உன் அன்பு மழையை
கையில் கிட்டிய குடையை
தலைகீழ் பிடித்து
சேகரித்து கொண்டிருக்கிறேன்!
பேரொலியும் பேரொளியும்
என் கவனம் ஈர்க்காதபடி
எப்படி நீ கட்டிப் போடுகிறாயோ!
- உனதன்பன் பெரமு
`;

export { title, slug, date, poem };
23 changes: 23 additions & 0 deletions app/content/poems/akala-vilakku.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
const title = 'அகலா விளக்கு';
const slug = title.replaceAll(' ', '-');
const date = new Date('2021-04-04').toLocaleDateString('en-gb');

const poem = `
நெஞ்சம்
சுடர்விட ஏங்கும்
நெய் இழையிட்ட
அகல் விளக்கு!
‘பொறி’யென
கண்கள்
உரசி பற்றிக்
கொண்டதும்
இணை நெஞ்சங்கள்
வேண்டுவது
அன்பெனும்
அகலா விளக்கு!
- பெரமு
`;

export { title, slug, date, poem };
26 changes: 26 additions & 0 deletions app/content/poems/anbu-sei-anthi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const title = 'அன்பு செய் அந்தி';
const slug = title.replaceAll(' ', '-');
const date = new Date('2021-03-05').toLocaleDateString('en-gb');

const poem = `
நிலவு நிமிரும் மேலைத்திசையில் இருந்து
அவள் வருவாள் எனத் தனித்து
உலவுக் கதிரவன் இறங்கும் கீழைத்திசையில்
வழிமேல் கூர்ந்த விழி ஒற்றி
வாடைக் குளிர் வீசும் வடக்கு திசைக்கு
கத்திக்கும் காட்டா புறமுதுகு காட்டி
ஓடைக் குளித்த தெற்குத்திசை தென்றலுக்கு
முகம்காட்டி இருக்கின்றேன் யான் ஆவலில்
- பெரமு
`;

export { title, slug, date, poem };
27 changes: 27 additions & 0 deletions app/content/poems/avanum-avalum.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const title = 'அவனும் அவளும்';
const slug = title.replaceAll(' ', '-');
const date = new Date('2021-04-04').toLocaleDateString('en-gb');

const poem = `
அவள்: முத்தம் யாதோ?
அவன்:
பேரன்பின்
மென்மையான
பேரழுத்தம்!
அவள்: கன்னத்து குழி எதற்கோ?
அவன்:
அன்பு ஊடல் பிரிவால்
உவர்ந்தோடும் கண்ணீர்
அன்பின் மீள் வருகையால்
களிப்புற்று
உவப்பெனும் உவகைநீராகி
அடுத்து தோன்றிடும்
நாணத்திற்கு செஞ்சாந்து குழைத்திட!
- வெற்றியன்பன்(Jai’s Beloved) பெரமு
`;

export { title, slug, date, poem };
27 changes: 27 additions & 0 deletions app/content/poems/neela-neela-paravai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const title = 'நீலநீளப்பரவை கடல்';
const slug = title.replaceAll(' ', '-');
const date = new Date('2020-07-12').toLocaleDateString('en-gb');

const poem = `
சின்னஞ் சிறுகல் மெல்ல விழுந்தன்ன
சிற்றலைகள் அட அந்த கடலின்
நுனிப்புறத்தே! - இம்மாபெரும்
நீலக் கண்ணாடியை யாரோ
இப்படிக் கிடத்தியது என ஐயுற்று
வட்டமடிக்கும் கடற்பறவைகள்!
பொன்னொளிக் கீற்றுகள்
சால இறங்கி கடலடியை
முத்தமிடும் திகழ்ந்த நற்காட்சி!
விண்மீன்கள் போல ஒளிரும்
கண்மீன்கள் கொண்டவளே!
கடற்கன்னியாய் உள்குதித்துப் பாரேன்!
ஆங்கே வண்ணமயமான
உள்ளம் கிளரும் பவழப் பாறைகள்!
அதற்குள் உன் வரவுக்காய்
காத்திருக்கும் சிறுமீனாய்
அழகுற உடல் அசைத்து நீந்திக் கிடப்பேனே!
— பெரமு
`;

export { title, slug, date, poem };
41 changes: 41 additions & 0 deletions app/content/poems/paniyidai-paninadai.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
const title = 'பணியிடை பனிநடை';
const slug = title.replaceAll(' ', '-');
const date = new Date('2021-02-06').toLocaleDateString('en-gb');

const poem = `
உலகஞ் சுற்றி பகலவன்
உச்சந் தொடுவானில் உருகும்
நட்ட நண்பகல் - கொட்டி முழக்கி
நெஞ்சச் செவிக்கு செய்திவிடும்:
“வா! வெளியே வா!
உலவா! உலவ வா!
வெண்பனிச் சுமை மூடிய வழிகள்
தலைப்பணிச் சுமையால் மடங்கிய
உன் கால்களுக்கே!
ஏற்ற உடையுடுத்தி ஏறுபோல் வா!”
எதிர்மறை வெப்பநிலையில் - கண்
எதிரே மறையும் துருவத்து மீனோடு
துரும்பு மீன் நானும் துள்ளல் நடை
நாள்தோறும் இடுவேனே!
உடல் உளம் பேணிட சூளுரையே இது!
- பெரமு
`;

export { title, slug, date, poem };
66 changes: 22 additions & 44 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,24 @@ import {
Outlet,
Scripts,
ScrollRestoration,
useCatch
} from "remix";
import type { LinksFunction } from "remix";
useCatch,
} from 'remix';
import type { LinksFunction } from 'remix';

import globalStylesUrl from "~/styles/global.css";
import darkStylesUrl from "~/styles/dark.css";
import globalStylesUrl from '~/styles/global.css';
import darkStylesUrl from '~/styles/dark.css';

// https://remix.run/api/app#links
export let links: LinksFunction = () => {
return [
{ rel: "stylesheet", href: globalStylesUrl },
{ rel: 'stylesheet', href: globalStylesUrl },
{
rel: "stylesheet",
rel: 'stylesheet',
href: darkStylesUrl,
media: "(prefers-color-scheme: dark)"
}
media: '(prefers-color-scheme: dark)',
},
];
};

// https://remix.run/api/conventions#default-export
// https://remix.run/api/conventions#route-filenames
export default function App() {
return (
<Document>
Expand All @@ -37,7 +34,6 @@ export default function App() {
);
}

// https://remix.run/docs/en/v1/api/conventions#errorboundary
export function ErrorBoundary({ error }: { error: Error }) {
console.error(error);
return (
Expand All @@ -57,7 +53,6 @@ export function ErrorBoundary({ error }: { error: Error }) {
);
}

// https://remix.run/docs/en/v1/api/conventions#catchboundary
export function CatchBoundary() {
let caught = useCatch();

Expand Down Expand Up @@ -95,7 +90,7 @@ export function CatchBoundary() {

function Document({
children,
title
title,
}: {
children: React.ReactNode;
title?: string;
Expand All @@ -113,7 +108,7 @@ function Document({
{children}
<ScrollRestoration />
<Scripts />
{process.env.NODE_ENV === "development" && <LiveReload />}
{process.env.NODE_ENV === 'development' && <LiveReload />}
</body>
</html>
);
Expand All @@ -124,19 +119,25 @@ function Layout({ children }: { children: React.ReactNode }) {
<div className="remix-app">
<header className="remix-app__header">
<div className="container remix-app__header-content">
<Link to="/" title="Remix" className="remix-app__header-home-link">
<RemixLogo />
<Link
to="/"
title="PeramSathyam"
className="remix-app__header-home-link"
>
<h1 style={{ margin: 0, padding: 0 }}>
Peram Sathyam (பெரம் சத்யம்)
</h1>
</Link>
<nav aria-label="Main navigation" className="remix-app__header-nav">
<ul>
<li>
<Link to="/">Home</Link>
</li>
<li>
<a href="https://remix.run/docs">Remix Docs</a>
<Link to="/poems">Poems</Link>
</li>
<li>
<a href="https://github.com/remix-run/remix">GitHub</a>
<a href="https://github.com/p10ns11y">GitHub</a>
</li>
</ul>
</nav>
Expand All @@ -147,32 +148,9 @@ function Layout({ children }: { children: React.ReactNode }) {
</div>
<footer className="remix-app__footer">
<div className="container remix-app__footer-content">
<p>&copy; You!</p>
<p>&copy; Peramanathan Sathyamoorthy</p>
</div>
</footer>
</div>
);
}

function RemixLogo() {
return (
<svg
viewBox="0 0 659 165"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
aria-labelledby="remix-run-logo-title"
role="img"
width="106"
height="30"
fill="currentColor"
>
<title id="remix-run-logo-title">Remix Logo</title>
<path d="M0 161V136H45.5416C53.1486 136 54.8003 141.638 54.8003 145V161H0Z M133.85 124.16C135.3 142.762 135.3 151.482 135.3 161H92.2283C92.2283 158.927 92.2653 157.03 92.3028 155.107C92.4195 149.128 92.5411 142.894 91.5717 130.304C90.2905 111.872 82.3473 107.776 67.7419 107.776H54.8021H0V74.24H69.7918C88.2407 74.24 97.4651 68.632 97.4651 53.784C97.4651 40.728 88.2407 32.816 69.7918 32.816H0V0H77.4788C119.245 0 140 19.712 140 51.2C140 74.752 125.395 90.112 105.665 92.672C122.32 96 132.057 105.472 133.85 124.16Z" />
<path d="M229.43 120.576C225.59 129.536 218.422 133.376 207.158 133.376C194.614 133.376 184.374 126.72 183.35 112.64H263.478V101.12C263.478 70.1437 243.254 44.0317 205.11 44.0317C169.526 44.0317 142.902 69.8877 142.902 105.984C142.902 142.336 169.014 164.352 205.622 164.352C235.83 164.352 256.822 149.76 262.71 123.648L229.43 120.576ZM183.862 92.6717C185.398 81.9197 191.286 73.7277 204.598 73.7277C216.886 73.7277 223.542 82.4317 224.054 92.6717H183.862Z" />
<path d="M385.256 66.5597C380.392 53.2477 369.896 44.0317 349.672 44.0317C332.52 44.0317 320.232 51.7117 314.088 64.2557V47.1037H272.616V161.28H314.088V105.216C314.088 88.0638 318.952 76.7997 332.52 76.7997C345.064 76.7997 348.136 84.9917 348.136 100.608V161.28H389.608V105.216C389.608 88.0638 394.216 76.7997 408.04 76.7997C420.584 76.7997 423.4 84.9917 423.4 100.608V161.28H464.872V89.5997C464.872 65.7917 455.656 44.0317 424.168 44.0317C404.968 44.0317 391.4 53.7597 385.256 66.5597Z" />
<path d="M478.436 47.104V161.28H519.908V47.104H478.436ZM478.18 36.352H520.164V0H478.18V36.352Z" />
<path d="M654.54 47.1035H611.788L592.332 74.2395L573.388 47.1035H527.564L568.78 103.168L523.98 161.28H566.732L589.516 130.304L612.3 161.28H658.124L613.068 101.376L654.54 47.1035Z" />
</svg>
);
}
44 changes: 0 additions & 44 deletions app/routes/demos/about.tsx

This file was deleted.

Loading

0 comments on commit 53c0e0e

Please sign in to comment.