Skip to content

Commit

Permalink
Add code files
Browse files Browse the repository at this point in the history
  • Loading branch information
huaminghuangtw committed Dec 31, 2021
1 parent 040bd3b commit 8fc9bef
Show file tree
Hide file tree
Showing 17 changed files with 1,523 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
# editorconfig.org


# Use top-most EditorConfig file
root = true


[*]
# Unix-style newlines at the bottom of every file
end_of_line = lf

charset = utf-8

# Remove any whitespace characters preceding newline characters
trim_trailing_whitespace = true

insert_final_newline = false

# Tab indentation
indent_style = space
indent_size = 4

# Give operators breathing room, but not brackets
spaces_around_operators = true
spaces_around_brackets = false


[.js]
quote_type = single
curly_bracket_next_line = false


[.html]
quote_type = double


[*.{diff, md}]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TODOs.txt
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "Font-Awesome"]
path = Font-Awesome
url = https://github.com/FortAwesome/Font-Awesome.git
163 changes: 163 additions & 0 deletions CSSstyles/social-media-panel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
/* SOCIAL MEDIA PANEL */

.social-panel-container {
position: fixed;
right: 0;
bottom: 80px;
transform: translateX(100%);
transition: transform 0.4s ease-in-out;
}

.social-panel-container.visible {
transform: translateX(-10px);
}

.social-panel {
background-color: #fff;
border-radius: 16px;
box-shadow: 0 16px 31px -17px rgba(0, 31, 97, 0.6);
border: 5px solid #001F61;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-family: 'Muli';
position: relative;
height: 169px;
width: 44px;
max-width: calc(100% - 10px);
}

.social-panel #heart {
color: red;
}

.social-panel button.close-btn {
border: 0;
color: #97A5CE;
cursor: pointer;
font-size: 20px;
position: absolute;
top: 5px;
right: 5px;
}

.social-panel button.close-btn:focus {
outline: none;
}

.social-panel p {
background-color: #001F61;
border-radius: 0 0 10px 10px;
color: #fff;
font-size: 14px;
line-height: 18px;
padding: 2px 17px 6px;
position: absolute;
top: 0;
left: 50%;
margin: 0;
transform: translateX(-50%);
text-align: center;
width: 235px;
}

.social-panel p i {
margin: 0 5px;
}

.social-panel p a {
color: white;
text-decoration: none;
}

.social-panel h4 {
margin: 20px 0;
color: #97A5CE;
font-family: 'Muli';
font-size: 14px;
line-height: 18px;
text-transform: uppercase;
}

.social-panel ul {
display: flex;
list-style-type: none;
padding: 0;
margin: 0;
}

.social-panel ul li {
margin: 0 10px;
}

.social-panel ul li a {
border: 1px solid #DCE1F2;
border-radius: 50%;
color: #001F61;
font-size: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 50px;
width: 50px;
text-decoration: none;
}

.social-panel ul li a:hover {
border-color: #FF6A00;
box-shadow: 0 9px 12px -9px #FF6A00;
}

.floating-btn {
border-radius: 26.5px;
background-color: #001F61;
border: 1px solid #001F61;
box-shadow: 0 16px 22px -17px #03153B;
color: #fff;
cursor: pointer;
font-size: 16px;
line-height: 20px;
padding: 12px 20px;
position: fixed;
bottom: 20px;
right: 20px;
z-index: 999;
}

.floating-btn:hover {
background-color: #ffffff;
color: #001F61;
}

.floating-btn:focus {
outline: none;
}

.floating-text {
background-color: #001F61;
border-radius: 10px 10px 0 0;
color: #fff;
font-family: 'Muli';
padding: 7px 15px;
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
text-align: center;
z-index: 998;
}

.floating-text a {
color: #FF7500;
text-decoration: none;
}

@media screen and (max-width: 480px) {
.social-panel-container.visible {
transform: translateX(0px);
}
.floating-btn {
right: 10px;
}
}
104 changes: 104 additions & 0 deletions CSSstyles/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
/* MAIN PAGE OF SUDOKU PUZZLE GAME */

.hidden {
display: none;
}

header {
text-align: center;
padding-bottom: 10px;
border-bottom: 3px solid brown;
}

h1 {
font-size: 34pt;
}

#setup-game {
display: flex;
justify-content: center;
}

#setup-game>* {
font-size: 18px;
margin-bottom: 10px;
padding-left: 50px;
padding-right: 50px;
display: flex;
align-items: center;
}

button {
justify-self: center;
}

p#timer,
p#lives {
font-size: 25px;
font-weight: bold;
text-align: center;
}

#game {
display: flex;
justify-content: center;
}

#number-container>p {
border: 1px solid black;
border-radius: 20%;
width: 60px;
height: 60px;
font-size: 40pt;
margin-left: 50px;
margin-top: 5px;
margin-bottom: 5px;
text-align: center;
}

#board {
padding-top: 10px;
margin-top: 10px;
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
align-content: flex-start;
width: 600px;
height: 600px;
}

.tile {
border: 1px solid black;
width: 60px;
height: 60px;
text-align: center;
margin: 0px;
vertical-align: middle;
font-size: 40pt;
}

p.selected {
background-color: lightblue;
}

p.incorrect {
color: red;
}

.rightBorder {
border-right: 4px solid black;
}

.bottomBorder {
border-bottom: 4px solid black;
}

.green-text {
color: ForestGreen;
}

footer {
background-color: #235fdf;
color: white;
text-align: center;
}
56 changes: 56 additions & 0 deletions CSSstyles/theme-toggle-button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/* THEME TOGGLE BUTTON */

body.dark {
background-color: #616161;
color: white;
}

body.light {
background-color: white;
color: black;
}

input[type="checkbox"] {
display: none;
justify-content: center;
}

.btn {
align-self: flex-end;
margin: 5px 10px;
}

.box {
display: flex;
flex-direction: column;
justify-content: center;
width: 90px;
height: 45px;
background-color: black;
transition: all 1s ease;
position: relative;
border-radius: 22.5px;
cursor: pointer;
}

.box .ball {
width: 45px;
height: 45px;
background-color: grey;
transition: all 1s ease;
position: absolute;
border-radius: 50%;
border: 3px solid black;
}

.box .scenary {
display: flex;
flex-direction: row;
justify-content: space-between;
transition: all 1s ease;
padding: 5px 10px 0px 10px;
}

.box .scenary svg {
width: 30px;
}
1 change: 1 addition & 0 deletions Font-Awesome
Submodule Font-Awesome added at 7cbd7f
Loading

0 comments on commit 8fc9bef

Please sign in to comment.