Skip to content

Branch1 #685

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

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2e4891a
changed div1 and div3 padding argument's first value to 32px. (First …
Prateek14b Feb 3, 2025
534272e
changed div1's margin to 12 px to address second bullet point in the …
Prateek14b Feb 3, 2025
1fa6ec8
changed margin-bottom to 48px for div2, to address 3rd bullet point i…
Prateek14b Feb 3, 2025
0b8d51b
idk how, but changing margin-left from 0px to 'auto'(for the div 3) a…
Prateek14b Feb 3, 2025
b100e95
crated external stylesheet; linked it to html; addded type selector f…
Prateek14b Feb 3, 2025
77d11ef
Added internal CSS style to p element. Addresses second requirement.
Prateek14b Feb 3, 2025
a77eee4
Addressed third requirement; added inline styling to button element.
Prateek14b Feb 3, 2025
4fd35ff
created oddnumber class, and added style rules to it. Then, applied i…
Prateek14b Feb 4, 2025
db1f615
created appropriate style rules for classes second-element and fourth…
Prateek14b Feb 4, 2025
eb57350
third element should have two classes, so created new class and appli…
Prateek14b Feb 4, 2025
9b36318
fixed a minor error in .oddnumber class; replaced declaration that sp…
Prateek14b Feb 4, 2025
d1ccb24
started exercise 3; created common-style class, and added the style r…
Prateek14b Feb 4, 2025
94c127f
Reverting the change from previous commit. Why? Because I made a mist…
Prateek14b Feb 4, 2025
bf535e1
created two classes ('first-element' and 'second-element') and applie…
Prateek14b Feb 4, 2025
be73444
fixed typo in index.html. now, classnames are matching.
Prateek14b Feb 4, 2025
bf46fd4
used grouping selector to add common styles that apply to both elemen…
Prateek14b Feb 4, 2025
bf076ed
easy-peasy. Just understand when you got to use the chaining selector…
Prateek14b Feb 4, 2025
9e6d11f
EASY-PEASY. Just learned descendant combinator, and applied its knowl…
Prateek14b Feb 4, 2025
1e4dd61
given the description of the commit in comments on CSS! just did some…
Prateek14b Feb 10, 2025
09ea754
commit description provided in comments. JUst used chaining selector …
Prateek14b Feb 10, 2025
23a4de4
chained 3 selectors div.text.child to get precedence over pre-existin…
Prateek14b Feb 10, 2025
a5815d0
yeah, i just wanna call it a day, but i don't wanna leave without pus…
Prateek14b May 21, 2025
da348bd
bruh, i already completed this exercise.
Prateek14b May 24, 2025
c11dcaf
exercise - 2 DONE! key taekaways: add dark red borders to every eleme…
Prateek14b May 25, 2025
fb5868a
fixed incorrect parantheses, small error.
Prateek14b May 25, 2025
619d219
commit-1
Prateek14b May 29, 2025
4ea23fc
commit-2
Prateek14b May 29, 2025
c4046ec
easy. centering the flex item means applying justify-content and alig…
Prateek14b May 30, 2025
ac97923
even the solution.css doesn't match the desired webpage layout smhh, …
Prateek14b May 30, 2025
de66254
easy. but this time i had to add an extra two parent containers to th…
Prateek14b May 30, 2025
6f67766
exercise-4 done. pretty easy.
Prateek14b May 30, 2025
061a28b
did it my own way, different from the suggested solution. but i ended…
Prateek14b May 30, 2025
005dd23
Trigger commit to enable PR merge
Prateek14b May 30, 2025
ca2f527
honestly, i am getting the hang of this stuff a bit. like, i learned …
Prateek14b May 31, 2025
0a1d061
99.99% perfect solution. only problem was i forgot to add the flex:1 …
Prateek14b May 31, 2025
dfe7c5d
added two wrappers, or parent containers, to the html. need to contin…
Prateek14b May 31, 2025
b01c817
final exercise 07 done! takeaway: learn to be more intentional with u…
Prateek14b Jun 1, 2025
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
14 changes: 8 additions & 6 deletions foundations/block-and-inline/01-margin-and-padding-1/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,24 @@ body {
background: pink;
border: 3px solid blue;
/* CHANGE ME */
padding: 0px;
margin: 0px;
padding: 32px;
margin: 12px;
}

