Skip to content

Commit

Permalink
feat: index page for projects added
Browse files Browse the repository at this point in the history
  • Loading branch information
samt202410 committed Apr 29, 2024
1 parent 87c1bee commit ceaba0b
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
31 changes: 31 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Digital Marketing Projects</title>
</head>
<link
href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900"
rel="stylesheet"
/>
<link rel="stylesheet" href="./style.css" />
<body>
<h1>Digital Marketing</h1>

<section>
<div
class="card"
onclick="onCardClick('./newsletter graph/Newsletter Graph Widget.html')"
>
<iframe
src="./newsletter graph/Newsletter Graph Widget.html"
frameborder="0"
></iframe>
<h4>Newsletter Widget</h4>
</div>
</section>

<script src="./main.js"></script>
</body>
</html>
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

function onCardClick(path) {
window.open(path, "_self");
}
67 changes: 67 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "lato", sans-serif;
}

body {
color: white;
width: 100vw;
height: 100vh;
display: flex;
flex-direction: column;
padding: 60px;
background: linear-gradient(to right bottom, #7ed56f, #28b485);
}

h1 {
font-size: 3.5rem;
font-weight: 400;
margin-bottom: 5.5rem;
letter-spacing: 0.25rem;
text-align: center;
}

h4 {
letter-spacing: 0.125rem;
}

section {
display: grid;
justify-items: start;
grid-auto-rows: 315px;
grid-template-columns: repeat(auto-fill, 500px);
}

.card {
position: relative;
display: flex;
cursor: pointer;
flex-direction: column;
align-items: center;
gap: 8px;
width: 100%;
height: 100%;
transition: transform 300ms;
}

iframe {
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.8);
border-radius: 12px;
box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.15);
}

.card::after {
content: "";
position: absolute;
display: block;
width: 100%;
height: 100%;
}

.card:hover {
transform: translateY(-1.5rem) scale(1.03);
}

0 comments on commit ceaba0b

Please sign in to comment.