-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from skedwards88/more-games
Display images of more games
- Loading branch information
Showing
18 changed files
with
98 additions
and
6 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Directories that include images to compress | ||
declare -a dirs=("src/images/moreGames") | ||
|
||
# Loop over the directories | ||
for dir in "${dirs[@]}"; do | ||
# Loop over the files in the directory | ||
for file in $dir/*; do | ||
# Get the file extension | ||
extension="${file##*.}" | ||
# Compress the file if it is a png | ||
if [ "$extension" = "png" ]; then | ||
cwebp -q 75 $file -o ${dir/compressed}/$(basename $file '.png').webp | ||
fi | ||
done | ||
done |
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
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.
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.
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.
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.
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.
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#moreGames { | ||
display: flex; | ||
flex-wrap: wrap; | ||
flex-direction: row; | ||
justify-content: center; | ||
} | ||
|
||
.game-image { | ||
margin: 2vw; | ||
width: 40vw; | ||
height: 70vw; | ||
background-size: cover; | ||
background-position: center; | ||
border: 1px solid var(--light-color); | ||
border-radius: 5%; | ||
} | ||
|
||
.blobble { | ||
background-image: url("../images/moreGames/blobble.webp"); | ||
} | ||
|
||
.lexlet { | ||
background-image: url("../images/moreGames/lexlet.webp"); | ||
} | ||
|
||
.wordfall { | ||
background-image: url("../images/moreGames/wordfall.webp"); | ||
} | ||
|
||
.gribbles { | ||
background-image: url("../images/moreGames/gribbles.webp"); | ||
} | ||
|
||
.logicGrid { | ||
background-image: url("../images/moreGames/logicGrid.webp"); | ||
} |