generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
SOUTH AFRICA CPT-ITP | LUKE MANYAMAZI | MODULE DATA GROUPS | SLIDE SHOW | WEEK 3 #278
Open
Luke-Manyamazi
wants to merge
6
commits into
CodeYourFuture:main
Choose a base branch
from
Luke-Manyamazi:feature/slideshow
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
1513ce3
Changed the title to
Luke-Manyamazi c4a8f63
added carousel images
Luke-Manyamazi 10db527
added the new images to the js file
Luke-Manyamazi 05ed9c5
added coding desk setup image and the alt text
Luke-Manyamazi d861ba3
added new images, added css, added js, added html for the carousel
Luke-Manyamazi bcc2cb8
added js conde for auto buttons. Changed font type and added css for …
Luke-Manyamazi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,108 @@ | ||
/** Write your CSS in here **/ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
.slideshow-container { | ||
max-width: 800px; | ||
position: relative; | ||
margin-top: 100px; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} | ||
|
||
img { | ||
width: 800px; | ||
border-radius: 20px; | ||
} | ||
|
||
.prev, | ||
.next { | ||
cursor: pointer; | ||
position: absolute; | ||
top: 50%; | ||
width: auto; | ||
margin-top: -22px; | ||
padding: 16px; | ||
color: white; | ||
font-weight: bold; | ||
font-size: 18px; | ||
transition: 0.6s ease; | ||
border-radius: 0 3px 3px 0; | ||
user-select: none; | ||
} | ||
|
||
.autoForward, | ||
.autoBackward { | ||
cursor: pointer; | ||
position: absolute; | ||
top: 50%; | ||
width: auto; | ||
margin-top: 260px; | ||
padding: 16px; | ||
color: rgb(231, 17, 17); | ||
font-weight: bold; | ||
font-size: 18px; | ||
transition: 0.6s ease; | ||
border-radius: 0 3px 3px 0; | ||
user-select: none; | ||
} | ||
|
||
.next, .autoForward { | ||
right: 0; | ||
} | ||
|
||
.prev, .autoBackward { | ||
left: 0; | ||
} | ||
|
||
.prev:hover, .next:hover { | ||
background-color: rgba(0, 0, 0, 0.8); | ||
} | ||
|
||
.dots { | ||
text-align: center; | ||
} | ||
|
||
.dot { | ||
cursor: pointer; | ||
height: 15px; | ||
width: 15px; | ||
margin: 0 2px; | ||
background-color: #bbb; | ||
border-radius: 50%; | ||
display: inline-block; | ||
transition: background-color 0.6s ease; | ||
margin-top: 12px; | ||
} | ||
|
||
.dot.active { | ||
background-color: #717171; | ||
} | ||
|
||
#carousel-img { | ||
width: 800px; | ||
transition: opacity 0.5s ease-in-out; | ||
opacity: 1; | ||
} | ||
|
||
#stop { | ||
display: block; | ||
margin: 20px auto; | ||
padding: 10px 20px; | ||
font-size: 14px; | ||
cursor: pointer; | ||
border: none; | ||
border-radius: 5px; | ||
} | ||
|
||
#stop:hover { | ||
background-color: grey; | ||
color: white; | ||
font-weight: bold; | ||
} | ||
|
||
.autoBackward, | ||
.autoForward { | ||
color: black; | ||
font-size: 14px; | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It is a common practice that while selecting your html elements, it is better to organize them at the beginning of your script. You defined your img element at the beginning, also define other elements at the same place.