Changeset 3292 for trunk/system/views

Show
Ignore:
Timestamp:
08/07/2008 12:34:02 PM (4 months ago)
Author:
Geert
Message:

Freshening up the welcome page design

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/views/kohana/template.php

    r3274 r3292  
    11<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
     2 
    23<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    34<head> 
    4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
    55 
    6 <title><?php echo $title ?></title> 
     6        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
     7        <title><?php echo html::specialchars($title) ?></title> 
    78 
    8 <style type="text/css"> 
    9 html { background: #83c018; } 
    10 body { width: 700px; margin: 2em auto; background: transparent url('<?php echo url::base(FALSE).'kohana.png' ?>') center 0 no-repeat; font-size: 76%; font-family: Arial, Verdana, sans-serif; color: #111; line-height: 1.5; } 
    11 div, h2, a, p, code, pre, ul { font-family: inherit; color: inherit; padding: 0; margin: 0; text-align: baseline; text-decoration: none; } 
    12 h2 { padding: 200px 0 0; } 
    13 p { padding: 0 0 0.6em; } 
    14 a { text-decoration: underline; } 
    15 ul { list-style: none; padding: 1em 0; } 
    16 ul li { display: inline; padding-right: 1em; } 
    17 ul li:before { content: '» '; } 
    18 pre { margin: 1em 0; padding: 1em; background: #fff; border: solid 0.6em #ddd; white-space: pre-wrap; } 
    19 pre, 
    20 code { font-family: fixed; } 
    21 .box { padding: 1em 1em 2em; background: #eee; } 
    22 .intro { padding: 1em 0; font-size: 1.2em; } 
    23 .copyright { margin-top: 1em; text-align: center; font-size: 0.8em; text-transform: uppercase; color: #44640b; } 
    24 </style> 
     9        <style type="text/css"> 
     10        html { background: #83c018 url(<?php echo url::base(FALSE) ?>kohana.png) 50% 0 no-repeat; } 
     11        body { width: 52em; margin: 200px auto 2em; font-size: 76%; font-family: Arial, sans-serif; color: #273907; line-height: 1.5; text-align: center; } 
     12        h1 { font-size: 3em; font-weight: normal; text-transform: uppercase; color: #fff; } 
     13        a { color: inherit; } 
     14        code { font-size: 1.3em; } 
     15        ul { list-style: none; padding: 2em 0; } 
     16        ul li { display: inline; padding-right: 1em; text-transform: uppercase; } 
     17        ul li a { padding: 0.5em 1em; background: #69ad0f; border: 1px solid #569f09; color: #fff; text-decoration: none; } 
     18        ul li a:hover { background: #569f09; } 
     19        .box { padding: 2em; background: #98cc2b; border: 1px solid #569f09; } 
     20        .copyright { font-size: 0.9em; text-transform: uppercase; color: #557d10; } 
     21        </style> 
    2522 
    2623</head> 
    2724<body> 
    2825 
    29 <h2><?php echo $title ?></h2> 
    30 <?php echo $content ?> 
     26        <h1><?php echo html::specialchars($title) ?></h1> 
     27        <?php echo $content ?> 
    3128 
    32 <p class="copyright">Rendered in {execution_time} seconds, using {memory_usage} of memory<br/>Copyright &copy;2007-2008 Kohana Team</p> 
     29        <p class="copyright"> 
     30                Rendered in {execution_time} seconds, using {memory_usage} of memory<br /> 
     31                Copyright ©2007–2008 Kohana Team 
     32        </p> 
    3333 
    3434</body>