Skip to content

Commit dd64a9d

Browse files
author
lintsang
committed
Merge branch 'feature/wireframe' of https://github.com/lintsang/Module-Onboarding
2 parents 5691b52 + dec48eb commit dd64a9d

3 files changed

Lines changed: 83 additions & 37 deletions

File tree

Wireframe/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
<!--{{<objectives>}}>-->
66

7-
- [ ] Use semantic HTML tags to structure the webpage
8-
- [ ] Create three articles, each including an image, title, summary, and a link
9-
- [ ] Check a webpage against a wireframe layout
7+
- [x] Use semantic HTML tags to structure the webpage
8+
- [x] Create three articles, each including an image, title, summary, and a link
9+
- [x] Check a webpage against a wireframe layout
1010
- [ ] Test web code using [Lighthouse](https://programming.codeyourfuture.io/guides/testing/lighthouse)
11-
- [ ] Use version control by committing often and pushing regularly to GitHub
12-
- [ ] Develop the habit of writing clean, well-structured, and error-free code
11+
- [x] Use version control by committing often and pushing regularly to GitHub
12+
- [x] Develop the habit of writing clean, well-structured, and error-free code
1313
<!--{{</objectives>}}>-->
1414

1515
## Task
@@ -27,13 +27,13 @@ There are some provided HTML and CSS files you can use to get started. You can u
2727

2828
## Acceptance Criteria
2929

30-
- [ ] Semantic HTML tags are used to structure the webpage.
31-
- [ ] The page scores 100 for Accessibility in the Lighthouse audit.
32-
- [ ] The webpage is styled using a linked .css file.
33-
- [ ] The webpage is properly committed and pushed to a branch on GitHub.
34-
- [ ] The articles section contains three distinct articles, each with its own unique image, title, summary, and link.
35-
- [ ] The page footer is fixed to the bottom of the viewport.
36-
- [ ] The page layout closely match the wireframe.
30+
- [x] Semantic HTML tags are used to structure the webpage.
31+
- [x] The page scores 100 for Accessibility in the Lighthouse audit.
32+
- [x] The webpage is styled using a linked .css file.
33+
- [x] The webpage is properly committed and pushed to a branch on GitHub.
34+
- [x] The articles section contains three distinct articles, each with its own unique image, title, summary, and link.
35+
- [x] The page footer is fixed to the bottom of the viewport.
36+
- [x] The page layout closely match the wireframe.
3737

3838
### Developers must adhere to professional standards.
3939

@@ -42,10 +42,10 @@ There are some provided HTML and CSS files you can use to get started. You can u
4242
These practices reflect the level of quality expected in professional work.
4343
They ensure your code is reliable, maintainable, and presents a polished, credible experience to users.
4444

45-
- [ ] My HTML code has no errors or warnings when validated using https://validator.w3.org/
46-
- [ ] My code is consistently formatted
47-
- [ ] My page content is free of typos and grammatical mistakes
48-
- [ ] I commit often and push regularly to GitHub
45+
- [x] My HTML code has no errors or warnings when validated using https://validator.w3.org/
46+
- [x] My code is consistently formatted
47+
- [x] My page content is free of typos and grammatical mistakes
48+
- [x] I commit often and push regularly to GitHub
4949

5050
## Resources
5151

Wireframe/index.html

Lines changed: 44 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,53 @@
77
<link rel="stylesheet" href="style.css" />
88
</head>
99
<body>
10-
<header>
11-
<h1>Wireframe</h1>
12-
<p>
13-
This is the default, provided code and no changes have been made yet.
14-
</p>
15-
</header>
16-
<main>
17-
<article>
18-
<img src="placeholder.svg" alt="" />
19-
<h2>Title</h2>
10+
<div id="wrapper">
11+
<header>
12+
<h1>Web Development Foundation</h1>
2013
<p>
21-
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
22-
voluptates. Quisquam, voluptates.
14+
There are some frequently asked questions for beginner developers.
2315
</p>
24-
<a href="">Read more</a>
25-
</article>
26-
</main>
16+
</header>
17+
<main>
18+
<article>
19+
<div class="image-wrapper">
20+
<img src="https://cdn.iconscout.com/icon/free/png-512/free-readme-logo-icon-svg-download-png-3029134.png" alt="" />
21+
</div>
22+
<h2>1. What is the purpose of a README file?</h2>
23+
<p>
24+
README file is the foundation document which ask user to Read Me First before doing anything in the project. It provides some concept explanation or basic requirements that user have to know. Sometimes it mentions contributin, licensing details and guideline for other developers who wants to contribute.
25+
</p>
26+
<a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes">Read more</a>
27+
</article>
28+
<article>
29+
<div class="image-wrapper">
30+
<img src="https://cdn.iconscout.com/icon/premium/png-512-thumb/wireframe-icon-svg-download-png-10585798.png" alt="" />
31+
</div>
32+
<h2>2. What is the purpose of a wireframe?</h2>
33+
<p>
34+
Wireframe is a blueprints which can help teams to visualize the layout, user flow and hierarchy before committing to the colour or final UI design.
35+
</p>
36+
<a href="https://www.orbitmedia.com/blog/7-reasons-to-wireframe/">Read more</a>
37+
</article>
38+
<article>
39+
<div class="image-wrapper">
40+
<img src="https://cdn.iconscout.com/icon/premium/png-512-thumb/git-branch-icon-svg-download-png-10369479.png" alt="" />
41+
</div>
42+
<h2>3. What is a branch in Git?</h2>
43+
<p>
44+
A branch is a copied workspace from the main development and developers can modify and fix on her/his own branch of project without messing the main development.
45+
</p>
46+
<a href="https://www.w3schools.com/GIT/git_branch.asp?remote=github">Read more</a>
47+
</article>
48+
</main>
49+
</div>
2750
<footer>
28-
<p>
29-
This is the default, provided code and no changes have been made yet.
30-
</p>
51+
<div id="wrapper">
52+
<p>
53+
By Lin Tsang. This webpage serves as a test environment. Some images and media displayed on this site are sourced from external websites for demonstrative and educational purposes. All copyrights, trademarks, and intellectual property regarding these images remain the property of their respective owners. https://iconscout.com/
54+
55+
</p>
56+
</div>
3157
</footer>
3258
</body>
3359
</html>

Wireframe/style.css

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ As well as useful links to learn more */
2626
}
2727
/* ====== Base Elements ======
2828
General rules for basic HTML elements in any context */
29-
body {
29+
30+
body {
3031
background: var(--paper);
3132
color: var(--ink);
3233
font: var(--font);
34+
text-align: center;
35+
display: grid;
36+
3337
}
3438
a {
3539
padding: var(--space);
@@ -41,6 +45,20 @@ svg {
4145
width: 100%;
4246
object-fit: cover;
4347
}
48+
p {
49+
padding: 0 0 30px 0;
50+
}
51+
.image-wrapper img {
52+
width: 100%;
53+
/* aspect ratio for image */
54+
aspect-ratio: 16 / 9;
55+
}
56+
#wrapper{
57+
/* wrapper to make the content to 80% width */
58+
width:80%;
59+
margin: 0 auto;
60+
}
61+
4462
/* ====== Site Layout ======
4563
Setting the overall rules for page regions
4664
https://www.w3.org/WAI/tutorials/page-structure/regions/
@@ -50,9 +68,11 @@ main {
5068
margin: 0 auto calc(var(--space) * 4) auto;
5169
}
5270
footer {
53-
position: fixed;
54-
bottom: 0;
71+
width: 100%;
5572
text-align: center;
73+
background-color: #eee;
74+
font-size: 0.8rem;
75+
padding: 60px 0 60px 0;
5676
}
5777
/* ====== Articles Grid Layout ====
5878
Setting the rules for how articles are placed in the main element.

0 commit comments

Comments
 (0)