#! /usr/bin/perl
# 
# $Id$
# Main page Perl template.
# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; exactly version 2 of June 1991 is required
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


package Index;
require 5.6.0;	# at least 'use warnings;' but we need some 5.6.0+ modules anyway
our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
our $CVS_ID=q$Id$;
use strict;
use warnings;

BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
use My::Web;
require CGI;


my $W=My::Web->init(
		"__PACKAGE__"=>__PACKAGE__,
		"title"=>'Homepage',
		"no_job"=>1,
		);
My::Web->heading();


print <<"HERE";
<h1>Jan Kratochvil Homepage</h1>
<hr />

<p>Why did you come here? Shhh...Don't say anything &ndash; I'll guess.</p>

<p>Some paper...no, not a paper...a file...maybe even a folder. It is
so close you can almost touch it, but yet it is unreachable. It lies
behind glass...perhaps you can see it...but you cannot touch it.</p>

<p>For years, you have dreamed of being able to write to your NTFS partition
from the safety of your favorite OS GNU/Linux. Well, the day of reckoning is at
hand! Those nights lying awake feeling foolish for having that extra VFAT
partition just to exchange files between GNU/Linux and MS-Windows are over!</p>
HERE

print <<"HERE" if !$WebConfig::WebConfig{"no_job"};
<table border="0" style="margin: 4ex; padding: 2ex; background: #552222; font-size: larger;">
	<tr><td>
		<b>A programmer for hire:</b>
		<span style="color: #ffaaaa;">
			I am looking for new challenges.
			If you find the software here useful, please
			@{[ a_href $W->{"resume_url"},'consider me' ]}
			for your next software project and
			@{[ a_href 'Contact.html.pl','get in touch' ]}.
		</span>
	</td></tr>
</table>
HERE

print <<"HERE";

<h2>Introducing the <i>Captive NTFS Filesystem</i> for GNU/Linux</h2>

<p>The @{[ a_href '/project/captive/','Captive NTFS' ]} filesystem is an
installable filesystem for GNU/Linux, which allows read/write access to NTFS
partitions created by Microsoft Windows NT, 200x or XP. You can download it
@{[ a_href '/project/captive/','here' ]}.</p>

HERE

Wrequire "project::captive::ListItem";
my %captive_ListItem=( @project::captive::ListItem::ListItem );
print $captive_ListItem{"description"};


My::Web->footer();
