import React from 'react';
import styles from './Home.module.css';
const createWebsite = () => {
console.log('Creating website madaravetra.com...');
};
let pageTitle = 'Madara Vetra Portfolio';
document.title = pageTitle;
const renderHeader = () => {
const header = document.createElement('h1');
header.innerText = pageTitle;
header.className = styles.header;
document.body.appendChild(header);
};
const init = () => {
createWebsite();
renderHeader();
};
init();
const displayMessage = (message) => {
const messageElement = document.createElement('p');
messageElement.innerText = message;
messageElement.className = styles.message;
document.body.appendChild(messageElement);
};
displayMessage('Welcome to my portfolio! :)');
const renderFooter = () => {
const footer = document.createElement('footer');
footer.innerText = '© 2024 Madara Vetra';
footer.className = styles.footer;
document.body.appendChild(footer);
};
renderFooter();
-------------------------------------------------
import React from 'react';
import styles from './Home.module.css';
const createWebsite = () => {
console.log('Creating website madaravetra.com...');
};
let pageTitle = 'Madara Vetra Portfolio';
document.title = pageTitle;
const renderHeader = () => {
const header = document.createElement('h1');
header.innerText = pageTitle;
header.className = styles.header;
document.body.appendChild(header);
};
const init = () => {
createWebsite();
renderHeader();
};
init();
const displayMessage = (message) => {
const messageElement = document.createElement('p');
messageElement.innerText = message;
messageElement.className = styles.message;
document.body.appendChild(messageElement);
};
displayMessage('Welcome to my portfolio! :)');
const renderFooter = () => {
const footer = document.createElement('footer');
footer.innerText = '© 2024 Madara Vetra';
footer.className = styles.footer;
document.body.appendChild(footer);
};
renderFooter();
-------------------------------------------------