Skip to content
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

ITP-GAN25|SARAAMIRI|Module-Onboarding|week1 #122

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
70 changes: 45 additions & 25 deletions Wireframe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,48 @@
<title>Wireframe</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header>
<h1>Wireframe</h1>
<p>
This is the default, provided code and no changes have been made yet.
</p>
</header>
<main>
<article>
<img src="placeholder.svg" alt="" />
<h2>Title</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Quisquam,
voluptates. Quisquam, voluptates.
</p>
<a href="">Read more</a>
</article>
</main>
<footer>
<p>
This is the default, provided code and no changes have been made yet.
</p>
</footer>
</body>
</html>

<body>
<header>
<h1>Understanding Git and Web Development Concepts</h1>
<p>Learn about the purpose of README files, wireframes, and Git branches in web development.</p>
</header>

<main>
<section class="articles">
<!-- Article 1: README file -->
<article>

<h2>What is the purpose of a README file?</h2>
<p>A README file is essential for any project. It provides instructions, project details, and contribution guidelines, helping developers understand how to use and contribute to the project.</p>
<a href="https://www.productplan.com/glossary/README/" target="_blank">Learn more about README files</a>
</article>

<!-- Article 2: Wireframe -->
<div class="mini-articles">

<article>

<h2>What is the purpose of a wireframe?</h2>
<p>A wireframe is a visual blueprint of a webpage or app. It helps designers and developers organize the layout, user interface elements, and functionality before actual design and development.</p>
<a href="https://www.productplan.com/glossary/wireframe/" target="_blank">Learn more about wireframes</a>
</article>

<!-- Article 3: Git Branch -->
<article>

<h2>What is a branch in Git?</h2>
<p>A branch in Git is a separate line of development. It allows you to work on new features or fixes without affecting the main codebase. Once you're finished, you can merge the branch back into the main branch.</p>
<a href="https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell" target="_blank">Learn more about Git branches</a>
</article>
</div>
</section>
</main>

<footer>
<p>sara amiri code your future </p>
</footer>
</body>

</html>

121 changes: 93 additions & 28 deletions Wireframe/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,32 @@ As well as useful links to learn more */
https://scrimba.com/learn-css-variables-c026
====== Design Palette ====== */
:root {
--paper: oklch(7 0 0);
--ink: color-mix(in oklab, var(--color) 5%, black);
--font: 100%/1.5 system-ui;
--space: clamp(6px, 6px + 2vw, 15px);
--line: 1px solid;
--container: 1280px;
--paper: #f9f9f9; /* Light background color */
--ink: #333; /* Dark text color */
--font: 100%/1.6 system-ui, sans-serif; /* System font for readability */
--space: 16px; /* Standard space for margins and paddings */
--line: 1px solid #ddd; /* Light border color */
--container: 1280px; /* Max-width of the content area */
--primary-color: #4CAF50; /* Primary color for links, buttons */
}
/* ====== Base Elements ======
General rules for basic HTML elements in any context */
body {
background: var(--paper);
color: var(--ink);
font: var(--font);
margin: 0;
padding: 0;
}


a {
padding: var(--space);
border: var(--line);
max-width: fit-content;
text-decoration: none;
color: var(--primary-color); /* Primary color for links */
padding: 5px;
border-radius: 3px;
}

img,
svg {
width: 100%;
Expand All @@ -45,15 +52,7 @@ svg {
Setting the overall rules for page regions
https://www.w3.org/WAI/tutorials/page-structure/regions/
*/
main {
max-width: var(--container);
margin: 0 auto calc(var(--space) * 4) auto;
}
footer {
position: fixed;
bottom: 0;
text-align: center;
}

/* ====== Articles Grid Layout ====
Setting the rules for how articles are placed in the main element.
Inspect this in Devtools and click the "grid" button in the Elements view
Expand All @@ -65,6 +64,8 @@ main {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space);
margin: auto;
max-width: 800px;
> *:first-child {
grid-column: span 2;
}
Expand All @@ -74,16 +75,80 @@ Setting the rules for how elements are placed in the article.
Now laying out just the INSIDE of the repeated card/article design.
Keeping things orderly and separate is the key to good, simple CSS.
*/
header {
background-color: var(--primary-color);
color: white;
padding: 30px 0;
text-align: center;
margin-bottom: var(--space);
}

header h1 {
font-size: 2.5rem;
margin: 0;
}

header p {
font-size: 1.1rem;
}

article {
border: var(--line);
padding-bottom: var(--space);
text-align: left;
display: grid;
grid-template-columns: var(--space) 1fr var(--space);
> * {
grid-column: 2/3;
}
> img {
grid-column: span 3;
}
border-radius: 8px;
padding: var(--space);
background-color: white;
margin-bottom: var(--space);
transition: box-shadow 0.3s ease-in-out;
}
.mini-articles{
display: flex;
gap: 10PX;
}
article:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

article img {
border-radius: 8px;
margin-bottom: var(--space);
}

article h2 {
font-size: 1.8rem;
margin-top: 0;
}

article p {
font-size: 1.1rem;
line-height: 1.6;
margin: 0 0 var(--space) 0;
}

article a {
display: inline-block;
margin-top: 10px;
padding: 8px 15px;
border: none;
background-color: var(--primary-color);
color: white;
border-radius: 4px;
text-align: center;
}

article a:hover {
background-color: #45a049;
}

footer {
background-color: #333; /* Dark background */
color: white; /* White text */
padding: 20px 0; /* Vertical padding */
text-align: center; /* Center the text */
font-size: 14px; /* Smaller font size */
position: relative;
width: 100%;
bottom: 0;
margin-top: 40px; /* Space before the footer */
border-top: 1px solid #444; /* Light top border */
}