feat(css): toetsopdracht CSS W3Schools Web Dev Hub toegevoegd conform 8 criteria
This commit is contained in:
parent
8a31107bda
commit
98908390bc
3 changed files with 763 additions and 0 deletions
|
|
@ -0,0 +1,251 @@
|
||||||
|
# Scalda · College voor Techniek & Design
|
||||||
|
**Opleidingen ICT & Media Terneuzen · Software Development, System Engineering & Mediamaker**
|
||||||
|
**Cursus:** 02_Web_Databases_en_Programmeren
|
||||||
|
**Toetscode:** TOETS-CSS-01
|
||||||
|
**Toetsvorm:** Praktijktoets / Portfolio-inlevering met rubricbeoordeling
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Toetsopdracht CSS: W3Schools Web Dev Hub
|
||||||
|
|
||||||
|
## 1. Doel & Context
|
||||||
|
|
||||||
|
In deze toetsopdracht style je zelfstandig een complete, semantisch gestructureerde website van minimaal drie pagina's (`index.html`, `overzicht.html` en `contact.html`). Je transformeert een kale HTML-structuur naar een moderne, responsieve en interactieve webapplicatie volgens de industriestandaarden van W3Schools.
|
||||||
|
|
||||||
|
Je toont hiermee aan dat je de kernconcepten van moderne CSS beheerst:
|
||||||
|
- Strikte scheiding van inhoud en vormgeving via een centraal stylesheet.
|
||||||
|
- Centrale stylingparameters via CSS Custom Properties (`:root` variabelen).
|
||||||
|
- Controle over afmetingen en spacing via het Box Model en de universele `border-box` reset.
|
||||||
|
- Responsieve Flexbox-structuren voor scherm- en mobiele weergave.
|
||||||
|
- Toegankelijke interactie via pseudo-classes (`:hover`, `:focus` en `.active`).
|
||||||
|
- Gegevens- en formulierstyling conform UX-best practices.
|
||||||
|
|
||||||
|
De documentatie en voorbeelden van **W3Schools** dienen hierbij als inhoudelijke leidraad en officiële bron.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 2. Projectstructuur & Bestandsbeheer
|
||||||
|
|
||||||
|
Het ingeleverde project moet strikt voldoen aan onderstaande mappenstructuur:
|
||||||
|
|
||||||
|
```text
|
||||||
|
jouwnaam_css_toets/
|
||||||
|
├── index.html (Homepage / Kennisbank & Introductie)
|
||||||
|
├── overzicht.html (Gegevenstabel met CSS Eigenschappen & Waarden)
|
||||||
|
├── contact.html (Formulier voor ontwikkelaars / supportvraag)
|
||||||
|
├── style.css (Het centrale stylesheet voor alle pagina's)
|
||||||
|
└── img/ (Afbeeldingen, iconen en logo)
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 3. Eisen & Beoordelingscriteria
|
||||||
|
|
||||||
|
Bij elk criterium staat de directe W3Schools referentie die je kunt raadplegen voor specificaties, syntax en voorbeelden.
|
||||||
|
|
||||||
|
### Criterium 1: Eén Centrale Stylesheet (`style.css`)
|
||||||
|
- **Specificatie**: Alle drie de HTML-pagina's koppelen in het `<head>`-element uitsluitend aan hetzelfde externe bestand: `style.css`.
|
||||||
|
- **Kwaliteitseis**: Er mag **nul** inline CSS in de HTML-bestanden voorkomen (geen enkel `style=""` attribuut). Ook interne `<style>` blokken zijn niet toegestaan. Alle lay-out, typografie en kleurstellingen worden 100% vanuit `style.css` aangestuurd.
|
||||||
|
- **W3Schools Referentie**: [W3Schools CSS How To - External Style Sheet](https://www.w3schools.com/css/css_howto.asp)
|
||||||
|
|
||||||
|
```html
|
||||||
|
<link rel="stylesheet" href="style.css">
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Criterium 2: CSS Variabelen (`:root`) & Universele Reset
|
||||||
|
- **Specificatie CSS Variabelen**: Definieer bovenaan in `style.css` in de `:root` selector minimaal **4 herbruikbare variabelen** en pas deze consistent toe in de rest van de code:
|
||||||
|
1. Primaire merkkleur (bijvoorbeeld de kenmerkende W3Schools groentint: `--primary-color: #04AA6D;`).
|
||||||
|
2. Secundaire/donkere achtergrondkleur (bijvoorbeeld: `--dark-color: #282A35;` of `#1d2a35`).
|
||||||
|
3. Afrondings- of border-variabele (bijvoorbeeld: `--border-radius: 6px;` of `--border-light: 1px solid #e2e8f0;`).
|
||||||
|
4. Hoofdlettertype (bijvoorbeeld: `--font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;`).
|
||||||
|
- **Specificatie Reset**: Activeer de universele selector `*` met de eigenschap `box-sizing: border-box;` inclusief een reset van `margin: 0;` en `padding: 0;` zodat padding en borders nooit de berekende elementbreedte onbedoeld vergroten.
|
||||||
|
- **W3Schools Referenties**:
|
||||||
|
- [W3Schools CSS Variables - The var() Function](https://www.w3schools.com/css/css3_variables.asp)
|
||||||
|
- [W3Schools CSS Box Sizing](https://www.w3schools.com/css/css3_box-sizing.asp)
|
||||||
|
|
||||||
|
```css
|
||||||
|
:root {
|
||||||
|
--primary-color: #04AA6D;
|
||||||
|
--dark-color: #282A35;
|
||||||
|
--border-radius: 6px;
|
||||||
|
--font-main: "Segoe UI", Arial, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Criterium 3: Flexbox Navigatiebalk
|
||||||
|
- **Specificatie**: De website heeft een horizontale headerbalk waarin het bedrijfs- of projectlogo aan de linkerkant staat en de navigatielinks aan de rechterkant.
|
||||||
|
- **Kwaliteitseis**: Gebruik op de container van de navigatiebalk (`<header>` of `<nav>`) `display: flex;` in combinatie met `justify-content: space-between;` en `align-items: center;`. De navigatielinks zelf (`<ul>`) worden horizontaal uitgelijnd via Flexbox met een duidelijke tussenruimte (`gap` of `margin`).
|
||||||
|
- **W3Schools Referenties**:
|
||||||
|
- [W3Schools CSS Flexbox](https://www.w3schools.com/css/css3_flexbox.asp)
|
||||||
|
- [W3Schools How To - Top Navigation Bar](https://www.w3schools.com/howto/howto_css_topnav.asp)
|
||||||
|
|
||||||
|
```css
|
||||||
|
header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
background-color: var(--dark-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
display: flex;
|
||||||
|
list-style: none;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Criterium 4: Interactieve States (`:hover`, `:focus` en `.active`)
|
||||||
|
- **Specificatie :hover**: Alle hyperlinks (`<a>`) en knoppen (`button`, `input[type="submit"]`) hebben een visueel herkenbare hover-toestand (bijvoorbeeld kleurverandering of lichte achtergrondtransitie) wanneer de cursor erboven zweeft.
|
||||||
|
- **Specificatie :focus**: Alle interactieve elementen (links, knoppen en invoervelden) tonen een duidelijke focus-indicator wanneer ze met de Tab-toets worden geselecteerd, ten behoeve van toetsenbordtoegankelijkheid (WCAG).
|
||||||
|
- **Specificatie .active**: De navigatielink van de pagina die op dat moment openstaat, is in de HTML voorzien van de class `class="active"`. In CSS heeft deze actieve link een blijvend afwijkende kleur, onderstreping of knopstijl zodat de gebruiker direct ziet op welke pagina hij zich bevindt.
|
||||||
|
- **W3Schools Referenties**:
|
||||||
|
- [W3Schools CSS Pseudo-classes](https://www.w3schools.com/css/css_pseudo_classes.asp)
|
||||||
|
- [W3Schools How To - Active Navigation Link](https://www.w3schools.com/howto/howto_js_active_element.asp)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Criterium 5: Gestyled Formulier (`contact.html`)
|
||||||
|
- **Specificatie Afmetingen & Box**: Alle invoervelden (`input[type="text"]`, `input[type="email"]`, `<select>` en `<textarea>`) vullen 100% van de breedte van hun container (`width: 100%;`).
|
||||||
|
- **Specificatie Afwerking**: De velden hebben een zachte rand (bijvoorbeeld `1px solid #ccc`), voldoende binnenruimte (`padding: 10px;` of vergelijkbaar) en afgeronde hoeken via de `:root` variabele.
|
||||||
|
- **Specificatie Focusring**: Zodra een gebruiker in een invoerveld klikt of typt (`:focus`), verandert de border-kleur en verschijnt er een duidelijke blauwe focusring zonder dat de browser-standaard lelijk verspringt (via `outline: none;` en `box-shadow` of `border-color: #2196F3;`).
|
||||||
|
- **Knoppen**: De submitknop heeft een opvallende styling (bijvoorbeeld de primaire themakleur) met een werkende hover-state en een cursor-pointer (`cursor: pointer;`).
|
||||||
|
- **W3Schools Referenties**:
|
||||||
|
- [W3Schools CSS Forms](https://www.w3schools.com/css/css_form.asp)
|
||||||
|
- [W3Schools How To - Form Styling with Focus](https://www.w3schools.com/howto/howto_css_forms.asp)
|
||||||
|
|
||||||
|
```css
|
||||||
|
input[type="text"],
|
||||||
|
input[type="email"],
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
padding: 10px 12px;
|
||||||
|
border: 1px solid #cbd5e1;
|
||||||
|
border-radius: var(--border-radius);
|
||||||
|
font-family: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="text"]:focus,
|
||||||
|
input[type="email"]:focus,
|
||||||
|
select:focus,
|
||||||
|
textarea:focus {
|
||||||
|
border-color: #2196F3;
|
||||||
|
box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Criterium 6: Gestylede Gegevenstabel (`overzicht.html`)
|
||||||
|
- **Specificatie Tabelkop**: De kopsectie (`<thead>` of `<th>`) heeft een donkere achtergrondkleur (bijvoorbeeld `--dark-color`) met heldere witte of lichte tekst voor maximaal contrast.
|
||||||
|
- **Specificatie Zebra-striping**: De rijen in het tabel-lichaam hebben afwisselend een witte en een lichtgrijze achtergrond met behulp van de pseudo-class `tbody tr:nth-child(even)` (of `odd`).
|
||||||
|
- **Specificatie Randen & Spacing**: Randen zijn samengevoegd via `border-collapse: collapse;` en elke cel (`th`, `td`) heeft voldoende padding (minimaal 10px) zodat data nergens tegen de rand plakt.
|
||||||
|
- **W3Schools Referentie**: [W3Schools CSS Table Styling & Zebra Striping](https://www.w3schools.com/css/css_table_style.asp)
|
||||||
|
|
||||||
|
```css
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
background-color: var(--dark-color);
|
||||||
|
color: #ffffff;
|
||||||
|
padding: 12px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
padding: 10px 12px;
|
||||||
|
border-bottom: 1px solid #e2e8f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
tbody tr:nth-child(even) {
|
||||||
|
background-color: #f8fafc;
|
||||||
|
}
|
||||||
|
|
||||||
|
tbody tr:hover {
|
||||||
|
background-color: #f1f5f9;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Criterium 7: Responsiviteit met Media Query (`max-width: 680px`)
|
||||||
|
- **Specificatie Breekpunt**: Er is minimaal één werkende media query aanwezig met de conditie `@media (max-width: 680px)`.
|
||||||
|
- **Specificatie Gedrag**: Op schermen smaller dan 681px (mobiele weergave) schakelt de headerbalk automatisch om:
|
||||||
|
- De navigatiebalk wordt verticaal geordend via `flex-direction: column;`.
|
||||||
|
- Het logo en de navigatielinks stapelen netjes onder elkaar zonder overlap of horizontaal scrollen.
|
||||||
|
- De links hebben voldoende klikruimte op een touchscreen (touch targets).
|
||||||
|
- **W3Schools Referenties**:
|
||||||
|
- [W3Schools CSS Media Queries](https://www.w3schools.com/css/css_rwd_mediaqueries.asp)
|
||||||
|
- [W3Schools Responsive Web Design Intro](https://www.w3schools.com/css/css_rwd_intro.asp)
|
||||||
|
|
||||||
|
```css
|
||||||
|
@media (max-width: 680px) {
|
||||||
|
header {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 15px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav ul {
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
display: block;
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### Criterium 8: Inlevering & Kwaliteitsborging
|
||||||
|
- **Specificatie Inlevering**: Lever het complete project vóór de deadline in via de formele inleveropdracht in Moodle.
|
||||||
|
- **Specificatie Formaat**: Eén ZIP-bestand met de naam `voornaam_achternaam_css_toets.zip`.
|
||||||
|
- **Inhoud van de ZIP**:
|
||||||
|
- `index.html`
|
||||||
|
- `overzicht.html`
|
||||||
|
- `contact.html`
|
||||||
|
- `style.css`
|
||||||
|
- Eventuele afbeeldingen in de map `img/`
|
||||||
|
- **Controle**: Er mogen geen hardcoded absolute paden (`C:\...` of `/Users/...`) in de code staan. Pak het bestand na creatie zelf uit in een tijdelijke map om te controleren of alle stijlen en afbeeldingen lokaal direct laden.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 4. Toetsmatrijs & Beoordelingsrubric
|
||||||
|
|
||||||
|
| Nr | Beoordelingsonderdeel | Norm voor Volledige Score (2 pt) | Punten | Score |
|
||||||
|
|:--:|---|---|:---:|:---:|
|
||||||
|
| **1** | **Centrale Stylesheet** | Alle 3 pagina's gekoppeld aan hetzelfde `style.css`. Exact nul inline CSS en geen interne `<style>` tags. | 2 pt | [ ] 0 [ ] 1 [ ] 2 |
|
||||||
|
| **2** | **Variabelen & Reset** | `:root` met minstens 4 variabelen functioneel benut; universele `* { box-sizing: border-box; }` reset actief. | 2 pt | [ ] 0 [ ] 1 [ ] 2 |
|
||||||
|
| **3** | **Flexbox Navigatie** | Headerbalk via Flexbox uitgelijnd (`space-between`, `align-items: center`); logo links, navigatielinks rechts. | 2 pt | [ ] 0 [ ] 1 [ ] 2 |
|
||||||
|
| **4** | **Interactieve States** | `:hover` en `:focus` werken op links en knoppen; de actieve pagina toont een duidelijke `.active` markering. | 2 pt | [ ] 0 [ ] 1 [ ] 2 |
|
||||||
|
| **5** | **Formulier Styling** | Invoervelden hebben 100% breedte, nette padding en borders; blauwe focusring geactiveerd bij invoer. | 2 pt | [ ] 0 [ ] 1 [ ] 2 |
|
||||||
|
| **6** | **Tabel (Zebra-striping)** | `thead`/`th` donkere kop; rijen hebben zebra-striping via `tbody tr:nth-child(even)`; nette celpadding. | 2 pt | [ ] 0 [ ] 1 [ ] 2 |
|
||||||
|
| **7** | **Media Query (Mobiel)** | `@media (max-width: 680px)` schakelt navigatie foutloos om naar verticale ordening zonder overloop. | 2 pt | [ ] 0 [ ] 1 [ ] 2 |
|
||||||
|
| **8** | **Bestandsbeheer & ZIP** | Complete ZIP met 3 HTML-bestanden, `style.css` en media. Storingsvrije lokale werking via relatieve paden. | 2 pt | [ ] 0 [ ] 1 [ ] 2 |
|
||||||
|
|
||||||
|
### Scoringsnorm & Cijferbepaling:
|
||||||
|
- **Totaal**: Maximaal 16 punten.
|
||||||
|
- **Cijferformule**: `Cijfer = (Behaalde punten / 16) * 9 + 1`
|
||||||
|
- **Cesuur (Voldoende)**: Minimaal 10 punten (cijfer 5,5 of hoger).
|
||||||
|
- **Voorwaarde voor Voldoende**: Criterium 1 (externe koppeling) en Criterium 8 (complete inlevering) moeten minimaal met 1 punt zijn beoordeeld; zonder externe stylesheet of bij ontbrekende bestanden kan geen voldoende worden toegekend.
|
||||||
|
|
@ -0,0 +1,505 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="nl">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title>Toetsopdracht CSS: W3Schools Web Dev Hub - Scalda ICT & Media</title>
|
||||||
|
<style>
|
||||||
|
:root {
|
||||||
|
--scalda-navy: #002855;
|
||||||
|
--scalda-navy-dark: #001833;
|
||||||
|
--scalda-orange: #f37021;
|
||||||
|
--scalda-orange-hover: #d95d12;
|
||||||
|
--scalda-blue: #005691;
|
||||||
|
--w3-green: #04AA6D;
|
||||||
|
--w3-dark: #282A35;
|
||||||
|
--border-dark: #334155;
|
||||||
|
--border-light: #cbd5e1;
|
||||||
|
--text-main: #0f172a;
|
||||||
|
--text-muted: #475569;
|
||||||
|
--bg-subtle: #f8fafc;
|
||||||
|
--bg-accent: #f1f5f9;
|
||||||
|
--success: #15803d;
|
||||||
|
--danger: #b91c1c;
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
||||||
|
font-size: 8.5pt;
|
||||||
|
line-height: 1.35;
|
||||||
|
color: var(--text-main);
|
||||||
|
background-color: #cbd5e1;
|
||||||
|
padding: 15px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Screen Toolbar */
|
||||||
|
.screen-toolbar {
|
||||||
|
max-width: 210mm;
|
||||||
|
margin: 0 auto 12px auto;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
background: var(--scalda-navy);
|
||||||
|
color: #ffffff;
|
||||||
|
padding: 10px 16px;
|
||||||
|
border-radius: 6px;
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 40, 85, 0.25);
|
||||||
|
border-bottom: 3px solid var(--scalda-orange);
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-title {
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toolbar-sub {
|
||||||
|
font-size: 10.5px;
|
||||||
|
color: #94a3b8;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-action {
|
||||||
|
background: var(--scalda-orange);
|
||||||
|
color: #ffffff;
|
||||||
|
border: none;
|
||||||
|
padding: 6px 14px;
|
||||||
|
font-size: 11.5px;
|
||||||
|
font-weight: 700;
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 5px;
|
||||||
|
transition: background 0.15s ease;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-action:hover {
|
||||||
|
background: var(--scalda-orange-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* A4 Document Container */
|
||||||
|
.sheet {
|
||||||
|
width: 210mm;
|
||||||
|
min-height: 297mm;
|
||||||
|
margin: 0 auto 20px auto;
|
||||||
|
background: #ffffff;
|
||||||
|
padding: 10mm 12mm;
|
||||||
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Header styling */
|
||||||
|
.header-card {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 2.5px solid var(--scalda-orange);
|
||||||
|
padding-bottom: 6px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-line {
|
||||||
|
font-size: 7.2pt;
|
||||||
|
font-weight: 800;
|
||||||
|
color: #64748b;
|
||||||
|
letter-spacing: 0.8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-title {
|
||||||
|
font-size: 12pt;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--scalda-navy);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-doc-code {
|
||||||
|
background: var(--scalda-navy);
|
||||||
|
color: #ffffff;
|
||||||
|
padding: 4px 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 8.5pt;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Meta bar */
|
||||||
|
.meta-bar {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
background: var(--bg-accent);
|
||||||
|
padding: 5px 10px;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 7.8pt;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
border: 1px solid var(--border-light);
|
||||||
|
}
|
||||||
|
|
||||||
|
.meta-item strong {
|
||||||
|
color: var(--scalda-navy);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Section Styling */
|
||||||
|
.section-title {
|
||||||
|
font-size: 9.5pt;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--scalda-navy);
|
||||||
|
border-bottom: 1px solid var(--scalda-blue);
|
||||||
|
padding-bottom: 2px;
|
||||||
|
margin: 10px 0 6px 0;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-bottom: 6px;
|
||||||
|
color: #1e293b;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Criteria Cards */
|
||||||
|
.criterion-card {
|
||||||
|
background: #ffffff;
|
||||||
|
border: 1px solid var(--border-light);
|
||||||
|
border-left: 3.5px solid var(--scalda-blue);
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 7px 10px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.criterion-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.criterion-title {
|
||||||
|
font-size: 8.5pt;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--scalda-navy);
|
||||||
|
}
|
||||||
|
|
||||||
|
.criterion-ref {
|
||||||
|
font-size: 7.2pt;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--w3-green);
|
||||||
|
text-decoration: none;
|
||||||
|
background: #e8f5e9;
|
||||||
|
padding: 2px 6px;
|
||||||
|
border-radius: 3px;
|
||||||
|
border: 1px solid #c8e6c9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.criterion-ref:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.criterion-desc {
|
||||||
|
font-size: 7.8pt;
|
||||||
|
color: #334155;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Code Snippet */
|
||||||
|
pre {
|
||||||
|
background: var(--w3-dark);
|
||||||
|
color: #f8fafc;
|
||||||
|
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||||
|
font-size: 7.2pt;
|
||||||
|
padding: 6px 8px;
|
||||||
|
border-radius: 4px;
|
||||||
|
overflow-x: auto;
|
||||||
|
margin-top: 4px;
|
||||||
|
line-height: 1.25;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Table styling */
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
font-size: 7.8pt;
|
||||||
|
margin: 8px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
background: var(--scalda-navy);
|
||||||
|
color: #ffffff;
|
||||||
|
font-weight: 800;
|
||||||
|
padding: 6px 8px;
|
||||||
|
text-align: left;
|
||||||
|
border: 1px solid var(--border-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
td {
|
||||||
|
padding: 5px 8px;
|
||||||
|
border: 1px solid var(--border-light);
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
|
tbody tr:nth-child(even) {
|
||||||
|
background-color: var(--bg-subtle);
|
||||||
|
}
|
||||||
|
|
||||||
|
.score-check {
|
||||||
|
text-align: center;
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 7.5pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rubric-summary {
|
||||||
|
background: var(--bg-accent);
|
||||||
|
border: 1px solid var(--border-light);
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 8px 10px;
|
||||||
|
font-size: 7.6pt;
|
||||||
|
margin-top: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Print media rules */
|
||||||
|
@media print {
|
||||||
|
body {
|
||||||
|
background: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.screen-toolbar {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.sheet {
|
||||||
|
width: 100%;
|
||||||
|
min-height: auto;
|
||||||
|
box-shadow: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 8mm 10mm;
|
||||||
|
page-break-after: always;
|
||||||
|
}
|
||||||
|
.sheet:last-child {
|
||||||
|
page-break-after: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<!-- Screen Toolbar -->
|
||||||
|
<div class="screen-toolbar">
|
||||||
|
<div>
|
||||||
|
<div class="toolbar-title">Scalda ICT & Media Terneuzen · Toetsdocument</div>
|
||||||
|
<div class="toolbar-sub">Cursus 02_Web_Databases_en_Programmeren — Toetscode: TOETS-CSS-01</div>
|
||||||
|
</div>
|
||||||
|
<div style="display: flex; gap: 8px;">
|
||||||
|
<button type="button" class="btn-action" onclick="window.print()">Afdrukken naar A4</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Sheet 1: Opdracht & Criteria 1 t/m 4 -->
|
||||||
|
<div class="sheet">
|
||||||
|
<div class="header-card">
|
||||||
|
<div>
|
||||||
|
<div class="brand-line">SCALDA COLLEGE VOOR TECHNIEK & DESIGN · ICT & MEDIA</div>
|
||||||
|
<div class="header-title">Toetsopdracht CSS: W3Schools Web Dev Hub</div>
|
||||||
|
</div>
|
||||||
|
<div class="header-doc-code">
|
||||||
|
TOETS-CSS-01<br>
|
||||||
|
<span style="font-size: 6.5pt; font-weight: normal; color: #cbd5e1;">Pagina 1 van 2</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="meta-bar">
|
||||||
|
<div class="meta-item"><strong>Opleidingen:</strong> Software Development, System Engineering, Mediamaker</div>
|
||||||
|
<div class="meta-item"><strong>Niveau:</strong> 2, 3 en 4</div>
|
||||||
|
<div class="meta-item"><strong>Toetsvorm:</strong> Praktijkbeoordeling</div>
|
||||||
|
<div class="meta-item"><strong>Tijd:</strong> Zelfstandig portfolio</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section-title">1. Doel & Context</div>
|
||||||
|
<p>In deze toets style je zelfstandig een complete, semantisch gestructureerde website bestaande uit minimaal drie pagina's (<code>index.html</code>, <code>overzicht.html</code> en <code>contact.html</code>). Je bouwt een moderne, responsieve en interactieve webapplicatie volgens de industriestandaarden van W3Schools.</p>
|
||||||
|
|
||||||
|
<div class="section-title">2. Bestandsstructuur</div>
|
||||||
|
<p style="font-size: 7.6pt; margin-bottom: 6px;">Projectmap: <code>jouwnaam_css_toets/</code> met <code>index.html</code>, <code>overzicht.html</code>, <code>contact.html</code>, <code>style.css</code> en map <code>img/</code>.</p>
|
||||||
|
|
||||||
|
<div class="section-title">3. Eisen & Criteria (Deel A)</div>
|
||||||
|
|
||||||
|
<!-- Criterium 1 -->
|
||||||
|
<div class="criterion-card">
|
||||||
|
<div class="criterion-header">
|
||||||
|
<span class="criterion-title">1. Eén Centrale Stylesheet (style.css)</span>
|
||||||
|
<a href="https://www.w3schools.com/css/css_howto.asp" target="_blank" class="criterion-ref">W3Schools: External CSS</a>
|
||||||
|
</div>
|
||||||
|
<div class="criterion-desc">Alle 3 pagina's koppelen in de <code><head></code> uitsluitend aan hetzelfde <code>style.css</code> bestand. Er staat exact 0 inline CSS (geen <code>style=""</code>) en geen interne <code><style></code> tags in de HTML.</div>
|
||||||
|
<pre><link rel="stylesheet" href="style.css"></pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Criterium 2 -->
|
||||||
|
<div class="criterion-card">
|
||||||
|
<div class="criterion-header">
|
||||||
|
<span class="criterion-title">2. CSS Variabelen (:root) & Universele Reset</span>
|
||||||
|
<a href="https://www.w3schools.com/css/css3_variables.asp" target="_blank" class="criterion-ref">W3Schools: Variables & Box-Sizing</a>
|
||||||
|
</div>
|
||||||
|
<div class="criterion-desc">Definieer in <code>:root</code> minimaal 4 variabelen (primaire kleur, donkere tint, border-radius/rand, hoofdlettertype). Activeer <code>* { box-sizing: border-box; margin: 0; padding: 0; }</code>.</div>
|
||||||
|
<pre>:root { --primary: #04AA6D; --dark: #282A35; --radius: 6px; --font: "Segoe UI", Arial, sans-serif; }
|
||||||
|
* { box-sizing: border-box; margin: 0; padding: 0; }</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Criterium 3 -->
|
||||||
|
<div class="criterion-card">
|
||||||
|
<div class="criterion-header">
|
||||||
|
<span class="criterion-title">3. Flexbox Navigatiebalk</span>
|
||||||
|
<a href="https://www.w3schools.com/css/css3_flexbox.asp" target="_blank" class="criterion-ref">W3Schools: Flexbox</a>
|
||||||
|
</div>
|
||||||
|
<div class="criterion-desc">Header gebruikt <code>display: flex; justify-content: space-between; align-items: center;</code>. Het logo staat links en de navigatielinks rechts met een nette onderlinge tussenruimte.</div>
|
||||||
|
<pre>header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; background: var(--dark); }
|
||||||
|
nav ul { display: flex; list-style: none; gap: 1.5rem; }</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Criterium 4 -->
|
||||||
|
<div class="criterion-card">
|
||||||
|
<div class="criterion-header">
|
||||||
|
<span class="criterion-title">4. Interactieve States (:hover, :focus, .active)</span>
|
||||||
|
<a href="https://www.w3schools.com/css/css_pseudo_classes.asp" target="_blank" class="criterion-ref">W3Schools: Pseudo-classes</a>
|
||||||
|
</div>
|
||||||
|
<div class="criterion-desc">Alle links en knoppen hebben een zichtbare <code>:hover</code> en <code>:focus</code> stijl. De huidige actieve pagina is in de navigatie gemarkeerd met de class <code>.active</code> met afwijkende achtergrond of onderstreping.</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Sheet 2: Criteria 5 t/m 8 & Beoordelingsrubric -->
|
||||||
|
<div class="sheet">
|
||||||
|
<div class="header-card">
|
||||||
|
<div>
|
||||||
|
<div class="brand-line">SCALDA COLLEGE VOOR TECHNIEK & DESIGN · ICT & MEDIA</div>
|
||||||
|
<div class="header-title">Toetsopdracht CSS: Criteria & Rubric</div>
|
||||||
|
</div>
|
||||||
|
<div class="header-doc-code">
|
||||||
|
TOETS-CSS-01<br>
|
||||||
|
<span style="font-size: 6.5pt; font-weight: normal; color: #cbd5e1;">Pagina 2 van 2</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section-title">3. Eisen & Criteria (Deel B)</div>
|
||||||
|
|
||||||
|
<!-- Criterium 5 -->
|
||||||
|
<div class="criterion-card">
|
||||||
|
<div class="criterion-header">
|
||||||
|
<span class="criterion-title">5. Gestyled Formulier (contact.html)</span>
|
||||||
|
<a href="https://www.w3schools.com/howto/howto_css_forms.asp" target="_blank" class="criterion-ref">W3Schools: CSS Forms</a>
|
||||||
|
</div>
|
||||||
|
<div class="criterion-desc">Invoervelden (<code>input</code>, <code>select</code>, <code>textarea</code>) hebben 100% breedte, zachte borders en padding. Bij het typen (<code>:focus</code>) verschijnt een blauwe focusring (<code>outline: none; box-shadow: 0 0 0 3px rgba(33,150,243,0.25);</code>).</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Criterium 6 -->
|
||||||
|
<div class="criterion-card">
|
||||||
|
<div class="criterion-header">
|
||||||
|
<span class="criterion-title">6. Gestylede Gegevenstabel (overzicht.html)</span>
|
||||||
|
<a href="https://www.w3schools.com/css/css_table_style.asp" target="_blank" class="criterion-ref">W3Schools: Table Striping</a>
|
||||||
|
</div>
|
||||||
|
<div class="criterion-desc">De tabelkop (<code>th</code>) heeft een donkere achtergrond met witte tekst. Rijen hebben zebra-striping via <code>tbody tr:nth-child(even)</code> en cellen hebben voldoende padding.</div>
|
||||||
|
<pre>th { background: var(--dark); color: #fff; padding: 10px; }
|
||||||
|
tbody tr:nth-child(even) { background-color: #f8fafc; }</pre>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Criterium 7 -->
|
||||||
|
<div class="criterion-card">
|
||||||
|
<div class="criterion-header">
|
||||||
|
<span class="criterion-title">7. Responsiviteit met Media Query (max-width: 680px)</span>
|
||||||
|
<a href="https://www.w3schools.com/css/css_rwd_mediaqueries.asp" target="_blank" class="criterion-ref">W3Schools: Media Queries</a>
|
||||||
|
</div>
|
||||||
|
<div class="criterion-desc">Minimaal één werkende media query <code>@media (max-width: 680px)</code> die op mobiel de header en navigatielinks omzet naar een verticale stapeling via <code>flex-direction: column;</code>.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Criterium 8 -->
|
||||||
|
<div class="criterion-card">
|
||||||
|
<div class="criterion-header">
|
||||||
|
<span class="criterion-title">8. Inlevering Project via Moodle</span>
|
||||||
|
<span class="criterion-ref">Moodle Upload</span>
|
||||||
|
</div>
|
||||||
|
<div class="criterion-desc">Het complete project (3 HTML-bestanden, <code>style.css</code> en map <code>img/</code>) wordt ingeleverd als één ZIP-bestand: <code>voornaam_achternaam_css_toets.zip</code>. Relatieve paden werken storingsvrij.</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="section-title">4. Toetsmatrijs & Beoordelingsrubric</div>
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 32px; text-align: center;">Nr</th>
|
||||||
|
<th style="width: 140px;">Onderdeel</th>
|
||||||
|
<th>Criterium & Norm (Volledig voldaan = 2 pt)</th>
|
||||||
|
<th style="width: 50px; text-align: center;">Max</th>
|
||||||
|
<th style="width: 100px; text-align: center;">Score</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center; font-weight: bold;">1</td>
|
||||||
|
<td>Centrale Stylesheet</td>
|
||||||
|
<td>Alle 3 pagina's gekoppeld aan style.css; 0 inline styles; geen <style> tags.</td>
|
||||||
|
<td style="text-align: center;">2 pt</td>
|
||||||
|
<td class="score-check">[ ] 0 [ ] 1 [ ] 2</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center; font-weight: bold;">2</td>
|
||||||
|
<td>Variabelen & Reset</td>
|
||||||
|
<td>:root met minstens 4 variabelen; * { box-sizing: border-box; } actief.</td>
|
||||||
|
<td style="text-align: center;">2 pt</td>
|
||||||
|
<td class="score-check">[ ] 0 [ ] 1 [ ] 2</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center; font-weight: bold;">3</td>
|
||||||
|
<td>Flexbox Navigatie</td>
|
||||||
|
<td>Header via Flexbox (space-between, align-items: center); logo links, menu rechts.</td>
|
||||||
|
<td style="text-align: center;">2 pt</td>
|
||||||
|
<td class="score-check">[ ] 0 [ ] 1 [ ] 2</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center; font-weight: bold;">4</td>
|
||||||
|
<td>Interactieve States</td>
|
||||||
|
<td>:hover en :focus op links en knoppen; .active markeert de huidige pagina.</td>
|
||||||
|
<td style="text-align: center;">2 pt</td>
|
||||||
|
<td class="score-check">[ ] 0 [ ] 1 [ ] 2</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center; font-weight: bold;">5</td>
|
||||||
|
<td>Formulier Styling</td>
|
||||||
|
<td>Invoervelden 100% breedte, zachte borders, nette padding; blauwe focusring.</td>
|
||||||
|
<td style="text-align: center;">2 pt</td>
|
||||||
|
<td class="score-check">[ ] 0 [ ] 1 [ ] 2</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center; font-weight: bold;">6</td>
|
||||||
|
<td>Tabel (Zebra-striping)</td>
|
||||||
|
<td>Donkere thead; tbody tr:nth-child(even) zebra-striping; royale celpadding.</td>
|
||||||
|
<td style="text-align: center;">2 pt</td>
|
||||||
|
<td class="score-check">[ ] 0 [ ] 1 [ ] 2</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center; font-weight: bold;">7</td>
|
||||||
|
<td>Media Query (Mobiel)</td>
|
||||||
|
<td>@media (max-width: 680px) zet navigatie storingsvrij om naar verticale flex-column.</td>
|
||||||
|
<td style="text-align: center;">2 pt</td>
|
||||||
|
<td class="score-check">[ ] 0 [ ] 1 [ ] 2</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: center; font-weight: bold;">8</td>
|
||||||
|
<td>Bestandsbeheer & ZIP</td>
|
||||||
|
<td>Complete ZIP met 3 HTML-bestanden, style.css en media; relatieve paden kloppen.</td>
|
||||||
|
<td style="text-align: center;">2 pt</td>
|
||||||
|
<td class="score-check">[ ] 0 [ ] 1 [ ] 2</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="rubric-summary">
|
||||||
|
<strong>Beoordelingsnorm:</strong> Maximaal 16 punten. Formule: <code>Cijfer = (Behaalde punten / 16) * 9 + 1</code>.<br>
|
||||||
|
<strong>Cesuur:</strong> Minimaal 10 punten voor een voldoende (≥ 5,5). Criterium 1 en 8 zijn voorwaardelijk (minimaal 1 pt vereist).
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -366,6 +366,13 @@
|
||||||
</div>
|
</div>
|
||||||
<a href="02_Web_Databases_en_Programmeren/Opdrachten_en_Checklists/eindopdracht_html_casussen.html" target="_blank" class="btn-sub">Casus</a>
|
<a href="02_Web_Databases_en_Programmeren/Opdrachten_en_Checklists/eindopdracht_html_casussen.html" target="_blank" class="btn-sub">Casus</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<div class="item-info">
|
||||||
|
<span class="item-title">Toetsopdracht CSS (W3Schools) <span class="badge b-green">Toets</span></span>
|
||||||
|
<span class="item-desc">Web Dev Hub, 8 criteria, Flexbox, form & table</span>
|
||||||
|
</div>
|
||||||
|
<a href="02_Web_Databases_en_Programmeren/Opdrachten_en_Checklists/toetsopdracht_css_w3schools.html" target="_blank" class="btn-action">Toets</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
<span class="item-title">CSS Diner & DevTools SCORM <span class="badge b-orange">SCORM 1.2</span></span>
|
<span class="item-title">CSS Diner & DevTools SCORM <span class="badge b-orange">SCORM 1.2</span></span>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue