Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions challenges/flex/flex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flex Challenges</title>
<link rel="stylesheet" href="./style.css">
</head>

<body>
<div>
<div class="flex-container">
<ul>
<li>SOTD</li>
<li>Creator</li>
<li>Font & Color</li>
<li>Details</li>
<li>Score</li>
</ul>
</div>
</div>
</body>

</html>
34 changes: 34 additions & 0 deletions challenges/flex/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
* {
color: #d3d3d3;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.flex-container {
display: flex;
background-color: #3e3e3e;
}

.flex-container ul {
list-style: none;
display: inherit;
}

.flex-container li {
margin-right: 10px;
border: 1px solid #4e4e4e;
padding: 20px;
border-radius: 10px;
}

.flex-container li:hover {
border-color: #d8cd76;
color: #d8cd76;
}

.flex-container li:first-child {
font-weight: 700;
color: #d3d3d3;
pointer-events: none;
border: 0;
}
Binary file added solutions/grid/3/Solution image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added solutions/grid/3/icons/search-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions solutions/grid/3/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Grid Challenge</title>
</head>

<body>
<div>
<input type="text" name="" id="search-bar" placeholder="Search">
<img src="./icons/search-icon.png"></i>
</div>
</body>

</html>
19 changes: 19 additions & 0 deletions solutions/grid/3/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#search-bar{
position: relative;
border: 2px solid gray;
border-radius: 25px;
opacity: 0.5;
font-size: 16px;
padding:5px 25px;
}
#search-bar:focus-visible{
outline: none;
}
img{
position: absolute;
top: 3.5%;
width: 18px;
left: 10px;
transform: translateY(-50%);
padding-left: 5px;
}