Skip to content
This repository was archived by the owner on Mar 1, 2021. It is now read-only.

Improvement on grid style #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
102 changes: 56 additions & 46 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,80 +1,90 @@
body {
font-family: Montserrat, Helvetica Neue, sans-serif;
line-height: 2em;
box-sizing: border-box;
color: #333333b3;
/* background: linear-gradient(to bottom right, #ffded1 0%,#ffded1 50%,#ffc5af 50%,#ffc5af 100%); */
background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);
font-family: Montserrat, Helvetica Neue, sans-serif;
line-height: 2em;
box-sizing: border-box;
color: #333333b3;
/* background: linear-gradient(to bottom right, #ffded1 0%,#ffded1 50%,#ffc5af 50%,#ffc5af 100%); */
background-image: linear-gradient(to right, #ffecd2 0%, #fcb69f 100%);
}

html, body {
height: 100%;
margin: 0;
html,
body {
height: 100%;
margin: 0;
}

a {
text-decoration: none;
color: #1b6568;
transition-duration: 100ms;
text-decoration: none;
color: white;
transition-duration: 100ms;
}

.github {
float: right;
fill: #445978;
padding-top: 5px;
float: right;
fill: #445978;
padding-top: 5px;
}

p {
font-family: 'Roboto';
font-weight: 300;
font-size: 23px;
text-align: center;
font-family: 'Roboto';
font-weight: 300;
font-size: 23px;
text-align: center;
}

.name {
font-size: 32px;
text-transform: uppercase;
display: inline;
font-size: 32px;
text-transform: uppercase;
display: inline;
}

.container {
margin: 0 auto;
width: 700px;
padding: 50px 0;
margin: 0 auto;
width: 700px;
padding: 50px 0;
}

.container header {
padding: 12px;
line-height: normal;
text-align: center;
border: 4px solid #445978;
color: #445978;
padding: 12px;
line-height: normal;
text-align: center;
border: 4px solid #445978;
color: #445978;
}

main {
padding: 1em;
padding: 1em;
}

main::after {
content: '\2A55\2A55\2A55\2A55';
position: relative;
top: 40px;
left: 300px;
color: #445978;
font-size: 44px;
content: '\2A55\2A55\2A55\2A55';
position: relative;
top: 40px;
left: 300px;
color: #445978;
font-size: 44px;
}

div.grid {
text-align: center;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
text-align: center;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
}

div.grid-item {
margin-bottom: 20px;
margin-top: 10px;
.language-name:hover {
border-bottom: 3px solid #1b6568;
transition-duration: 100ms;
}

.language-name:hover{
border-bottom: 3px solid #1b6568;
transition-duration: 100ms;
div.grid-item {
background-color: #445978;
border: none;
padding: 2vh 1vw;
text-align: center;
opacity: 0.5;
transition: 0.5s;
}

div.grid-item:hover {
opacity: 1;
}
91 changes: 59 additions & 32 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,41 +1,68 @@
<!doctype html>
<html lang="en" dir="ltr">
<head>

<head>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,900|Roboto:300" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="icon" href="./images/favicon.png" type="image/x-icon">
<title>The Algorithms</title>
</head>
<body>
</head>

<body>
<div class="container">
<header>
<h1 class="name">The Algorithms</h1>
<a class="github" href="https://github.com/TheAlgorithms" target="_blank">
<svg width="30" height="30" viewBox="0 0 16 16" version="1.1"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>
</a>
</header>
<main>
<div class="intro">
<p>We are an <a href="http://en.wikipedia.org/wiki/Open-source_software" target="_blank">open source</a> community established to help people find all the algorithms and data structures for every popular language at a single place.</p>
</div>
<p>Explore Algorithms Implementation in the following Programming Languages</p>
<div class="grid">
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/C-Plus-Plus"><img src="./images/svg/cpp-lang.svg" height="50px" alt="C-Plus-Plus Logo"/><br><span class="language-name">C++</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/C"><img src="./images/svg/c-lang.svg" height="50px" alt="C Logo"/><br><span class="language-name">C</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/Python"><img src="./images/svg/python.svg" height="50px" alt="Python Logo"/><br><span class="language-name">Python</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/Java"><img src="./images/svg/java.svg" height="50px" alt="Java Logo"/><br><span class="language-name">Java</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/Scala"><img src="./images/svg/scala.svg" height="50px" alt="Scala Logo"/><br><span class="language-name">Scala</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/C-Sharp"><img src="./images/svg/c-sharp-lang.svg" height="50px" alt="C-Sharp Logo"/><br><span class="language-name">C#</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/Rust"><img src="./images/svg/rust.svg" height="50px" alt="Rust Logo"/><br><span class="language-name">Rust</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/Javascript"><img src="./images/svg/javascript.svg" height="50px" alt="JavaScript Logo"/><br><span class="language-name">JavaScript</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/Go"><img src="./images/svg/golang.svg" height="50px" alt="Go Logo"/><br><span class="language-name">Go</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/R"><img src="./images/svg/r-lang.svg" height="50px" alt="R Logo"/><br><span class="language-name">R</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/Ruby"><img src="./images/svg/ruby.svg" height="50px" alt="Ruby Logo"/><br><span class="language-name">Ruby</span></a></div>
<div class="grid-item"><a target="_blank" href="https://github.com/TheAlgorithms/MATLAB-Octave"><img src="./images/svg/matlab.png" height="50px" alt="MATLAB/Octave Logo"/><br><span class="language-name">MATLAB/<br>Octave</span></a></div>
</div>
</main>

<header>
<h1 class="name">The Algorithms</h1>
<a class="github" href="https://github.com/TheAlgorithms" target="_blank">
<svg width="30" height="30" viewBox="0 0 16 16" version="1.1"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>
</a>
</header>
<main>
<div class="intro">
<p>We are an <a href="http://en.wikipedia.org/wiki/Open-source_software" target="_blank">open source</a> community established to help people find all the algorithms and data structures for every popular language at a single place.</p>
</div>
<p>Explore Algorithms Implementation in the following Programming Languages</p>
<div class="grid">
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/C-Plus-Plus"><img src="./images/svg/cpp-lang.svg" height="50px" alt="C-Plus-Plus Logo" /><br><span class="language-name">C++</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/C"><img src="./images/svg/c-lang.svg" height="50px" alt="C Logo" /><br><span class="language-name">C</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/Python"><img src="./images/svg/python.svg" height="50px" alt="Python Logo" /><br><span class="language-name">Python</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/Java"><img src="./images/svg/java.svg" height="50px" alt="Java Logo" /><br><span class="language-name">Java</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/Scala"><img src="./images/svg/scala.svg" height="50px" alt="Scala Logo" /><br><span class="language-name">Scala</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/C-Sharp"><img src="./images/svg/c-sharp-lang.svg" height="50px" alt="C-Sharp Logo" /><br><span class="language-name">C#</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/Rust"><img src="./images/svg/rust.svg" height="50px" alt="Rust Logo" /><br><span class="language-name">Rust</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/Javascript"><img src="./images/svg/javascript.svg" height="50px" alt="JavaScript Logo" /><br><span class="language-name">JavaScript</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/Go"><img src="./images/svg/golang.svg" height="50px" alt="Go Logo" /><br><span class="language-name">Go</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/R"><img src="./images/svg/r-lang.svg" height="50px" alt="R Logo" /><br><span class="language-name">R</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/Ruby"><img src="./images/svg/ruby.svg" height="50px" alt="Ruby Logo" /><br><span class="language-name">Ruby</span></a>
</div>
<div class="grid-item">
<a target="_blank" href="https://github.com/TheAlgorithms/MATLAB-Octave"><img src="./images/svg/matlab.png" height="50px" alt="MATLAB/Octave Logo" /><br><span class="language-name">MATLAB/<br>Octave</span></a>
</div>
</div>
</main>

</div>
</body>
</html>
</body>

</html>