-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project Carousel #54
base: master
Are you sure you want to change the base?
Project Carousel #54
Changes from all commits
b566f45
cf71067
7ddcc71
f3c4509
04c50e1
a1b4a88
9c29413
e19cbd8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,23 @@ | ||
<div class="section"> | ||
<div class="container"> | ||
<h2>Our Work</h2> | ||
<div class="work-section"> | ||
<div class="row justify-content-center"> | ||
<button type="button" class="slider_button btn btn-danger btn-just-icon" (click)="backward()"><i | ||
class="fa fa-angle-left"></i></button> | ||
<div class="project card" *ngFor="let project of listedProjects"> | ||
<img class="card-img-top" src="assets/img/work/{{project.image}}" alt="Card image cap"> | ||
<h2 class="title">Our Work</h2> | ||
<ngx-slick-carousel class="carousel project" #slickModal="slick-carousel" [config]="slideConfig"> | ||
<div ngxSlickItem *ngFor="let project of projects" class="slide card"> | ||
<a (click)="showProjectCard({ | ||
image:project.image, | ||
description: project.largeDescription, | ||
name: project.projectName, | ||
github: project.github|| null})"> | ||
<img class="card-img-top" src="assets/img/work/{{project.image}}" alt="Project Image"> | ||
<div class="card-body"> | ||
<h5 class="card-title"><b>{{project.projectName}}</b> | ||
<i *ngIf="project.isWeb" class="fa fa-globe" aria-hidden="true" | ||
style="padding-left:10px;"></i> </h5> | ||
<p class="card-text" style="text-align: justify; font-size: 12px;">{{project.description}}</p> | ||
<button class="btn btn-default" (click)="showProjectCard({ | ||
image:project.image, | ||
description: project.largeDescription, | ||
name: project.projectName, | ||
github: project.github|| null})"> | ||
See more</button> | ||
<h5 class="card-title"><b>{{project.projectName}} | ||
<i *ngIf="project.isWeb" class="fa fa-globe" aria-hidden="true" | ||
style="padding-left:10px;"></i></b> | ||
</h5> | ||
<p class="card-text">{{project.description}}</p> | ||
</div> | ||
</div> | ||
<button type="button" class="slider_button btn btn-danger btn-just-icon" (click)="foward()"><i | ||
class="fa fa-angle-right"></i></button> | ||
</a> | ||
</div> | ||
</div> | ||
</ngx-slick-carousel> | ||
</div> | ||
</div> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,17 @@ | ||
.project { | ||
margin: 2px 20px; | ||
width: 18rem; | ||
|
||
@media screen and (max-width: 995px) { | ||
margin: 2px 12px; | ||
} | ||
|
||
@media screen and (max-width: 398px) { | ||
margin: 2px 5px; | ||
width: 250px; | ||
} | ||
cursor: pointer; | ||
height: 100%; | ||
} | ||
|
||
@media screen and (max-width: 398px) { | ||
margin: 2px 5px; | ||
width: 220px; | ||
} | ||
.slick-slider { | ||
width: 85%; | ||
margin: auto; | ||
} | ||
|
||
.slider_button { | ||
display: block; | ||
margin-bottom: auto; | ||
margin-top: auto; | ||
.prev-slide { | ||
left: -33px; | ||
} | ||
|
||
.work-section { | ||
margin-top: 5vh; | ||
.next-slide { | ||
right: -33px; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
<div class="project-modal"> | ||
<div class="modal-header no-border-header"> | ||
<h5 class="modal-title text-center"> </h5> | ||
<button type="button" class="close" aria-label="Close" (click)="close()"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<h5 class="modal-title text-center">{{data.name}}</h5> | ||
<img src="assets/img/work/{{data.image}}" class="img-rounded" style="height:60%;width:60%;"> | ||
<h5 class="modal-title text-center">{{data.name}}</h5> | ||
<div class="project-description">{{data.description}}</div> | ||
<div class="row justify-content-center social-media-links"> | ||
<div *ngIf="data.github" class="col-xs-4 social-link"> | ||
<a rel="tooltip" title="Github" data-placement="bottom" href="{{data.github}}" target="_blank"> | ||
<i class="fa fa-github-square"></i> | ||
</a> | ||
<div *ngIf="data.github"> | ||
<div class="checkProjects">Check Out The Project!</div> | ||
<div class="row justify-content-center social-media-links"> | ||
<div class="col-xs-4 social-link"> | ||
<a rel="tooltip" title="Github" data-placement="bottom" href="{{data.github}}" target="_blank"> | ||
<i class="fa fa-github-square"></i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="modal-footer no-border-footer"> | ||
<div class="project-close mx-auto"> | ||
<button type="button" #closebutton class="btn btn btn-outline-primary btn-round" data-dismiss="modal" (click)="close()">Close</button> | ||
<button type="button" class="btn btn btn-outline-primary btn-round" data-dismiss="modal" (click)="close()">Close</button> | ||
</div> | ||
</div> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,8 @@ | |
color: #000000; | ||
font-size: large; | ||
} | ||
|
||
.checkProjects{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Opening curly brace |
||
margin-top: 10px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Properties should be ordered color, margin-top |
||
color: gray; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Color |
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties should be ordered margin, width