Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Feature/cakes co completed (new fixes) | Umair | Modult-HTML-CSS | Week 2 #199

Closed
wants to merge 29 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ea066d6
initialized branch
UmairRiazDev Sep 16, 2024
73d0c4c
initial commit
UmairRiazDev Sep 17, 2024
35f089a
initial commit
UmairRiazDev Sep 20, 2024
0298372
image files added to the project
UmairRiazDev Sep 20, 2024
e172dc5
image files path corrected
UmairRiazDev Sep 20, 2024
4789ef9
HTML structure and CSS general styling
UmairRiazDev Sep 20, 2024
3f3d8ec
logo updated
UmairRiazDev Sep 20, 2024
5194453
header and nav bar
UmairRiazDev Sep 20, 2024
7bbadcd
hero section
UmairRiazDev Sep 20, 2024
84ff24f
featured section styling
UmairRiazDev Sep 20, 2024
8848190
featured section hover effect
UmairRiazDev Sep 20, 2024
8cce3fb
cta section and other fixes
UmairRiazDev Sep 20, 2024
ba24652
cta styling continuous...
UmairRiazDev Sep 20, 2024
4ae5377
footer and logo updated
UmairRiazDev Sep 20, 2024
22135cc
footer section completed
UmairRiazDev Sep 20, 2024
e2aaa83
making responsive initial commit
UmairRiazDev Sep 20, 2024
7158e64
v1 ready to deploy. responsive and fixes
UmairRiazDev Sep 20, 2024
af55640
featured images section optimized for smaller screens
UmairRiazDev Sep 20, 2024
928595e
Added a menu button for smaller screens that toggles the navigation bar
UmairRiazDev Sep 20, 2024
c26428a
fix: PR doesn't deploy on netlify
UmairRiazDev Sep 20, 2024
379b87d
.
UmairRiazDev Sep 20, 2024
8018bbb
Update readme.md
UmairRiazDev Sep 20, 2024
7ed85ab
fix for hero section layout for <600px
UmairRiazDev Sep 22, 2024
27c41fc
Merge branch 'feature/Cakes-Co' of https://github.com/UmairRiazDev/Mo…
UmairRiazDev Sep 22, 2024
1a9e73d
small hero section fixes for <600px layouts
UmairRiazDev Sep 23, 2024
06f2e04
nav bar fixes
UmairRiazDev Sep 24, 2024
c6fff08
nav bar margin fix
UmairRiazDev Sep 24, 2024
8c5b082
nav border adjustment
UmairRiazDev Sep 24, 2024
ee16504
nav bar aligned to right
UmairRiazDev Sep 24, 2024
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
26 changes: 26 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"cSpell.words": [
"adipisicing",
"amet",
"assumenda",
"Catalunya",
"consectetur",
"deserunt",
"dolorum",
"eaque",
"elit",
"ipsa",
"itaque",
"maxime",
"necessitatibus",
"nesciunt",
"Obcaecati",
"officia",
"recusandae",
"Specialities",
"unde",
"velit",
"Veniam",
"veritatis"
]
}
108 changes: 108 additions & 0 deletions Cakes-Co/css/general.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
/* General styling */
:root {
/* Main colors */
--main-color: #fae5d3;
--main-light-color: #fdf2e9;
--main-color-2: #e67e22;
--cta-color: #45260a;

/* Shades */
--shade-dark: #eb984e;
--shade-light: #ddd;

/* Greys */
--grey-color-1: #888;
--grey-color-2: #555;
--grey-color-3: #333;
--grey-color-4: #767676; /* (Lightest grey allowed on #fff) */
--grey-color-5: #6f6f6f; /* (Lightest grey allowed on #fdf2e9) */
}

/* Box shadow
box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.15);
box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.1);
*/

/* Reset padding and margin for all elements and set box-sizing to border-box */
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}

/* set default font size to 10px */
html {
font-size: 62.5%;
}

/* Default for body */
body {
font-family: "Rubik", sans-serif;
line-height: 1;
font-weight: 400;
color: var(--grey-color-4);
}

/* container sizing */
.container {
max-width: 130rem;
padding: 0 3.2rem;
margin: 0 auto;
}

/* Headings sizing */
.heading-primary,
.heading-secondary,
.heading-tertiary {
font-weight: 700;
color: var(--grey-color-5);
letter-spacing: -0.5px;
}

.heading-primary {
font-size: 5.2rem;
line-height: 1.05;
margin-bottom: 2.4rem;
}

.heading-secondary {
font-size: 4rem;
line-height: 1.2;
margin-bottom: 2rem;
}

hr {
max-width: 50%;
margin: 5rem auto;
opacity: 0.4;
}

/* select list first option styling */
select {
font-style: italic;
}

select:focus option,
select option {
font-style: normal;
}

select:valid {
font-style: normal;
}

/* Button styling */
.btn,
.btn:link,
.btn:visited {
display: inline-block;
text-decoration: none;
font-size: 2rem;
font-weight: 600;
font-family: inherit;
border: none;
border-radius: 0.9rem;
padding: 1.6rem 3.2rem;
cursor: pointer;
box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}
136 changes: 136 additions & 0 deletions Cakes-Co/css/media-queries.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
@media only screen and (max-width: 1024px) {
.main-nav-list {
font-size: 1.8rem;
}

.hero-heading {
line-height: 1.2em;
font-size: 3.4rem;
margin-bottom: 1.2rem;
}

.hero-description {
font-size: 1.8rem;
line-height: 1.4em;
}
}

@media only screen and (max-width: 960px) {
.cta-form {
grid-template-columns: 1fr;
}
}

@media only screen and (max-width: 800px) {
/* nav to menu */
.main-nav {
padding: 0;
height: 0;
}

.main-nav-list {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: var(--main-light-color);
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 999;
}

.main-nav-list li {
margin: 1rem 0;
}

.menu-icon {
display: block;
position: fixed;
top: 5rem;
right: 2rem;
z-index: 1000;
}

/* When the checkbox is checked, show the menu */
.menu-toggle:checked + .menu-icon + .main-nav-list {
display: flex;
}
/* nav to menu end */

.site-description {
font-size: 2.2em;
max-width: 60%;
line-height: 1.2;
margin: 0 2.5rem;
}
.featured-heading {
margin-bottom: 0;
}
.featured-section {
grid-template-columns: repeat(2, 1fr);
padding: 2.4rem;
}
.section-cta {
padding: 3rem 0 5.6rem 0;
}
.cta-text {
line-height: 1.4;
}
.cta {
grid-template-columns: 1fr;
}
.cta-text-box {
padding: 3.2rem;
}
.cta-img-box {
height: 24rem;
grid-row: 1;
}
.footer {
grid-template-columns: repeat(2, 1fr);
row-gap: 2.4rem;
}
}

/* Mobile devices */
@media only screen and (max-width: 600px) {
.site-description {
font-size: 1.8em;
max-width: 60%;
line-height: 1.2;
}
.hero-section {
grid-template-columns: 1fr;
}
.hero-content {
order: -1;
}
.hero-heading {
line-height: 1.2em;
font-size: 2.8rem;
margin-bottom: 1.2rem;
}
.hero-image {
border-radius: 0 0 0.5rem 0.5rem;
}
.footer {
grid-template-columns: 1fr;
gap: 5rem;
}
.footer-heading {
font-size: 1.6rem;
font-weight: 500;
margin-bottom: 1.5rem;
}
.address {
margin-bottom: 1.2rem;
}
.contacts {
font-size: 1.4rem;
font-style: normal;
line-height: 1.2;
}
}
Loading