JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Andrew Camilleri</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="fullpage.min.css">
</head>
<body>
<div class="grid-container">
<div class="grid-item1">
<h2><span class="type2"></span></h2>
</div>
<div class="grid-item2">
<h3><span class="type"></span></h3>
</div>
<div class="grid-item3">
<div class="fade-in-text">
<a href="http://127.0.0.1:5500/Test.html" id="home">home</a>
<a href="http://127.0.0.1:5500/About.html" id="about">about</a>
<a href="http://127.0.0.1:5500/Contact.html" id="contact">contact</a>
</div>
</div>
</div>
<script src="./fullpage.min.js"></script>
<script src="./app.js"></script>
<script src="typed.js"></script>
<script>
var typed = new Typed(".type", {
strings: ["^750i'm andrew camilleri"],
typeSpeed: 60,
cursorChar: '_',
fadeout: true,
});
</script>
<script src="typed.js"></script>
<script>
var typed = new Typed(".type2", {
strings: ["^400hi"],
typeSpeed: 60,
cursorChar: '_',
showCursor: false,
fadeout: true,
});
</script>
</body>
</html>
CSS
body {
height: 98vh;
background-color: rgb(0, 95, 45)
}
/*********************************************************************/
/*********************************************************************/
/* HEADINGS */
h2 {
width: 100%;
text-align: center;
font-family: 'Poppins', sans-serif;
color: rgb(46, 45, 45);
font-size: 2.5em;
}
h3 {
width: 100%;
text-align: center;
font-family: 'Poppins', sans-serif;
color: rgb(0, 95, 45);
font-size: 2.5em;
}
/*********************************************************************/
/*********************************************************************/
/* HYPERLINKS */
a {
width: 10%;
text-align: center;
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
color: rgb(46, 45, 45);
font-size: 1.5em;
}
/*********************************************************************/
/*********************************************************************/
/* HYPERLINKS-HOVER */
#home {
text-decoration: none;
}
#home:hover {
text-decoration: none;
text-transform: uppercase;
}
#about {
text-decoration: none;
}
#about:hover {
text-decoration: none;
text-transform: uppercase;
}
#contact {
text-decoration: none;
}
#contact:hover {
text-decoration: none;
text-transform: uppercase;
}
/*********************************************************************/
/*********************************************************************/
/* GRID */
.grid-container {
background-color: rgb(222, 224, 202);
height: 100%;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: inline-block;
}
.grid-item1 {
padding: 1em;
height: 33%;
border: 1px solid black;
}
.grid-item2 {
padding: 1em;
height: 33%;
border: 1px solid black;
}
.grid-item3 {
padding: 1em;
height: 33%;
border: 1px solid black;
text-align:...
JavaScript
/*!
*
* typed.js - A JavaScript Typing Animation Library
* Author: Matt Boldt <me@mattboldt.com>
* Version: v2.0.12
* Url: https://github.com/mattboldt/typed.js
* License(s): MIT
*
*/
(function webpackUniversalModuleDefinition(root, factory) {
if (typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if (typeof define === 'function' && define.amd)
define([], factory);
else if (typeof exports === 'object')
exports["Typed"] = factory();
else
root["Typed"] = factory();
})(this, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/
var installedModules = {};
/******/
/******/ // The require function
/******/
function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/
if (installedModules[moduleId])
/******/
return installedModules[moduleId].exports;
/******/
/******/ // Create a new module (and put it into the cache)
/******/
var module = installedModules[moduleId] = {
/******/
exports: {},
/******/
id: moduleId,
/******/
loaded: false
/******/
};
/******/
/******/ // Execute the module function
/******/
modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/
module.loaded = true;
/******/
/******/ // Return the exports of the module
/******/
return module.exports;
/******/
}
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/
__webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/
__webpack_require__.c = installedModules;
/******/
/******/ // __webpack_public_path__
...