Portfolio Layout Flex

Developer
Size
3,489 Kb
Views
38,456

How do I make an portfolio layout flex?

What is a portfolio layout flex? How do you make a portfolio layout flex? This script and codes were developed by Lahvjal on 24 August 2022, Wednesday.

Portfolio Layout Flex Previews

Portfolio Layout Flex - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Portfolio Layout Flex</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="nav"> <div class="profile"></div> <div class="navvy"></div>
</div>
<div class="nav-spacer"></div>
<div class="container"> <div class="barrier"> <div class="project-row"> <a class="project-card proj-1 flex2"> </a> <div class="project-card proj-2 flex1"> </div> <div class="project-card proj-3 flex1"> </div> <div class="clear"></div> </div> <div class="project-row"> <div class="project-card proj-4 flex1"> </div> <div class="project-card proj-5 flex1"> </div> <div class="project-card proj-6 flex1"> </div> <div class="clear"></div> </div> <div class="clear"></div> </div> <div class="clear"></div>
</div>
<div class="clear"></div>
</body>
</html>

Portfolio Layout Flex - Script Codes CSS Codes

@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,900");
body { margin: 0; padding: 0; color: #333; display: flex; flex-direction: row; position: relative; font-family: "Roboto", sans-serif; box-sizing: border-box; height: auto;
}
h1 { font-weight: 300;
}
.flex1 { flex: 1;
}
.flex2 { flex: 2;
}
.flex3 { flex: 3;
}
.flex4 { flex: 4;
}
.flex5 { flex: 5;
}
.nav-spacer { width: 300px; height: 100%;
}
.nav { width: 300px; height: 100vh; position: fixed; min-height: 800px; background-color: #fff; display: flex; flex-direction: column; justify-content: space-around; align-items: center; z-index: 5; transition: all ease 300ms;
}
.nav .navvy { width: 80%; height: 300px;
}
.clear { clear: both;
}
.profile { height: 180px; width: 180px; border-radius: 50%; cursor: pointer; background: linear-gradient(rgba(51, 51, 51, 0), rgba(51, 51, 51, 0)), url(https://scontent.xx.fbcdn.net/v/t1.0-9/13178898_10153947303729733_630368274241755814_n.jpg?oh=68cc09899af20bc25857ecabaee3be56&oe=595C29BF); background-size: 200%; background-position: 60% 10%; transition: all ease 300ms;
}
.profile:hover { background: linear-gradient(rgba(51, 51, 51, 0.4), rgba(51, 51, 51, 0.4)), url(https://scontent.xx.fbcdn.net/v/t1.0-9/13178898_10153947303729733_630368274241755814_n.jpg?oh=68cc09899af20bc25857ecabaee3be56&oe=595C29BF); background-size: 200%; background-position: 60% 10%;
}
.container { display: flex; justify-content: center; width: calc(100vw - 300px); background-color: #fff; right: 0;
}
.barrier { display: flex; align-items: center; flex-direction: column; width: 100%; height: auto; padding: 5px; box-sizing: border-box;
}
.title { text-align: center;
}
.project-row { width: 100%; height: auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
}
.project-card { height: 400px; width: auto; background-color: #ccc; margin: 7px; cursor: pointer;
}
.proj-1 { background-image: url(https://images.unsplash.com/photo-1473220464492-452fb02e6221?dpr=1&auto=compress,format&fit=crop&w=1199&h=800&q=80&cs=tinysrgb&crop=); background-size: cover; background-position: center center;
}
.proj-2 { background-image: url(https://images.unsplash.com/photo-1480444704010-31f5e7c5707c?dpr=1&auto=compress,format&fit=crop&w=1199&h=799&q=80&cs=tinysrgb&crop=); background-size: cover; background-position: center center;
}
.proj-3 { background-image: url(https://images.unsplash.com/11/berries.jpg?dpr=1&auto=compress,format&fit=crop&w=1199&h=899&q=80&cs=tinysrgb&crop=); background-size: cover; background-position: center center;
}
.proj-4 { background-image: url(https://images.unsplash.com/photo-1473220464492-452fb02e6221?dpr=1&auto=compress,format&fit=crop&w=1199&h=800&q=80&cs=tinysrgb&crop=); background-size: cover; background-position: center center;
}
.proj-5 { background-image: url(https://images.unsplash.com/photo-1480444704010-31f5e7c5707c?dpr=1&auto=compress,format&fit=crop&w=1199&h=799&q=80&cs=tinysrgb&crop=); background-size: cover; background-position: center center;
}
.proj-6 { background-image: url(https://images.unsplash.com/11/berries.jpg?dpr=1&auto=compress,format&fit=crop&w=1199&h=899&q=80&cs=tinysrgb&crop=); background-size: cover; background-position: center center;
}
Portfolio Layout Flex - Script Codes
Portfolio Layout Flex - Script Codes
Home Page Home
Developer Lahvjal
Username lahvjal
Uploaded August 24, 2022
Rating 3
Size 3,489 Kb
Views 38,456
Do you need developer help for Portfolio Layout Flex?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Lahvjal (lahvjal) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!