Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added frames issue #3 #5

Merged
merged 1 commit into from
Oct 26, 2022
Merged
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
16 changes: 16 additions & 0 deletions assets/frames/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Frame Designs

### Frame 1, 2, and 3
- Inspired from : Chris Smith's CSS Picture Frame, [Codepen](https://codepen.io/chris22smith/pen/PbBwjp)
- Could look good on pictures that get highlighted with thick frames
- Suitable for classics, and antiques

### Frames 4-9
- Inspired from : Divinector's [CSS Tricks](https://www.youtube.com/watch?v=K3NNBnSA3C4)
- Has cool hover effects
- Frame can be of any abstract image, could be easily compliment the image/photo

### Frames 10, 11, and 12
- Inspired from: [W3Docs](https://www.w3docs.com/snippets/css/how-to-add-a-frame-around-an-image.html)
- Give a photobook feel with spiral bound
- Could be used for personal collection
58 changes: 58 additions & 0 deletions assets/frames/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html>

<head>
<title>Frame Designs</title>
<link rel="stylesheet" href="styles.css">
</head>

<body>
<h1 class="heading">Frame Designs</h1>
<div class="grid-layout">
<div class="frame-1">
<img src="https://cdn.pixabay.com/photo/2021/01/29/08/08/dog-5960092_960_720.jpg" alt="Pet Dog" />
</div>
<div class="frame-2">
<img src="https://cdn.pixabay.com/photo/2021/01/29/08/08/dog-5960092_960_720.jpg" alt="Pet Dog" />
</div>
<div class="frame-3">
<img src="https://cdn.pixabay.com/photo/2021/01/29/08/08/dog-5960092_960_720.jpg" alt="Pet Dog" />
</div>
<br>
<div class="wrapper">
<div class="box-4">
<img src="https://cdn.pixabay.com/photo/2021/01/29/08/08/dog-5960092_960_720.jpg" alt="Pet Dog" />
</div>
<div class="box-5">
<img src="https://cdn.pixabay.com/photo/2021/01/29/08/08/dog-5960092_960_720.jpg" alt="Pet Dog" />
</div>
<div class="box-6">
<img src="https://cdn.pixabay.com/photo/2021/01/29/08/08/dog-5960092_960_720.jpg" alt="Pet Dog" />
</div>
</div>
<div class="wrapper">
<div class="box-7">
<img src="https://cdn.pixabay.com/photo/2021/01/29/08/08/dog-5960092_960_720.jpg" alt="Pet Dog" />
</div>
<div class="box-8">
<img src="https://cdn.pixabay.com/photo/2021/01/29/08/08/dog-5960092_960_720.jpg" alt="Pet Dog" />
</div>
<div class="box-9">
<img src="https://cdn.pixabay.com/photo/2021/01/29/08/08/dog-5960092_960_720.jpg" alt="Pet Dog" />
</div>
</div>
</div>
<br><br>
<div class="grid-layout">
<div class="frame-10">
<img src="https://images.pexels.com/photos/8519608/pexels-photo-8519608.jpeg" alt="Pet Cat" />
</div>
<div class="frame-11">
<img src="https://www.nicepng.com/png/detail/85-852905_de-cats-and-kittens-kittens-cutest-kittens-cat.png" alt="Pet Cat" />
</div>
<div class="frame-12">
<img src="https://images.pexels.com/photos/8519608/pexels-photo-8519608.jpeg" alt="Pet Cat" />
</div>
</div>
</body>
</html>
234 changes: 234 additions & 0 deletions assets/frames/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
body {
font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.heading {
display: grid;
justify-content: center;
color: rgb(67, 58, 15);
}

.grid-layout {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
}

html {
background-image: linear-gradient(rgb(193, 194, 163), rgb(198, 192, 192));
height: auto;
}

img {
width: 150px;
height: 220px;
border: solid 2px;
border-bottom-color: rgb(238, 222, 171);
border-left-color: rgb(238, 222, 171);
border-right-color: rgb(230, 212, 156);
border-top-color: rgb(230, 212, 156);
max-height: 100%;
max-width: 100%;
}

.frame-1 {
background-color: rgb(207, 176, 146);
border: solid 5vmin rgb(243, 138, 126);
border-bottom-color: rgb(149, 104, 13);
border-left-color: rgb(172, 122, 23);
border-radius: 25px;
border-right-color: rgb(172, 122, 23);
border-top-color: rgb(149, 104, 13);
box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25) inset, 0 5px 10px 5px rgba(0, 0, 0, .25);
box-sizing: border-box;
display: inline-block;
margin: 5vh 5vw;
padding: 4vmin;
position: relative;
text-align: center;
}

.frame-2 {
background-color: rgb(158, 109, 60);
border: solid 5vmin rgb(243, 138, 126);
border-bottom-color: rgb(99, 13, 4);
border-top-color: rgb(99, 13, 4);
border-left-color: rgb(74, 16, 10);
border-right-color: rgb(74, 16, 10);
border-radius: 5px;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25) inset, 0 5px 10px 5px rgba(0, 0, 0, .25);
box-sizing: border-box;
display: inline-block;
margin: 5vh 5vw;
padding: 4vmin;
position: relative;
text-align: center;
}

