Skip to content
Snippets Groups Projects
Commit 37ea1b75 authored by Narendra Singh Rathore's avatar Narendra Singh Rathore
Browse files

Added latest code and made font size small

parents b781b42e df8d058c
No related branches found
No related tags found
No related merge requests found
......@@ -162,6 +162,8 @@ class RandomDataPlugin extends PluginBase implements ProjectBrowserSourceInterfa
$categories = $this->getCategories();
$security_values = $this->getSecurityCoverages();
$maintenance_values = $this->getMaintenanceStatuses();
$broken_image = 'https://image.not/found' . uniqid() . '.jpg';
$good_image = 'https://picsum.photos/600/400';
for ($i = 0; $i < $number_of_projects; $i++) {
$machine_name = strtolower($this->randomGenerator->word(10));
$category = array_rand($categories);
......@@ -183,7 +185,7 @@ class RandomDataPlugin extends PluginBase implements ProjectBrowserSourceInterfa
'field_project_images' => [
[
'file' => [
'uri' => rand(0, 3) ? 'https://picsum.photos/600/400' : 'https://image.not/found.jpg',
'uri' => ($i % 3) ? $good_image : $broken_image,
'resource' => 'image',
],
'alt' => $machine_name . ' logo',
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -23,7 +23,7 @@
p {
display: inline-block;
word-wrap: break-word;
font-size: 1rem;
font-size: .875rem;
color: white;
}
.filters-applied {
......
......@@ -45,6 +45,10 @@
<style>
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
.project{
padding: 0 2rem;
}
.left {
padding: 10px;
width: 10%;
......@@ -55,6 +59,7 @@
@media only screen and (min-width: 992px) {
.project {
width: 100%;
padding: 0 2rem;
}
}
......@@ -72,7 +77,7 @@
color: black;
}
.main {
width: 88%;
width: 100%;
}
@media only screen and (max-width: 1450px) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment