Create Separate Components for Each Section
Use Angular CLI to create components for each section of the website:
ng generate component components/header
ng generate component components/about
ng generate component components/skills
ng generate component components/projects
ng generate component components/contact
Follow BEM CSS Architecture
Organize your SCSS files and write CSS using the BEM naming convention.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
background-color: #333;
}
.header__logo img {
height: 40px;
width: auto;
}
.header__nav ul {
display: flex;
list-style: none;
}
.header__nav__item {
margin-left: 20px;
color: white;
text-decoration: none;
font-size: 16px;
font-weight: 500;
transition: color 0.3s ease;
}
.header__nav__item:hover {
color: #ff9900;
}
Apply in HTML
<header class="header">
<div class="header__logo">
<img src="images/Logo.jpg" alt="Logo">
</div>
<nav class="header__nav">
<ul>
<li><a href="#about" class="header__nav__item">Who am I?</a></li>
<li><a href="#projects" class="header__nav__item">Projects</a></li>
<li><a href="#skills" class="header__nav__item">Skills</a></li>
</ul>
</nav>
</header>
Use Flexbox and Grid for Layout
Make the website responsive by combining Flexbox and CSS Grid.
.projects {
padding: 40px 20px;
background-color: #f4f7fb;
}
.projects__title {
text-align: center;
font-size: 2.5rem;
font-weight: bold;
color: #333;
margin-bottom: 30px;
text-transform: uppercase;
}
.projects__grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 30px;
}
.projects__item {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
padding: 20px;
background-color: #fff;
border-radius: 12px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.projects__item:hover {
transform: translateY(-5px);
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.projects__image {
width: 100%;
height: 200px;
object-fit: cover;
border-radius: 10px;
}
.projects__name {
font-size: 1.8rem;
font-weight: 600;
color: #2c3e50;
text-align: center;
margin: 50px 0 30px 0;
}
.projects__description {
font-size: 1rem;
color: #7f8c8d;
line-height: 1.5;
font-family: 'Roboto', sans-serif;
margin-top: 10px;
}
@media (max-width: 768px) {
.projects__grid {
grid-template-columns: 1fr;
}
}
Screenshot of your high-fidelity design.
A screenshot of your final output
GitHub Link: https://github.com/RodelDecio/Personal-Portfolio.git
Hosting URL: https://personalportfolio-a74e8.web.app