Skip to content

Commit fd8a118

Browse files
committed
Working on the styling of the comm sponsors.
1 parent 129ed12 commit fd8a118

File tree

2 files changed

+12
-33
lines changed

2 files changed

+12
-33
lines changed

css/style.css

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -337,35 +337,17 @@ div#sponsors > div {
337337
}
338338

339339
div.communitySponsor {
340+
font-family: "NevisBold";
341+
font-weight: normal;
340342
width: 318px;
341343
float: left;
342-
height: 150px;
343-
border: solid 1px #363636;
344-
margin-right: 20px;
345-
margin-bottom: 20px;
346-
padding: 10px;
347-
}
348-
div.communitySponsor img {
349-
width: 48px;
350-
height: 48px;
351-
display: block;
352-
float: left;
353-
margin-right: 20px;
354-
}
355-
356-
div.communitySponsor > div {
357-
width: 250px;
358-
float: left;
344+
font-size: 24px;
359345
}
360346

361-
div.communitySponsor h3 {
362-
line-height: 40px;
363-
vertical-align: center;
364-
font-family: "NevisBold";
365-
font-weight: normal;
347+
div.communitySponsor img {
348+
vertical-align: middle;
366349
}
367350

368-
div.communitySponsor p {
369-
line-height: 20px;
370-
font-size: 14px;
351+
div.communitySponsor a {
352+
line-height: 60px;
371353
}

resources/home.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h2>Community Sponsors</h2>
5050
require_once('lib/Twitter.php');
5151

5252
// array of community_sponsors member Twitter handles
53-
$community_sponsors = array('croscon');
53+
$community_sponsors = array('croscon', 'cakephp');
5454

5555
// array of Twitter data for each community_sponsors member
5656
$data['community_sponsors'] = array();
@@ -68,13 +68,10 @@ <h2>Community Sponsors</h2>
6868
array_multisort($cnames, $data['community_sponsors']);
6969
foreach ($data['community_sponsors'] as $person) {
7070
?><div class="communitySponsor">
71-
<img src="<?php echo $person['profile_image_url'];?>">
72-
<div>
73-
<h3>
74-
<a href="<?php echo $person['url'];?>"><?php echo $person['name'];?></a>
75-
</h3>
76-
<p><?php echo $person['description'];?></p>
77-
</div>
71+
<a href="<?php echo $person['url'];?>">
72+
<img src="<?php echo $person['profile_image_url'];?>">
73+
<?php echo $person['name'];?>
74+
</a>
7875
</div>
7976
<?php
8077
}

0 commit comments

Comments
 (0)