Jump to content


Photo

CSS Blog/Portfolio


  • This topic is locked This topic is locked
12 replies to this topic

#1 DanWilliamson

DanWilliamson

    P2L Jedi

  • Members
  • PipPipPip
  • 651 posts

Posted 22 January 2006 - 12:47 PM

Hey,

I've been working on HTML etc for around 12 months and i've always wanted a full CSS layout so today I tried again and I read a few tutorials and eventually I got there.

There is not much in the design just one image and a horrible background colour lol, and i've not added to much content yet so bear with me on that.

I'm going to be turning this into a simplistic blog/portfolio or something.

Please use constructive criticism and it's not very good but oh well :D

www.Dan.RadicalHosting.co.uk

- Dan

Edited by DanWilliamson, 24 January 2006 - 03:03 AM.


#2 PSgirl

PSgirl

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 2,056 posts
  • Gender:Female

Posted 24 January 2006 - 05:23 AM

I like the idea.
Left Navigation links are standard blue, and I think they don't fit. And maybe you should use a title that stands out a bit in your entries.
But nice design so far :D

#3 Mooey

Mooey

    Retired P2L Staff

  • Members
  • PipPipPip
  • 587 posts
  • Gender:Male
  • Location:UK
  • Interests:http://500px.com/mikeholman
    http://holmanmedia.net

Posted 24 January 2006 - 05:37 AM

There is not much in the design just one image and a horrible background colour lol, and i've not added to much content yet so bear with me on that.

Please use constructive criticism and it's not very good but oh well :D

- Dan


Hi Dan,

Theres not much to crit (design wise) because youve said it yourself in that one line :love:

Its great that you've designed a site in CSS, I like the stats on the left side, a bit cheeky that the hit counter goes up on 'everypage' lol

It will be easier to crit when youve nearly finished it.

Edited by Mooey, 24 January 2006 - 05:38 AM.


#4 DanWilliamson

DanWilliamson

    P2L Jedi

  • Members
  • PipPipPip
  • 651 posts

Posted 24 January 2006 - 07:03 AM

Hey,

Yeah i'll probably sort that once I got home from college i've just used a basic PHP code for that.

The design was never meant to be much it's more the content etc and the coding than a design as it is supposed to be a blog/portfolio thats not run off wordpress and run off my own news system.

I will probably style the links tonight or even add buttons but at the moment on the site i'm coding a huge tutorial system with all of it in a Database which i've found really hard.

Thanks for your critique and i'll take off the hits counter and place a better unique one tonight :D

- Dan


There is not much in the design just one image and a horrible background colour lol, and i've not added to much content yet so bear with me on that.

Please use constructive criticism and it's not very good but oh well :love:

- Dan


Hi Dan,

Theres not much to crit (design wise) because youve said it yourself in that one line :D

Its great that you've designed a site in CSS, I like the stats on the left side, a bit cheeky that the hit counter goes up on 'everypage' lol

It will be easier to crit when youve nearly finished it.



#5 Dh.

Dh.

    CSS Guru

  • Members
  • PipPipPip
  • 807 posts
  • Gender:Male
  • Location:Berkshire, England

Posted 24 January 2006 - 08:57 AM

Very nice site, I have my own CSS portfolio site and was wondering how you did the stats on the side?... If you could PM me or something that would be great, cheers mate

#6 DanWilliamson

DanWilliamson

    P2L Jedi

  • Members
  • PipPipPip
  • 651 posts

Posted 24 January 2006 - 09:15 AM

Hey,

I'd be happy to share the stats scripts with you as I got most of them through tutorials off P2L

Here is my navigation scripts

<?php
	$file = 'counter.txt';

	if(!file_exists($file))
	{
		$handle = fopen($file, 'w');
		fwrite($handle, 0);
		fclose($handle);
	}

	$count = file_get_contents($file);
	$count++;

	if(is_writable($file))
	{
		$handle = fopen($file, 'w+');
		fwrite($handle, $count);
		fclose($handle);
	}
	else
	{
		echo 'Could not increment the counter!<br />';
	}

	echo number_format($count).' Hits';
?> 

<p>