.frame-3 {
background-color: rgb(162, 169, 124);
border: solid 5vmin rgb(55, 42, 4);
border-bottom-color: rgb(53, 40, 11);
border-top-color: rgb(53, 40, 11);
border-left-color: rgb(79, 58, 13);
border-right-color: rgb(79, 58, 13);
border-radius: 15px;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25) inset, 0 5px 10px 5px rgba(0, 0, 0, .25);
box-sizing: border-box;
display: inline-block;
margin: 5vh 5vw;
padding: 4vmin;
position: relative;
text-align: center;
}

.wrapper {
display: flex;
justify-content: center;
align-items: center;
padding-top: 25px;
padding-bottom: 25px;
}

.box-4 {
background: url("https://images.pexels.com/photos/1293120/pexels-photo-1293120.jpeg");
box-shadow: inset 0 50px rgba(255, 255, 255, .1),
inset 2px -15px 30px rgba(0, 0, 0, .4);
padding: 25px;
border-radius: 50%;
text-align: center;
margin: 0 20px;
transition: all cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.box-5 {
background: url("https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=764&q=80");
box-shadow: inset 0 50px rgba(255, 255, 255, .1),
inset 2px -15px 30px rgba(0, 0, 0, .4);
padding: 25px;
border-radius: 50%;
text-align: center;
margin: 0 20px;
transition: all cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.box-6 {
background: url("https://images.unsplash.com/photo-1563089145-599997674d42?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80");
box-shadow: inset 0 50px rgba(255, 255, 255, .1),
inset 2px -15px 30px rgba(0, 0, 0, .4);
padding: 25px;
border-radius: 50%;
text-align: center;
margin: 0 20px;
transition: all cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.box-7 {
background: url("https://cdn.pixabay.com/photo/2016/12/15/20/21/texture-1909992_960_720.jpg");
box-shadow: inset 0 50px rgba(255, 255, 255, .1),
inset 2px -15px 30px rgba(0, 0, 0, .4);
padding: 25px;
border-radius: 50%;
text-align: center;
margin: 0 20px;
transition: all cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.box-8 {
background: url("https://cdn.pixabay.com/photo/2022/10/17/15/41/leaf-7528064_960_720.jpg");
box-shadow: inset 0 50px rgba(255, 255, 255, .1),
inset 2px -15px 30px rgba(0, 0, 0, .4);
padding: 25px;
border-radius: 50%;
text-align: center;
margin: 0 20px;
transition: all cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.box-9 {
background: url("https://cdn.pixabay.com/photo/2020/12/12/13/15/leaves-5825458_960_720.jpg");
box-shadow: inset 0 50px rgba(255, 255, 255, .1),
inset 2px -15px 30px rgba(0, 0, 0, .4);
padding: 25px;
border-radius: 50%;
text-align: center;
margin: 0 20px;
transition: all cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.box-4 img {
width: 150px;
border-radius: 50%;
}

.box-4:hover {
transform: scale(1.1);
}

.box-5 img {
width: 150px;
border-radius: 50%;
}

.box-5:hover {
transform: scale(1.1);
}

.box-6 img {
width: 150px;
border-radius: 50%;
}

.box-6:hover {
transform: scale(1.1);
}

.box-7 img {
width: 150px;
border-radius: 50%;
}

.box-7:hover {
transform: scale(1.1);
}

.box-8 img {
width: 150px;
border-radius: 50%;
}

.box-8:hover {
transform: scale(1.1);
}

.box-9 img {
width: 150px;
border-radius: 50%;
}

.box-9:hover {
transform: scale(1.1);
}

.frame-10 {
padding-left: 40px;
padding-right: 40px;
border: 20px solid transparent;
border-image: url("https://images.pexels.com/photos/6373487/pexels-photo-6373487.jpeg") 35% round;
}

.frame-11 {
padding-left: 40px;
padding-right: 40px;
border: 20px solid transparent;
width: fit-content;
border-image: url("https://images.pexels.com/photos/6373487/pexels-photo-6373487.jpeg") 35% round;
}

.frame-12 {
padding-left: 40px;
padding-right: 40px;
border: 20px solid transparent;
border-image: url("https://images.pexels.com/photos/6373487/pexels-photo-6373487.jpeg") 35% round;
}