Layout and filler content for new about page. CSS will be moved to the main files. props chexee. see #18742.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
koopersmith 2011-11-03 23:13:50 +00:00
parent 1494ca6b9f
commit 8576e8d07f
1 changed files with 229 additions and 34 deletions

View File

@ -15,72 +15,267 @@ $parent_file = 'index.php';
add_action( 'admin_head', '_wp_about_add_css' );
function _wp_about_add_css() { ?>
<style type="text/css">
.return-to-dashboard {
margin: 16px 0 0;
font-size: 14px;
.about-wrap {
position: relative;
margin: 44px 40px 0 20px;
}
.return-to-dashboard a {
text-decoration: none;
}
.wrap h2 {
margin-top: 0.6em;
.about-wrap h1 {
margin: 0.6em 200px 0 0;
line-height: 1.2em;
font-size: 3.6em;
text-shadow: 1px 1px 3px rgba( 0, 0, 0, 0.2 );
font-weight: 200;
color: #333;
text-shadow: 1px 1px 1px white;
}
.about-text {
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;
font-weight: normal;
font-size: 1.8em;
font-size: 24px;
color: #777;
margin: 1.4em 0;
line-height: 1.4em;
max-width: 600px;
margin: 1em 200px 1.4em 0;
line-height: 1.6em;
min-height: 60px;
}
.changelog {
.about-wrap h2.nav-tab-wrapper {
padding-left: 6px;
}
.wp-badge {
padding-top: 142px;
height: 37px;
width: 160px;
position: absolute;
top: 0;
right: 0;
color: #fff;
font-weight: bold;
font-size: 14px;
padding-bottom: 10px;
text-shadow: 0 -1px 0 #0c3d57;
text-align: center;
border: 1px solid #2B5173;
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: inset 0 0 0 1px #5F8CA8;
-webkit-box-shadow: inset 0 0 0 1px #5F8CA8;
box-shadow: inset 0 0 0 1px #5F8CA8;
background-color: #378aac;
background-repeat: no-repeat;
background-position: center 20px;
background-image: url(images/wp-badge.png);
background-image: url(images/wp-badge.png), -ms-linear-gradient(top, #378aac, #165d84); /* IE10 */
background-image: url(images/wp-badge.png), -moz-linear-gradient(top, #378aac, #165d84); /* Firefox */
background-image: url(images/wp-badge.png), -o-linear-gradient(top, #378aac, #165d84); /* Opera */
background-image: url(images/wp-badge.png), -webkit-gradient(linear, left top, left bottom, from(#378aac), to(#165d84)); /* old Webkit */
background-image: url(images/wp-badge.png), -webkit-linear-gradient(top, #378aac, #165d84); /* new Webkit */
background-image: url(images/wp-badge.png), linear-gradient(top, #378aac, #165d84); /* proposed W3C Markup */
}
.changelog h3 {
.about-wrap h2 .nav-tab {
color: #21759B;
padding: 4px 10px 6px;
margin: 0 3px -1px 0;
font-size: 18px;
}
.changelog li {
.about-wrap h2 .nav-tab:hover {
color: #d54e21;
}
.about-wrap h2 .nav-tab-active,
.about-wrap h2 .nav-tab-active:hover {
color: #333;
}
.about-wrap h2 .nav-tab-active {
font-weight: bold;
text-shadow: 1px 1px 1px white;
color: #464646;
padding-top: 3px;
}
.about-wrap h3 {
font-size: 24px;
color: #333;
text-shadow: 1px 1px 1px white;
margin-bottom: 0.4em;
padding-top: 20px;
}
.about-wrap .changelog {
font-size: 14px;
padding-bottom: 10px;
overflow: hidden;
}
.about-wrap .changelog li {
list-style-type: disc;
margin-left: 3em;
}
.about-wrap .feature-section .left-feature,
.about-wrap .feature-section img,
.about-wrap .feature-section .right-feature {
float: left;
}
.about-wrap .feature-section {
min-height: 100px;
overflow: hidden;
}
.about-wrap .feature-section.angled-right {
margin-top: -35px;
padding-top: 15px;
}
.about-wrap .feature-section.angled-right img {
margin-top: 0;
}
.about-wrap .feature-section.angled-right .left-feature {
margin-top: 15px;
}
.about-wrap .feature-section h4 {
color: #464646;
margin-bottom: 0.6em;
}
.about-wrap .feature-section p {
line-height: 1.6em;
margin-top: 0.6em;
}
.about-wrap .feature-section .left-feature,
.about-wrap .feature-section .right-feature {
width: 40%;
}
.about-wrap .feature-section .left-feature {
margin-right: 10%;
}
.about-wrap .feature-section .right-feature {
margin-left: 9%;
}
.about-wrap .feature-section.angled-left .left-feature,
.about-wrap .feature-section.angled-right .left-feature {
margin-right: 5%;
}
.about-wrap .feature-section.angled-left .right-feature,
.about-wrap .feature-section.angled-right .right-feature {
margin-left: 5%;
}
.about-wrap .feature-section img {
width: 19%;
height: 130px;
background: #f9f9f9;
margin-top: 15px;
border: 1px solid #dfdfdf;
-webkit-border-radius: 3px;
border-radius: 3px;
-moz-box-shadow: 0 0 6px rgba( 0, 0, 0, 0.3 );
-webkit-box-shadow: 0 0 6px rgba( 0, 0, 0, 0.3 );
box-shadow: 0 0 6px rgba( 0, 0, 0, 0.3 );
}
.about-wrap .feature-section.angled-left .left-feature {
width: 30%;
}
.about-wrap .feature-section.angled-left .right-feature {
width: 40%;
}
.about-wrap .feature-section.angled-right .left-feature {
width: 40%;
}
.about-wrap .feature-section.angled-right .right-feature {
width: 30%;
}
.about-wrap .return-to-dashboard {
margin: 16px 0 0;
font-size: 14px;
font-weight: bold;
}
.about-wrap .return-to-dashboard a {
text-decoration: none;
}
</style>
<?php }
include( './admin-header.php' );
?>
<div class="wrap">
<div class="wrap about-wrap">
<div class="return-to-dashboard">
<a href="<?php echo admin_url(); ?>"><?php _e('&larr; Return to dashboard'); ?></a>
</div>
<h2><?php _e( 'Welcome to WordPress 3.3!' ); ?></h2>
<h1><?php _e( 'Welcome to WordPress 3.3!' ); ?></h1>
<div class="about-text">WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time.</div>
<div class="wp-badge"><?php _e( 'Version 3.3' ); ?></div>
<h2 class="nav-tab-wrapper">
<a href="#" class="nav-tab nav-tab-active">
<?php _e( 'What&#8217;s New in 3.3' ); ?>
</a><a href="#" class="nav-tab">
<?php _e( 'Credits' ); ?>
</a><a href="#" class="nav-tab">
<?php _e( 'Freedoms' ); ?>
</a>
</h2>
<div class="changelog">
<h3><?php _e('For Users'); ?></h3>
<ul>
<li>Media uploader</li>
<li>New-user experience</li>
<li>Improved admin bar</li>
<li>Responsive admin</li>
</ul>
<div class="feature-section angled-left">
<div class="left-feature">
<h4><?php _e( 'Drag-and-Drop Media Uploader' ); ?></h4>
<p><?php _e( 'Add your media by simply dragging and dropping files from your computer into the new WordPress media uploader.' ); ?></p>
</div>
<img class="placeholder" />
<div class="right-feature">
<h4><?php _e( 'A Responsive Admin' ); ?></h4>
<p><?php _e( 'The WordPress admin now responds and adjusts to more devices and screen resolutions for a better native experience.' ); ?></p>
</div>
</div>
<div class="feature-section angled-right">
<div class="left-feature">
<h4><?php _e( 'New-user Experience' ); ?></h4>
<p><?php _e( 'New users get a helping hand. Updates come with this handy summary of what&#8217;s new in this version of WordPress.' ); ?></p>
</div>
<img class="placeholder" />
<div class="right-feature">
<h4><?php _e( 'A New and Improved Admin Bar' ); ?></h4>
<p><?php _e( 'Get to the most useful areas of your dashboard form anywhere on your site quicker and easier than ever with a better organized admin bar.' ); ?></p>
</div>
</div>
</div>
<div class="changelog">
<h3><?php _e('For Developers'); ?></h3>
<ul>
<li>Meta API improvements</li>
<li>Language packs</li>
<li>Permalink performance</li>
<li>Nav menus performance</li>
</ul>
<div class="feature-section">
<div class="left-feature">
<h4><?php _e( 'Performance Enhancements' ); ?></h4>
<p><?php _e( 'Add your media by simply dragging and dropping files from your computer into the new WordPress media uploader.' ); ?></p>
</div>
<div class="right-feature">
<h4><?php _e( 'API: Settings Improvements' ); ?></h4>
<p><?php _e( 'The WordPress admin now responds and adjusts to more devices and screen resolutions for a better native experience.' ); ?></p>
</div>
</div>
<div class="feature-section">
<div class="left-feature">
<h4><?php _e( 'More Efficient Updates and Upgrades' ); ?></h4>
<p><?php _e( 'New users get a helping hand. Updates come with this handy summary of what&#8217;s new in this version of WordPress.' ); ?></p>
</div>
<div class="right-feature">
<h4><?php _e( 'API: Meta Improvements' ); ?></h4>
<p><?php _e( 'Get to the most useful areas of your dashboard form anywhere on your site quicker and easier than ever with a better organized admin bar.' ); ?></p>
</div>
</div>
</div>
<div class="return-to-dashboard">
<a href="<?php echo admin_url(); ?>"><?php _e('Go to the Dashboard'); ?></a>
</div>
</div>
<?php