<?

$timemax = "300"; //Max. time that users are online on your site (in sec.)

$ipadress = $REMOTE_ADDR;

$timenow = explode (" ", microtime());
$timenow = $timenow[1];

include ("data.php");

$timedelete = $timemax;

$deleted = $deleted + $timedelete;

if ($deleted < $timenow){

$file = fopen("data.php","w+");
fputs($file, "<?PHP \$deleted = \"$timenow\"; ?>\n");

$number = count($visitor_b);

for ($tel = 0; $tel < $number; $tel++){
$visitor_a = $visitor_b[$tel];

$visitor_a[0] = $visitor_a[0] + $timemax;

if ($visitor_a[0] > $timenow)
fputs($file, "<?PHP \$visitor_b[] = array('$visitor_a[0]','$visitor_a[1]'); ?>\n");

}

fclose($file);

}
$visitor_b = "";

include ("data.php");

$number = count($visitor_b);

for ($tel = 0; $tel < $number; $tel++){
$visitor_a = $visitor_b[$tel];

if ($visitor_a[1] == $ipadress)
$save = "nee";

}

if (!$save){

$file = fopen("data.php","a");
fputs($file, "<?PHP \$visitor_b[] = array('$timenow','$ipadress'); ?>\n");
fclose($file);

}

$visitor_b = "";
include ("data.php");

$number = count($visitor_b);

for ($tel = 0; $tel < $number; $tel++){
$visitor_a = $visitor_b[$tel];
$visitor_a[0] = $visitor_a[0] + $timemax;

if ($visitor_a[0] > $timenow)
$online = $online + 1;

}

if (!$online)
$online = 1;

if ($online == 1)
print ("Users Online: $online");
else
print ("Users Online: $online");

?> 



<p>

<?
echo ("Page loaded in $time seconds.");
?> 
<p>

And theres a section in the head

<?
function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
for ($i=0; $i <1000; $i++){
}
$time_end = getmicrotime();
$time = $time_end - $time_start;
$time = round($time,6);
?>

All the text files you have to create ( counter.txt ) needs to be CHMOD'd to 777

- Dan

#7 Dh.

Dh.

    CSS Guru

  • Members
  • PipPipPip
  • 807 posts
  • Gender:Male
  • Location:Berkshire, England

Posted 24 January 2006 - 09:25 AM

Thanks mate

#8 DanWilliamson

DanWilliamson

    P2L Jedi

  • Members
  • PipPipPip
  • 651 posts

Posted 24 January 2006 - 11:05 AM

Hey,

No problem :love:

- Dan

Edit:

Coding a slightly more secure article system although it's visually identicle to the news system this one has a encryption :love:

- Dan

Edited by DanWilliamson, 24 January 2006 - 11:25 AM.


#9 Bryn

Bryn

    Spammer

  • Members
  • PipPipPipPip
  • 2,019 posts
  • Gender:Male
  • Location:South Wonston, Winchester, UK
  • Interests:Music, Philosophy, Design, History, Reading, Writing, The Weekend etc...

Posted 24 January 2006 - 02:44 PM

nice, maybe a lil more design work tho.

#10 DanWilliamson

DanWilliamson

    P2L Jedi

  • Members
  • PipPipPip
  • 651 posts

Posted 24 January 2006 - 03:46 PM

Hey,

Got any ideas? I'm currently doing buttons but I don't know what else to do lol.

- Dan

#11 Sygon

Sygon

    Young Padawan

  • Members
  • Pip
  • 18 posts

Posted 29 January 2006 - 06:51 AM

Maybe a bluish banner?, Nice site though i really like it ;)

#12 Nike

Nike

    Young Padawan

  • Members
  • Pip
  • 204 posts
  • Location:Ohio
  • Interests:Controlling the human and and duck race.

Posted 29 January 2006 - 03:41 PM

Yeah. I don't like the grey banner. Maybe more content, like Polls, shoutbox, etc..

#13 Sygon

Sygon

    Young Padawan

  • Members
  • Pip
  • 18 posts

Posted 31 January 2006 - 01:33 AM

Thanks for the stats hehe :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users