.two {
background: lightblue;
border: 3px solid purple;
/* CHANGE ME */
margin-bottom: 0px;
margin-bottom: 48px;
}

.three {
background: peachpuff;
border: 3px solid brown;
width: 200px;
/* CHANGE ME */
padding: 0px;
margin-left: 0px;
}
padding: 32px;
margin-left: auto;

}
/*exerise has already been solved.*/
26 changes: 24 additions & 2 deletions foundations/block-and-inline/02-margin-and-padding-2/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*{
box-sizing: border-box;
}
body {
background: #eee;
font-family: sans-serif;
Expand All @@ -6,22 +9,41 @@ body {
.card {
width: 400px;
background: #fff;
margin: 16px auto;
margin: auto;
padding: 8px;
}

.title {
background: #e3f4ff;
margin: 8px;
padding: 8px;
}

.content {
background: #e3f4ff;
display:block;
margin: 8px;
padding-top: 16px;
padding-bottom: 16px;
padding-left: 8px;
padding-right: 8px;
}

.button-container {
background: #e3f4ff;
display:block;
margin: 8px;
padding: 8px;
text-align: center;
}

button {
background: white;
border: 1px solid #eee;
}
display: block;
padding: 8px 24px 8px 24px;
margin: 0px auto;
}

/*.button-container, .content, .title, .button, .card {
border: 2px red solid;*/
1 change: 1 addition & 0 deletions foundations/cascade/01-cascade-fix/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
</div>
</body>
</html>
<!--yeah, im calling it a day. woohoo-->
19 changes: 10 additions & 9 deletions foundations/cascade/01-cascade-fix/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ body {
font-weight: 800;
}

.small-para {
font-size: 14px;
font-weight: 800;
}

/* just repositioned this .para class selector above .small-para. This ensures this class property gets overruled by the one below it. */
.para {
font-size: 22px;
}

.confirm {
background: green;
.small-para {
font-size: 14px;
font-weight: 800;
}
/*changed background to background-color as error correction. Also, chained classes together to get precedence.*/
.confirm.button {
background-color: green;
color: white;
font-weight: bold;
}
Expand All @@ -28,8 +29,8 @@ body {
color: rgb(0, 0, 0);
font-size: 20px;
}

.child {
/*chained three selectors to target the child div element, and give this precedence over the 2-chained selector below. */
div.child.text {
color: rgb(0, 0, 0);
font-weight: 800;
font-size: 14px;
Expand Down
10 changes: 8 additions & 2 deletions foundations/flex/01-flex-center/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@
border: 4px solid midnightblue;
width: 400px;
height: 300px;
display: flex;
justify-content: center; /* centers the flex items horizontally */
align-items: center;
}

.box {
.container > .box {
background: palevioletred;
font-weight: bold;
text-align: center;
border: 6px solid maroon;
width: 80px;
height: 80px;
}
}

/* man i just learned a bit of flexbox and it seems pretty easy so far! Plus, i just wanted to wrap today with a few pushed commits hehe!
/* flex container contain flex items, and mostly you can just apply css properties or rules to the flex container to tweak the child flex items' alignment and order and basically everything.
12 changes: 11 additions & 1 deletion foundations/flex/02-flex-header/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.header {
font-family: monospace;
background: papayawhip;
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px;
}

.logo {
Expand All @@ -13,7 +17,12 @@

ul {
/* this removes the dots on the list items*/

list-style-type: none;
display: flex;
padding: 0;
margin: 0;
gap: 8px;
}

a {
Expand All @@ -22,4 +31,5 @@ a {
padding: 8px;
/* this removes the line under the links */
text-decoration: none;
}
}

26 changes: 15 additions & 11 deletions foundations/flex/03-flex-header-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,22 @@
</head>
<body>
<div class="header">
<div class="logo">
LOGO
<div class="left">
<div class="logo">
LOGO
</div>
<ul class="links">
<li><a href="https://google.com">link-one</a></li>
<li><a href="https://google.com">link-two</a></li>
<li><a href="https://google.com">link-three</a></li>
</ul>
</div>
<div class="right">
<button class="notifications">
1 new notification
</button>
<div class="profile-image"></div>
</div>
<ul class="links">
<li><a href="https://google.com">link-one</a></li>
<li><a href="https://google.com">link-two</a></li>
<li><a href="https://google.com">link-three</a></li>
</ul>
<button class="notifications">
1 new notification
</button>
<div class="profile-image"></div>
</div>
</body>
</html>
19 changes: 18 additions & 1 deletion foundations/flex/03-flex-header-2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ body {
background: white;
border-bottom: 1px solid #ddd;
box-shadow: 0 0 8px rgba(0,0,0,.1);
display: flex;
justify-content: space-between;
padding: 8px;
}

.profile-image {
Expand All @@ -27,22 +30,36 @@ body {
font-size: 32px;
font-weight: 900;
font-style: italic;
margin: 0px;
}

button {
border: none;
border-radius: 8px;
background: rebeccapurple;
color: white;
padding: 8px 24px;
padding: 8px 24px
}

a {
/* this removes the line under our links */
text-decoration: none;
color: rebeccapurple;
margin: 0px;
padding: 0px;
}

ul {
list-style-type: none;
display: flex;
gap: 16px;
padding: 0px;
margin: 0px;
align-items: center;
}

.left, .right {
align-items: center;
display: flex;
gap: 16px;
}
30 changes: 19 additions & 11 deletions foundations/flex/04-flex-information/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,28 @@
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="title">Information!</div>

<img src="./images/barberry.png" alt="barberry">
<div class="text">This is a type of plant. We love this one.</div>

<img src="./images/chilli.png" alt="chili">
<div class="text">This is another type of plant. Isn't it nice?</div>
<div class="title">Information!</div>
<div class="actual-info">
<div class="info">
<img src="./images/barberry.png" alt="barberry">
<div class="text">This is a type of plant. We love this one.</div>
</div>

<img src="./images/pepper.png" alt="pepper">
<div class="text">We have so many plants. Yay plants.</div>
<div class="info">
<img src="./images/chilli.png" alt="chili">
<div class="text">This is another type of plant. Isn't it nice?</div>
</div>

<img src="./images/saffron.png" alt="saffron">
<div class="text">I'm running out of things to say about plants.</div>
<div class="info">
<img src="./images/pepper.png" alt="pepper">
<div class="text">We have so many plants. Yay plants.</div>
</div>

<div class="info">
<img src="./images/saffron.png" alt="saffron">
<div class="text">I'm running out of things to say about plants.</div>
</div>
</div>
<!-- disregard this section, it's here to give attribution to the creator of these icons -->
<div class="footer">
<div>Icons made by <a href="https://www.flaticon.com/authors/icongeek26" title="Icongeek26">Icongeek26</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
Expand Down
15 changes: 15 additions & 0 deletions foundations/flex/04-flex-information/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
body {
font-family: 'Courier New', Courier, monospace;
text-align: center;
}

img {
Expand All @@ -10,6 +11,20 @@ img {
.title {
font-size: 36px;
font-weight: 900;
text-align: center;
margin: 0px auto 32px auto;
}

.actual-info{
display: flex;
justify-content: center;
gap: 52px;
}

.info{
display: flex;
flex-direction: column;
align-items: center;
}

/* do not edit this footer */
Expand Down
26 changes: 18 additions & 8 deletions foundations/flex/05-flex-modal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,23 @@
<title>Modal</title>
</head>
<body>
<div class="modal">
<div class="icon">!</div>
<div class="header">Are you sure you want to do that?</div>
<button class="close-button">✖</button>
<div class="text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Pariatur excepturi id soluta, numquam minima rerum doloremque eveniet aspernatur beatae commodi. Cupiditate recusandae ad repellendus quidem consectetur sequi amet aspernatur cumque!</div>
<button class="continue">Continue</button>
<button class="cancel">Cancel</button>
<div class="modal">
<div class="top-icons">
<div class="caution">
<div class="icon">!</div>
<div class="header">Are you sure you want to do that?</div>
</div>
<button class="close-button">✖</button>
</div>

<div class="rest-of-box">
<div class="text">Lorem ipsum dolor sit amet consectetur adipisicing elit. Pariatur excepturi id soluta, numquam minima rerum doloremque eveniet aspernatur beatae commodi. Cupiditate recusandae ad repellendus quidem consectetur sequi amet aspernatur cumque!</div>
<div class="lower-buttons">
<button class="continue">Continue</button>
<button class="cancel">Cancel</button>
</div>
</div>
</div>
</body>
</html>
</html>
<!--unlocked a realisation-->
Loading