-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathportfolioItems.php
95 lines (95 loc) · 4.87 KB
/
portfolioItems.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!-- Add Portfolio Items -->
<?php
$portfolioItems = array(
0 => array(
"name" => "Language Learning App",
"description" => "Personal project I'm working on to gain experience working with React while creating an application to practice vocabulary and grammar for new languages. Built with React and <a href='https://material-ui.com/' target='_blank' rel='noreferrer'>Material-UI</a>. Data is pulled from Google Sheets documents. Project is still in development; I'm working on building a backend with account functionality.",
"categories" => array(
"featured", "javascript"
),
"skills" => array (
"Javascript", "React"
),
"image" => "language_learning_app.jpg",
"websiteURL" => "https://timfau.github.io/language-learning-app/",
"sourceURL" => "https://github.com/TimFau/language-learning-app",
"featured" => true
),
1 => array(
"name" => "Shop Sonesta",
"description" => "Worked as a Frontend Developer on this project for my employer. Based on the PSD design, I implemented the homepage & styled the reamining components/pages with our internal design framework. Coded the homepage animations with GSAP.",
"categories" => array(
"featured", "CSS", "javascript"
),
"skills" => array (
"CSS", "Javascript"
),
"image" => "son.jpg",
"websiteURL" => "https://blankrefer.com/?https://www.shopsonesta.com/index.aspx",
"sourceURL" => "",
"featured" => true
),
2 => array(
"name" => "Rockin’ With Purpose",
"description" => "Rockin’ with Purpose is a music blog that was looking for a hip new image for the site. I designed the new logo, branding & website design and built a Wordpress theme using <a href='https://underscores.me/'><i>underscores</i></a> as the foundation.",
"categories" => array(
"featured", "design", "frontend"
),
"skills" => array (
"CSS", "PHP", "Wordpress"
),
"image" => "rockin_with_purpose.jpg",
"websiteURL" => "https://rockinwithpurpose.com/",
"sourceURL" => "https://github.com/TimFau/Rockin-With-Purpose-Theme-",
"featured" => true
)
// 3 => array(
// "name" => "The Puttytribe",
// "description" => "The Puttytribe is a member-only online community that was powered by Ning, which they wanted to get away from in favor of a solution with more freedom. I got the opportunity to join their team as a Front End Web Developer as we built a custom solution with WordPress and Discourse. The site is member only, so the link below goes to a page on my old portfolio with more info.",
// "categories" => array(
// "featured", "frontend"
// ),
// "skills" => array (
// "CSS", "Javascript", "Wordpress"
// ),
// "image" => "puttytribe.jpg",
// "websiteURL" => "https://faudesign.com/the-puttytribe/",
// "sourceURL" => "",
// "featured" => true
// )
);
?>
<!-- Render Portfolio Items -->
<?php for($i = 0; $i < count($portfolioItems); $i++): ?>
<div class="portfolio-item-wrapper <?php
for($j = 0; $j < count($portfolioItems[$i]["categories"]); $j++) {
echo ' ' . $portfolioItems[$i]["categories"][$j] . '-project ';
}
echo ($portfolioItems[$i]["featured"] ? 'show' : 'hide')
?>">
<div class="portfolio-item">
<div class="img" data-aos="fade-right" data-aos-delay="700">
<img class="screen" src="images/portfolio/<?php echo $portfolioItems[$i]["image"] ?>" alt="">
<img class="monitor" src="images/cutout_screen.png" alt="">
</div>
<div class="meta" data-aos="fade-left" data-aos-delay="600" data-aos-duration="700">
<h3><?php echo $portfolioItems[$i]["name"] ?></h3>
<h4><em><?php
$skillsCount = count($portfolioItems[$i]["skills"]);
for($k = 0; $k < $skillsCount; $k++){
echo $portfolioItems[$i]["skills"][$k] . ($k < $skillsCount - 1 ? ' | ' : '');
}
?></em></h4>
<p><?php echo $portfolioItems[$i]["description"] ?></p>
<div class="button-container">
<?php if ($portfolioItems[$i]["websiteURL"] !== ""): ?>
<a href="<?php echo $portfolioItems[$i]["websiteURL"] ?>" target="_blank" rel="noreferrer" class="button">View Website</a>
<?php endif ?>
<?php if ($portfolioItems[$i]["sourceURL"] !== ""): ?>
<a href="<?php echo $portfolioItems[$i]["sourceURL"] ?>" target="_blank" rel="noreferrer" class="button">Github Repo</a>
<?php endif ?>
</div>
</div>
</div>
</div>
<? endfor ?>