Skip to content

Commit ae66778

Browse files
committed
Add Wireframe page with three articles and fixed footer
1 parent 458eaca commit ae66778

File tree

2 files changed

+47
-51
lines changed

2 files changed

+47
-51
lines changed

Wireframe/index.html

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,43 @@
88
</head>
99
<body>
1010
<header>
11-
<h1>Wireframe</h1>
12-
<p>
13-
This is the default, provided code and no changes have been made yet.
14-
</p>
11+
<h1 class="main-title">Wireframe</h1>
1512
</header>
1613
<main>
1714
<article>
1815
<img src="placeholder.svg" alt="" />
19-
<h2>Title</h2>
16+
<h2>About Readme File</h2>
17+
<p>
18+
<strong>README file introduces a project, explains how to install it, and
19+
helps others understand how to use or contribute to it.</strong>
20+
</p>
21+
<a href="http://www.readme.com">Read more</a>
22+
</article>
23+
<article>
24+
<img src="placeholder.svg" alt="Icon representing a Readme file" />
25+
<h2>About Wireframe</h2>
26+
<p>
27+
<strong>wireframe is a simple visual guide that shows the structure of a
28+
webpage before it is built, It helps plan layout and design.</strong>
29+
</p>
30+
<a href="https://wireframemore" target="_blank">Read more</a>
31+
</article>
32+
<article>
33+
<img src="placeholder.svg" alt="Icon representing a Git branch" />
34+
<h2>About the branch</h2>
2035
<p>
21-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
22-
voluptates. Quisquam, voluptates.
36+
<strong>branch in Git is a separate line of development that lets you work
37+
on new features without changing the main codebase.</strong>
2338
</p>
24-
<a href="">Read more</a>
39+
<a href="https://www.thebranch.com" target="_blank">Read more</a>
2540
</article>
41+
2642
</main>
2743
<footer>
2844
<p>
29-
This is the default, provided code and no changes have been made yet.
45+
<strong>Created by Khalid</strong>
3046
</p>
3147
</footer>
3248
</body>
49+
3350
</html>

Wireframe/style.css

Lines changed: 21 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
1-
/* Here are some starter styles
2-
You can edit these or replace them entirely
3-
It's showing you a common way to organise CSS
4-
And includes solutions to common problems
5-
As well as useful links to learn more */
6-
7-
/* ====== Design Palette ======
8-
This is our "design palette".
9-
It sets out the colours, fonts, styles etc to be used in this design
10-
At work, a designer will give these to you based on the corporate brand, but while you are learning
11-
You can design it yourself if you like
12-
Inspect the starter design with Devtools
13-
Click on the colour swatches to see what is happening
14-
I've put some useful CSS you won't have learned yet
15-
For you to explore and play with if you are interested
16-
https://web.dev/articles/min-max-clamp
17-
https://scrimba.com/learn-css-variables-c026
18-
====== Design Palette ====== */
191
:root {
2+
--color:#000;
203
--paper: oklch(7 0 0);
214
--ink: color-mix(in oklab, var(--color) 5%, black);
225
--font: 100%/1.5 system-ui;
236
--space: clamp(6px, 6px + 2vw, 15px);
247
--line: 1px solid;
258
--container: 1280px;
269
}
27-
/* ====== Base Elements ======
28-
General rules for basic HTML elements in any context */
2910
body {
30-
background: var(--paper);
31-
color: var(--ink);
11+
background: var(--paper);
12+
color: var(--ink);
3213
font: var(--font);
3314
}
3415
a {
@@ -41,43 +22,41 @@ svg {
4122
width: 100%;
4223
object-fit: cover;
4324
}
44-
/* ====== Site Layout ======
45-
Setting the overall rules for page regions
46-
https://www.w3.org/WAI/tutorials/page-structure/regions/
47-
*/
25+
header{
26+
text-align: center;
27+
color: rgb(18, 87, 114);
28+
background-color: beige;
29+
font-size: larger;
30+
padding: 2rem;
31+
}
4832
main {
4933
max-width: var(--container);
5034
margin: 0 auto calc(var(--space) * 4) auto;
5135
}
5236
footer {
5337
position: fixed;
5438
bottom: 0;
55-
text-align: center;
39+
width: 100%;
40+
background-color: beige;
41+
text-align: left;
42+
5643
}
57-
/* ====== Articles Grid Layout ====
58-
Setting the rules for how articles are placed in the main element.
59-
Inspect this in Devtools and click the "grid" button in the Elements view
60-
Play with the options that come up.
61-
https://developer.chrome.com/docs/devtools/css/grid
62-
https://gridbyexample.com/learn/
63-
*/
6444
main {
6545
display: grid;
6646
grid-template-columns: 1fr 1fr;
6747
gap: var(--space);
68-
> *:first-child {
48+
> *:first-child {
6949
grid-column: span 2;
7050
}
7151
}
72-
/* ====== Article Layout ======
73-
Setting the rules for how elements are placed in the article.
74-
Now laying out just the INSIDE of the repeated card/article design.
75-
Keeping things orderly and separate is the key to good, simple CSS.
76-
*/
52+
.main-title{
53+
font-family:cursive;
54+
font-style: italic;
55+
}
7756
article {
7857
border: var(--line);
7958
padding-bottom: var(--space);
80-
text-align: left;
59+
text-align: center;
8160
display: grid;
8261
grid-template-columns: var(--space) 1fr var(--space);
8362
> * {
@@ -86,4 +65,4 @@ article {
8665
> img {
8766
grid-column: span 3;
8867
}
89-
}
68+
}

0 commit comments

Comments
 (0)